[英]How to publish an asp web application in IIS with setup project installer in visual studio
I developed an asp.net web application, I would like to generate an installer which could deploy this application in IIS automatically (or manually with published website code). 我开发了一个asp.net Web应用程序,我想生成一个安装程序,可以自动(或使用发布的网站代码手动)在IIS中部署此应用程序。 I've tried to publish the code manually by myself and add them into setup project, but there always gives me an error message.
我尝试自己手动发布代码并将其添加到安装项目中,但是始终会出现错误消息。 I wonder if there is a way to generate an installer which could deploy my application on IIS.
我想知道是否有一种方法可以生成可以在IIS上部署我的应用程序的安装程序。
Here are steps you can take. 您可以采取以下步骤。
1) Take a look at the following link which gives a plugin if you are using visual studio 2015,21017 or 2019. I think this plugin will work even with Community edition. 1)如果您使用的是Visual Studio 2015,21017或2019,请查看下面的链接,该链接提供了一个插件。我认为该插件甚至可以在Community Edition中使用。
https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2017InstallerProjects https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2017InstallerProjects
2) Once the plugin is installed the following link from microsoft can guide you how you can do the setup at high level. 2)安装插件后,Microsoft的以下链接可以指导您如何进行高级安装。
https://docs.microsoft.com/en-us/biztalk/core/how-to-create-a-web-setup-for-your-published-web-service https://docs.microsoft.com/zh-cn/biztalk/core/how-to-create-a-web-setup-for-your-published-web-service
Hope this helps. 希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.