TFS Build Server cannot get publish profile to work: “Can't find the valid AspnetCompilerPath”


have solution bunch of web projects , want build server automatically create packages each project. able to (nearly) working. builds fine und packages created on each build. when not specify publishprofile in msbuild arguments. insert default values , not precompile web sites , such. (arguments /p:deployonbuild=true /p:isautobuild=true /p:visualstudioversion=12.0)

want use publish profiles (.pubxml) created in visual studio. each project has "test.pubxml". when specify publishprofile parameter, build fail 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 valid aspnetcompilerpath

yes, file microsoft.web.publishing.aspnetcompilemerge.targets exist in folder. can deploy projects visual studio on developer machine fine.

using following: windows server 2012 r2 visual studio ultimate 2013 update 1 (installed on build server) projects .net 4.5.1

hi wertzui,

let's further testings:

1). open your web site project file (.proj file), change toolversion 12.0.

<project defaulttargets="build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" toolsversion="12.0">
2). open tfs build process template, find the run msbuild activity , change toolversion to 12.0. see:

after modified template, check in use in build definition. re-queue build.

thanks.


we trying better understand customer views on social support experience, participation in interview project appreciated if have time. helping make community forums great place.
click here participate survey.



Archived Forums V  >  Team Foundation Server - Build and release management



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........