tfs vsts-agent msbuild包作为单个文件不会产生任何输出

时间:2017-09-29 20:45:45

标签: visual-studio-2015 tfs msbuild azure-devops

在我的TFS构建框中,我正在使用带有以下开关的msbuild构建一个网站(为了便于阅读,分成几行...)

"C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe" 
"C:\buildagent\agent1\_work\1\s\ALM.TestWeb.sln" 
/nologo 
/nr:false 
/p:DeployOnBuild=true 
/p:WebPublishMethod=Package 
/p:PackageAsSingleFile=true 
/p:SkipInvalidConfigurations=true 
/p:PackageLocation="C:\buildagent\agent1\_work\1\a\\" 
/p:platform="any cpu" 
/p:configuration="release" 
/p:VisualStudioVersion="14.0" 
/p:_MSDeployUserAgent="TFS_b703cd8a-0160-43cb-8b4e-6da302e2005d_build_36_1583"

计划是TFS构建网站并将所有内容压缩成上述目录中的zip。它没有这样做,我不知道为什么。如果这有用的话,这是构建的日志...

    ==============================================================================
Task         : Visual Studio Build
Description  : Build with MSBuild and set the Visual Studio version property
Version      : 1.119.0
Author       : Microsoft Corporation
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613727)
==============================================================================
"C:\buildagent\agent1\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.119.0\ps_modules\MSBuildHelpers\vswhere.exe" -version [15.0,16.0) -latest -format json
"C:\buildagent\agent1\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.119.0\ps_modules\MSBuildHelpers\vswhere.exe" -version [15.0,16.0) -products Microsoft.VisualStudio.Product.BuildTools -latest -format json
Visual Studio version '15.0' not found. Falling back to version '14.0'.
"C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe" "C:\buildagent\agent1\_work\1\s\ALM.TestWeb.sln" /nologo /nr:false /dl:CentralLogger,"C:\buildagent\agent1\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.119.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=6808b8db-39de-488d-9517-f57544cac9ba|SolutionDir=C:\buildagent\agent1\_work\1\s"*ForwardingLogger,"C:\buildagent\agent1\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.119.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="C:\buildagent\agent1\_work\1\a\\" /p:platform="any cpu" /p:configuration="release" /p:VisualStudioVersion="14.0" /p:_MSDeployUserAgent="TFS_b703cd8a-0160-43cb-8b4e-6da302e2005d_build_36_1583"
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 10/1/2017 11:45:11 AM.
Project "C:\buildagent\agent1\_work\1\s\ALM.TestWeb.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "release|any cpu".
Project "C:\buildagent\agent1\_work\1\s\ALM.TestWeb.sln" (1) is building "C:\buildagent\agent1\_work\1\s\ALM.TestWeb\ALM.TestWeb.csproj" (2) on node 1 (default targets).
PrepareForBuild:
  Creating directory "bin\".
  Creating directory "obj\Release\".
ResolveAssemblyReferences:
  Consider app.config remapping of assembly "WebGrease, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "1.5.1.25624" [] to Version "1.5.2.14234" [C:\buildagent\agent1\_work\1\s\packages\WebGrease.1.5.2\lib\WebGrease.dll] to solve conflict and get rid of warning.
  Consider app.config remapping of assembly "Newtonsoft.Json, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" from Version "4.5.0.0" [] to Version "6.0.0.0" [C:\buildagent\agent1\_work\1\s\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll] to solve conflict and get rid of warning.
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): Warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /><bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /></dependentAssembly></assemblyBinding>
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /><bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /></dependentAssembly></assemblyBinding> [C:\buildagent\agent1\_work\1\s\ALM.TestWeb\ALM.TestWeb.csproj]
CoreCompile:
  C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\build\..\tools\csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE /highentropyva+ /reference:C:\buildagent\agent1\_work\1\s\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll /reference:C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.Agent.Intercept.2.0.6\lib\net45\Microsoft.AI.Agent.Intercept.dll /reference:C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.DependencyCollector.2.2.0\lib\net45\Microsoft.AI.DependencyCollector.dll /reference:C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.PerfCounterCollector.2.2.0\lib\net45\Microsoft.AI.PerfCounterCollector.dll /reference:C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.2.0\lib\net45\Microsoft.AI.ServerTelemetryChannel.dll /reference:C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.Web.2.2.0\lib\net45\Microsoft.AI.Web...
_CopyFilesMarkedCopyLocal:
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll" to "bin\Antlr3.Runtime.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.Agent.Intercept.2.0.6\lib\net45\Microsoft.AI.Agent.Intercept.dll" to "bin\Microsoft.AI.Agent.Intercept.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.DependencyCollector.2.2.0\lib\net45\Microsoft.AI.DependencyCollector.dll" to "bin\Microsoft.AI.DependencyCollector.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.PerfCounterCollector.2.2.0\lib\net45\Microsoft.AI.PerfCounterCollector.dll" to "bin\Microsoft.AI.PerfCounterCollector.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.2.0\lib\net45\Microsoft.AI.ServerTelemetryChannel.dll" to "bin\Microsoft.AI.ServerTelemetryChannel.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.Web.2.2.0\lib\net45\Microsoft.AI.Web.dll" to "bin\Microsoft.AI.Web.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.WindowsServer.2.2.0\lib\net45\Microsoft.AI.WindowsServer.dll" to "bin\Microsoft.AI.WindowsServer.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.2.2.0\lib\net45\Microsoft.ApplicationInsights.dll" to "bin\Microsoft.ApplicationInsights.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll" to "bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll" to "bin\Microsoft.Web.Infrastructure.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll" to "bin\Newtonsoft.Json.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll" to "bin\System.Web.Helpers.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll" to "bin\System.Web.Mvc.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll" to "bin\System.Web.Optimization.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll" to "bin\System.Web.Razor.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll" to "bin\System.Web.WebPages.Deployment.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll" to "bin\System.Web.WebPages.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll" to "bin\System.Web.WebPages.Razor.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\WebGrease.1.5.2\lib\WebGrease.dll" to "bin\WebGrease.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml" to "bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.xml" to "bin\System.Web.Helpers.xml".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.xml" to "bin\System.Web.Mvc.xml".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.xml" to "bin\System.Web.Optimization.xml".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.xml" to "bin\System.Web.Razor.xml".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.xml" to "bin\System.Web.WebPages.xml".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.xml" to "bin\System.Web.WebPages.Deployment.xml".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.xml" to "bin\System.Web.WebPages.Razor.xml".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.pdb" to "bin\Antlr3.Runtime.pdb".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.xml" to "bin\Newtonsoft.Json.xml".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.2.2.0\lib\net45\Microsoft.ApplicationInsights.xml" to "bin\Microsoft.ApplicationInsights.xml".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.DependencyCollector.2.2.0\lib\net45\Microsoft.AI.DependencyCollector.xml" to "bin\Microsoft.AI.DependencyCollector.xml".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.2.0\lib\net45\Microsoft.AI.ServerTelemetryChannel.xml" to "bin\Microsoft.AI.ServerTelemetryChannel.xml".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.WindowsServer.2.2.0\lib\net45\Microsoft.AI.WindowsServer.xml" to "bin\Microsoft.AI.WindowsServer.xml".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.ApplicationInsights.Web.2.2.0\lib\net45\Microsoft.AI.Web.xml" to "bin\Microsoft.AI.Web.xml".
_CopyOutOfDateSourceItemsToOutputDirectory:
  Copying file from "C:\buildagent\agent1\_work\1\s\ALM.TestWeb\ApplicationInsights.config" to "bin\ApplicationInsights.config".
  Creating directory "bin\roslyn".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\csc.exe" to "bin\roslyn\csc.exe".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\csc.exe.config" to "bin\roslyn\csc.exe.config".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\csc.rsp" to "bin\roslyn\csc.rsp".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\csi.exe" to "bin\roslyn\csi.exe".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\csi.rsp" to "bin\roslyn\csi.rsp".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\Microsoft.Build.Tasks.CodeAnalysis.dll" to "bin\roslyn\Microsoft.Build.Tasks.CodeAnalysis.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\Microsoft.CodeAnalysis.CSharp.dll" to "bin\roslyn\Microsoft.CodeAnalysis.CSharp.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\Microsoft.CodeAnalysis.CSharp.Scripting.dll" to "bin\roslyn\Microsoft.CodeAnalysis.CSharp.Scripting.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\Microsoft.CodeAnalysis.dll" to "bin\roslyn\Microsoft.CodeAnalysis.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\Microsoft.CodeAnalysis.Scripting.dll" to "bin\roslyn\Microsoft.CodeAnalysis.Scripting.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\Microsoft.CodeAnalysis.VisualBasic.dll" to "bin\roslyn\Microsoft.CodeAnalysis.VisualBasic.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\Microsoft.CSharp.Core.targets" to "bin\roslyn\Microsoft.CSharp.Core.targets".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\Microsoft.DiaSymReader.Native.amd64.dll" to "bin\roslyn\Microsoft.DiaSymReader.Native.amd64.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\Microsoft.DiaSymReader.Native.x86.dll" to "bin\roslyn\Microsoft.DiaSymReader.Native.x86.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\Microsoft.VisualBasic.Core.targets" to "bin\roslyn\Microsoft.VisualBasic.Core.targets".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\System.AppContext.dll" to "bin\roslyn\System.AppContext.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\System.Collections.Immutable.dll" to "bin\roslyn\System.Collections.Immutable.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\System.Diagnostics.StackTrace.dll" to "bin\roslyn\System.Diagnostics.StackTrace.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\System.IO.FileSystem.dll" to "bin\roslyn\System.IO.FileSystem.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\System.IO.FileSystem.Primitives.dll" to "bin\roslyn\System.IO.FileSystem.Primitives.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\System.Reflection.Metadata.dll" to "bin\roslyn\System.Reflection.Metadata.dll".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\vbc.exe" to "bin\roslyn\vbc.exe".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\vbc.exe.config" to "bin\roslyn\vbc.exe.config".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\vbc.rsp" to "bin\roslyn\vbc.rsp".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\VBCSCompiler.exe" to "bin\roslyn\VBCSCompiler.exe".
  Copying file from "C:\buildagent\agent1\_work\1\s\packages\Microsoft.Net.Compilers.1.3.2\tools\VBCSCompiler.exe.config" to "bin\roslyn\VBCSCompiler.exe.config".
CopyFilesToOutputDirectory:
  Copying file from "obj\Release\ALM.TestWeb.dll" to "bin\ALM.TestWeb.dll".
  ALM.TestWeb -> C:\buildagent\agent1\_work\1\s\ALM.TestWeb\bin\ALM.TestWeb.dll
  Copying file from "obj\Release\ALM.TestWeb.pdb" to "bin\ALM.TestWeb.pdb".
Done Building Project "C:\buildagent\agent1\_work\1\s\ALM.TestWeb\ALM.TestWeb.csproj" (default targets).
Done Building Project "C:\buildagent\agent1\_work\1\s\ALM.TestWeb.sln" (default targets).
Build succeeded.
"C:\buildagent\agent1\_work\1\s\ALM.TestWeb.sln" (default target) (1) ->
"C:\buildagent\agent1\_work\1\s\ALM.TestWeb\ALM.TestWeb.csproj" (default target) (2) ->
(ResolveAssemblyReferences target) -> 
  C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35" /><bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /><bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /></dependentAssembly></assemblyBinding> [C:\buildagent\agent1\_work\1\s\ALM.TestWeb\ALM.TestWeb.csproj]
    1 Warning(s)
    0 Error(s)
Time Elapsed 00:00:05.35

如果有人能告诉我自己做错了什么,我们将不胜感激。谢谢!

2 个答案:

答案 0 :(得分:2)

在分析日志后,我注意到...

中缺少Web文件夹

C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v14.0

发现其中一位构建工程师正在释放构建服务器上的空间。他卸载了Visual Studio 2015并安装了Visual Studio 2015 Build Tools。据我所知,它没有安装构建网站所需的一切。

修复程序是安装Visual Studio 2015并检查了Microsoft Web Developers Tools。

答案 1 :(得分:0)

首先,您可以将输出文件存档到zip文件,然后进行部署。

其次,在创建发布配置文件(右键单击网站=&gt;发布网络应用程序=&gt;自定义=&gt;网页部署包)后,它将创建 xx.publishproj 文件,这是用于发布网站应用程序。

因此,您可以指定此文件以在Visual Studio Build任务中构建和发布。 有一个相关的主题:How to use command line msbuild to deploy VS2012 Web Site project without precompiling it?