question

JDN-5604 avatar image
0 Votes"
JDN-5604 asked AnnaXiu-MSFT answered

Recommendation for DotNet5 Winforms compatible Setup Project for Visual Studio 2019

After discovering yesterday that the Setup Project included with VS2019 does not work with DotNet5 (the Primary Output for a DotNet 5 Winforms application is just a dll making it useless & requiring kludging to make it work on Windows so the average user doesn't need to get involved in something as mundane as software installation), I was wondering, instead of spending another week rolling my own setup project, if there is a DotNet5 compatible alternative (open source preferred, or an affordable 3rd party option) available?

vs-generalwindows-10-setupdotnet-runtime
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AnnaXiu-MSFT avatar image
0 Votes"
AnnaXiu-MSFT answered

Hi @JDN-5604,

Welcome to Microsoft Q&A!

You could also refer to the following document:
https://docs.microsoft.com/en-us/visualstudio/deployment/installer-projects-net-core?view=vs-2019#workflow-changes-for-net-core-31

Please select ‘Publish Items’ to get setup.exe file for your Winforms project.

Sincerely,
Anna


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

vb2ae avatar image
0 Votes"
vb2ae answered

You can build your .net 5 windows forms app into a self-contained exe.

https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.