简体   繁体   English

Visual Studio 2013 Web部署程序包问题

[英]Visual Studio 2013 Web Deploy Package Issue

I've been using the Web Deploy Package to publish a site I'm working on to our test server but for some reason its started including the .sln file and it doesn't seem to be compiling the solution anymore. 我一直在使用Web Deploy软件包将正在处理的网站发布到我们的测试服务器,但是由于某种原因,它开始包含.sln文件,并且它似乎不再在编译解决方案。 I've checked the configuration and its using the release build but when I deploy all of the .cs and .designer.cs are included. 我已经使用发布版本检查了配置及其配置,但是在部署所有.cs和.designer.cs时都包括在内。 I'm deploying a second site using the same setting and that is deploying OK. 我正在使用相同的设置部署第二个站点,并且正在部署OK。

Has anyone else experienced this? 其他人有没有经历过? I've cleaned and rebuilt the solution and I've deleted the publish profile and created a new one but nothing has helped. 我已经清理并重建了解决方案,并且删除了发布配置文件并创建了一个新配置文件,但是没有任何帮助。

Any pointers would be appreciated. 任何指针将不胜感激。

I've sorted this now. 我已经对此进行了排序。 It turns out in the project properties > Package/Publish Web Tab I had the Items to deploy drop down set to "All files in this project". 事实证明,在项目属性>打包/发布Web选项卡中,我将要部署的项目下拉列表设置为“该项目中的所有文件”。 I changed to "Only files needed to run this application" and everything worked as expected. 我改为“仅文件才能运行此应用程序”,并且一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM