error MSB3073: How do I fix this?

For anyone else that comes across this question my problem was that the target directory contained spaces i.e.

C:\Users\Administrator\Documents\Visual Studio 2017\projects\blah

So for me the solution was to wrap $(TargetDir) in double quotes i.e.

copy ..\resources\\* "$(TargetDir)" /Y

Leave a Comment