pinews
V2EX  ›  C#

c# winform .net core3.0 debug 好好的,没了 vs 怎么就不运行了呢?用 framework 就可以的。

  •  
  •   pinews · Oct 8, 2019 · 13846 views
    This topic created in 2411 days ago, the information mentioned may be changed or developed.
    大神帮帮忙
    Supplement 1  ·  Oct 8, 2019
    6 replies    2019-10-09 10:26:37 +08:00
    SilencerL
        1
    SilencerL  
       Oct 8, 2019
    你需要安装:.NET Core Runtime for desktop apps. => https://dotnet.microsoft.com/download

    至于基于 .Net Framework 的程序可以直接运行,估计是因为 Windows 系统自带 .Net Framework Runtime 的原因。
    sanjusss
        2
    sanjusss  
       Oct 8, 2019
    dotnet pulish -r win7-x86
    打包时增加 win7x86 依赖,这样就不用运行时了。
    pinews
        3
    pinews  
    OP
       Oct 8, 2019
    @SilencerL 我安装了也不行啊
    pinews
        4
    pinews  
    OP
       Oct 8, 2019
    现在问题又出现了,安装 vs 后,从 vs 点 release 和 debug 都可以运行,直接从文件夹里点,release 可以运行,debug 下没反应,和禁用仅我的代码有关系吗?
    pinews
        5
    pinews  
    OP
       Oct 8, 2019
    @pinews 点 debug 怎么运行的是 release 啊,明明是 debug,头越来越晕了
    u823tg
        6
    u823tg  
       Oct 9, 2019
    @pinews #5 生成-发布。 然后自己选择下配置 部署模式有独立和框架依赖。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4256 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 10:11 · PVG 18:11 · LAX 03:11 · JFK 06:11
    ♥ Do have faith in what you're doing.