问题
I'm trying to create a setup project / installer for a C# project but can't find the 'setup project' template in VS2017.
In VS2015 it was under: Other Project Types >> Setup and Deployment >> Visual Studio Installer and I used that several times without any problem.
That is not present on my VS2017. Is there something else I need to install?
I've looked through all the installed options and also tried the Online section, but searching for 'Setup' only brings up 'Mastercam NET-Hook'.
I've also looked on Stack Overflow but all the questions appear to be about problems within a Setup Project and not creating it in the first place.
Google brings up lots of questions for earlier versions (2013 etc) but nothing I could see for VS2017.
What am I missing?
回答1:
You must use the official Microsoft extension to do that, it's available here!
回答2:
You need to install the "Microsoft Visual Studio 2017 Installer Projects". Open up MSVS Tools->Extensions and Updates (Extensions and Updates popup form appears) Online->Visual Studio Marketplace->Tools->Setup & Deployment. Then select "Microsoft Visual Studio 2017 Installer Projects" (today, August 20, 2018, the version is 0.8.8).
NOTES: These are more of the classical MS installers we all know and love used since VS6 days.
来源:https://stackoverflow.com/questions/43308270/vs2017-setup-project-where