最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wpf - Self contained program asking to install dotnet - Stack Overflow

programmeradmin2浏览0评论

When trying to run my program on a different computer it does not run and/or asks for .NET installation even if the program was published as self-contained.

I've tried to share a program with some people, first the program wouldn't do anything when trying to publish from Visual Studio.

Used the solution from (doing it from terminal): Create Self Contained Single exe File From C# WPF Application

Now the self contained program asks for .NET to be installed

Tried the solution from: dotnet publish --self-contained -> running the app still asks for installation

And now is asking for a different .NET version and the link to said version is just &gui=true, so it does nothing

My questions are:

  1. Is there a difference between publishing from VS and the terminal?
  2. Is there a way I can publish in a way that I get a single .exe that does not ask for global .NET installation ? and how ?
发布评论

评论列表(0)

  1. 暂无评论