我收到此错误消息:
(SetGenerateManifests target) ->
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(4351,5): error : Publish is only valid for 'Windows Application' or 'Console Application' project types. [E:\myproj\myproj.csproj]
运行这个命令行:
c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild e:\myproj\myproj.csproj /p:VisualStudioVersion=11.0 /t:ResolveReferences;Publish /p:DeployOnBuild=true /p:Configuration=Release-Dev /p:PublishProfile=myapp-Dev-Web /p:DeployOnBuild=true /p:Password=mypass /p:VisualStudioVersion=11.0 /l:FileLogger,Microsoft.Build.Engine;logfile=E:\temp\web-build.txt;Verbosity=Diagnostic
在此之前,我运行了一个成功的命令行:
c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild e:\mysln.sln
/p:BuildProjectReferences=true /p:Configuration=Release-Dev