c# - wpp.target could not write destination file in TFS Auto Build -


i'm having problem trying builds work on tfs. have user called tfsbuild , has access c:\builds security , sharing tab. i've searched , adding following msbuild arguments still doesn't seem work:

/m:1 /p:usewpp_copywebapplication=true /p:pipelinedependsonbuild=false /p:buildinparallel=false /p:deployonbuild=true

i have wpp.target file , seems failing

<?xml version="1.0" encoding="utf-8"?> <project toolsversion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">   <usingtask taskname="transformxml"              assemblyfile="$(msbuildextensionspath)\microsoft\visualstudio\v11.0\web\microsoft.web.publishing.tasks.dll"/>    <!-- make sure web.config there package/publish -->   <!--target name="copywebconfig" beforetargets="build;rebuild;configtransform">     <message text="replacing web.config base." importance="high" />     <copy sourcefiles="web.base.config"           destinationfiles="web.config"           overwritereadonlyfiles="true"           skipunchangedfiles="false" />   </target-->    <target name="configtransform" beforetargets="build;rebuild" condition="exists('web.$(configuration).config')">     <message text="transforming: web.$(configuration).config" importance="high" />     <!--transformxml source="web.base.config"                   transform="web.$(configuration).config"                   stacktrace="true"                   destination="web.config" /-->   </target> </project> 

the error below , i'm fresh out of ideas...

c:\builds***.wpp.targets (17): exception: not write destination file: access path 'c:\builds***web.config' denied. @ microsoft.web.publishing.tasks.transformxml.savetransformedfile(xmltransformabledocument document, string destinationfile) @ microsoft.web.publishing.tasks.transformxml.execute() unauthorizedaccessexception: access path 'c:\builds**web.config' denied. @ system.io.__error.winioerror(int32 errorcode, string maybefullpath) @ system.io.filestream.init(string path, filemode mode, fileaccess access, int32 rights, boolean userights, fileshare share, int32 buffersize, fileoptions options, security_attributes secattrs, string msgpath, boolean bfromproxy, boolean uselongpath, boolean checkhost) @ system.io.filestream..ctor(string path, filemode mode, fileaccess access, fileshare share, int32 buffersize, fileoptions options, string msgpath, boolean bfromproxy, boolean uselongpath, boolean checkhost) @ system.io.streamwriter..ctor(string path, boolean append, encoding encoding, int32 buffersize, boolean checkhost) @ system.io.streamwriter..ctor(string path, boolean append, encoding encoding, int32 buffersize) @ system.io.streamwriter..ctor(string path, boolean append, encoding encoding) @ microsoft.web.publishing.tasks.xmlattributepreservingwriter..ctor(string filename, encoding encoding)


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -