我想为旧的项目设置Continuations Integration
。为网站发布文物转到预编译的网页
该项目仍然使用网站而不是Web应用程序。在Visual studio
我创建了发布配置文件。我只是希望它将它发布到解决方案中的本地文件夹中。
当我从Visual studio
内发布,但只要我跑MSbuild
命令,然后它会创建一个PrecompiledWeb文件夹,并把代码中有它的伟大工程。
,这导致我的构建神器,只要我尝试失败,并设置我的CI
这是我发布的个人资料设置
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<publishUrl>.\Publish</publishUrl>
<DeleteExistingFiles>True</DeleteExistingFiles>
<PrecompileBeforePublish>False</PrecompileBeforePublish>
</PropertyGroup>
</Project>
我甚至试图设置PrecompileBeforePublish
到假。但是这也没有奏效。
我MSBuild
命令
c:\development\projectname>msbuild project.sln /p:deployOnBuild=true /p:publishProfile=projectFileSystem
什么是您正在使用的Visual Studio的版本?您是否尝试使用Visual Studio 2013及更高版本? –