Is there someway to get MSBuild to skip over missing files when using /p:OutDir
?
I am working with TeamCity to continuously build a large webproject. I have written a program that handles our continuous deployment but I am running into an issue with MSbuild. I am using the property switch OutDir to output my needed web files.
Here is my msbuild command:
msbuild project.sln /property:Configuration=Release /property:OutDir=R:\BuildOutput\
MSBuild is failing with OutDir
because there are files missing. Example:
error MSB3021: Unable to copy file "Api\Js\excanvas.min.js" to "R:\BuildOutput\_PublishedWebsites\Web\Api\Js\excanvas.min.js". Could not find file 'Api\Js\excanvas.min.js'.
It's a very large and old project with lots of missing files. Is there someway to get MSBuild to skip over these files and/or ignore these errors.
Thanks, any help will be appreciated.
Adding the missing files is a quick fix, but I don't want to add all the missing files every time we run into this issue.