visual studio - TFS 2017 - MSBuild - InsertIfMissing Transform Fails -
i'm attempting set ci / cd process asp.net project our on premise tfs 2017 server, getting error in msbuild process while carrying out following transform web.config file.
<add key="mysetting" value="mynewvalue" xdt:transform="insertifmissing" xdt:locator="match(key)"/>
error : not resolve 'insertifmissing' type of transform
the transform works in vs 2015 & vs 2017 (during previews , publishes), fails during msbuild process on tfs 2017 server.
why be?
i'm specifying tools version 14.0 (/tv:14.0
)in msbuild arguments, have thought using recent transform components (i realise insertorreplace
relatively recent addition vs)? (i must admit don't know they'd found though. .net framework? vs install directory? build agent has vs2017 installed on it, , .net 4.6.1)
my full msbuild parameters follows, in case else may wrong there.
/tv:14.0 /p:optionstrict=false /p:optioninfer=false /p:optionexplicit=false /p:optioncompare=binary /p:deployonbuild=true /p:webpublishmethod=package /p:packageassinglefile=true /p:skipinvalidconfigurations=true /p:packagelocation="$(build.stagingdirectory)\$(build.definitionname)\$(build.buildnumber)"
is there obvious update tfs 2017 server / build agent carry out? or easy work around insertifmissing
transform?
Comments
Post a Comment