I have a solution with a bunch of web projects, and I want my build server to automatically create packages for each project. I can get (almost) everything that works. The build is fine, and packages will be created on each build. But only when I do not specify PublishProfile in the arguments of MSBuild. That way, it will only embed the default values, and not precompile my websites, etc. (Arguments /p:DeployOnBuild=True /p:IsAutoBuild=True /p:VisualStudioVersion=12.0 )
However, I want to use publishing profiles (.pubxml) created in Visual Studio. Each project has a "Test.pubxml". But when I specify the PublishProfile parameter, the assembly will fail with the following error message (Arguments /p:DeployOnBuild=True;PublishProfile=Test /p:IsAutoBuild=True /p:VisualStudioVersion=12.0 ):
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Transform\Microsoft.Web.Publishing.AspNetCompileMerge.targets (411): Can't find the valid AspnetCompilerPath
Yes, the Microsoft.Web.Publishing.AspNetCompileMerge.targets file exists in this folder. I can deploy projects from Visual Studio on my development machine just fine.
I use the following: Windows Server 2012 R2 Visual Studio Ultimate 2013 Update 1 Update (installed on the build server) Projects for .Net 4.5.1
wertzui
source share