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

When trying to run my program on a different computer it does not run andor asks for .NET installation

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 ?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745581853a4634301.html

相关推荐

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

    When trying to run my program on a different computer it does not run andor asks for .NET installation

    12小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信