【问题标题】:Create a setup for website in Visual Studio 2010 Express在 Visual Studio 2010 Express 中为网站创建设置
【发布时间】:2012-09-22 09:59:59
【问题描述】:

我在 Visual Studio 2010 Express 中创建了一个网站。
现在我想为它创建一个安装文件(.exe 或 .msi),以便它可以安装在本地 IIS 服务器上。我不打算在网上发布这个网站,即在互联网上。我只想在连接到局域网的本地机器上使用它。
这是我的第一个网站,我不知道在 Visual Studio 中创建设置过程。

 if( Can I able to create a setup file of a website? )
 { 
    How?  
 }  
 else  
 {
    if(Should I have to convert it into a web application?  )
    {
        What are the steps to create setup of web application so as 
        to run it on local computers? 
    }  
 }

抱歉,我的表述不好,但我不知道如何用语言表达我的问题。

【问题讨论】:

    标签: visual-studio-2010 web installation


    【解决方案1】:

    几个月前我做了这个,我发现这篇文章很有用:Programmatically create a web site in IIS using C# and set port number。它将向您展示如何使用 C# 代码创建 IIS 7 记录。

    您可以使用此信息创建 .exe 的一种方法是创建一个单独的应用程序,该应用程序将创建 IIS 7 记录并将文件从您的网站目录源复制到您的新位置。

    您还在问题中提到了一个网络应用程序 - 部署这种类型的网站非常容易,您可以 find deployment instructions here 使用这种方法。

    我觉得这可以通过几种不同的方式来完成,你可能会发现你需要使用一些谷歌技能来找到最合适的。

    【讨论】:

      猜你喜欢
      • 2017-12-01
      • 2012-01-27
      • 2013-08-04
      • 2012-09-18
      • 2014-01-04
      • 2013-04-03
      • 1970-01-01
      • 1970-01-01
      • 2010-12-03
      相关资源
      最近更新 更多