2016-02-18 66 views
0

我正尝试从Visual Studio 2015 Professional设置发布/ Web部署。出于某种原因,发布不会构建或使用解决方案中的某个项目。我不知道为什么会出现这种情况,因为所有项目都是在我正常建造时在本地建造的。Visual Studio发布跳过项目

这不会发生,因为有问题的项目已经是最新的。它不是最新的,但它根本没有被建立。该解决方案有6个项目,其中只有5个正在使用(Build: 5 succeeded, 0 failed, 0 up-to-date, 0 skipped)。

我从启动项目发布(右键单击>发布),但未构建的项目也是一个Web项目。我可以从另一个发布,并跳过这一个。我需要这两个被建立/发布。

这是一个相对较新的问题 - 自我设置以来,发布工作完美无暇,但本周早些时候在我所构建的所有三个服务器/网站上出现了一个未知原因。

我不知道会提供什么样的信息;我会发布任何要求。

.pubxml文件:

<?xml version="1.0" encoding="utf-8"?> 
<!-- 
This file is used by the publish/package process of your Web project. You can customize the behavior of this process 
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121. 
--> 
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 
    <PropertyGroup> 
    <WebPublishMethod>MSDeploy</WebPublishMethod> 
    <ADUsesOwinOrOpenIdConnect>False</ADUsesOwinOrOpenIdConnect> 
    <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> 
    <LastUsedPlatform>Mixed Platforms</LastUsedPlatform> 
    <SiteUrlToLaunchAfterPublish /> 
    <LaunchSiteAfterPublish>False</LaunchSiteAfterPublish> 
    <ExcludeApp_Data>True</ExcludeApp_Data> 
    <MSDeployServiceURL>https://SERVER-NAME:8172/msdeploy.axd</MSDeployServiceURL> 
    <DeployIisAppPath>SITE NAME</DeployIisAppPath> 
    <RemoteSitePhysicalPath /> 
    <SkipExtraFilesOnServer>True</SkipExtraFilesOnServer> 
    <MSDeployPublishMethod>WMSVC</MSDeployPublishMethod> 
    <EnableMSDeployBackup>True</EnableMSDeployBackup> 
    <UserName>DOMAIN\USER</UserName> 
    <_SavePWD>True</_SavePWD> 
    </PropertyGroup> 
</Project> 

回答

0

您应该确保该项目是建立以建立通过右键点击该解决方案所选择的配置和选择ConfigurationManager中:

enter image description here

enter image description here

相关问题