Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 ASP.NET 项目。编译此项目时,它将创建一个 DLL。
假设这个项目不需要任何其他 dll(引用)。
我想知道所需的最小文件是什么。
我知道文件后面的 VB 代码将成为此 dll 的一部分,并且在服务器上不需要
所以问题是:
1: Is Web.Config file needed? 2: Is Global.asax needed? 3: Are aspx files needed?
如果以上所有都需要,那么我们不能简单地将它们复制到我们的服务器而不发布应用程序吗?
是的,您可以xcopy将您的web.config,global.asax和所有.aspx文件发送到服务器,这本质上是PublishVisual Studio 中的命令所做的。
xcopy
web.config
global.asax
.aspx
Publish
还可以选择在通过 Visual StudioProfile执行操作时创建一个新Publish文件并将文件发布到一个目录,这样您就可以在实际执行之前查看将哪些内容推送到实际服务器。我将其用作我们部署过程的一部分,以获取部署到我们每个测试环境的代码副本。
Profile