Publish Single File (Release) fails for WPF .NET Core 3.1 application

前端 未结 5 1748
南旧
南旧 2021-02-20 11:55

I\'m trying to publish a WPF Application (to a folder) targeting .NET Core 3.1, using Publish Single File, targeting win-x86. The application publishes fine for Debug, but fails

5条回答
  •  佛祖请我去吃肉
    2021-02-20 12:12

    i have a same problem, in my case the solution is delete some dll of X86 system from .csproj file :

    
        
          ..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Management.dll
        
       
    

提交回复
热议问题