Problems with MSBUILD tasks after playing with Visual Studio
I use a custom MSBUILD XML file to build some of my projects so that I can run stuff to compress CSS/JS files and stuff like that. After installing Visual Studio 2010 and playing around a bit with suddenly my builds started to fail.
C:Program Files (x86)MSBuildMicrosoftVisualStudiov10.0WebApplicationsMicrosoft.WebApplication.targets(132,11): error MSB4064: The "Retries" parameter is not supported by the "Copy" task. Verify the parameter exists on the task, and it is a settable public instance property. C:Program Files (x86)MSBuildMicrosoftVisualStudiov10.0WebApplicationsMicrosoft.WebApplication.targets(130,5): error MSB4063: The "Copy" task could not be initialized with its input parameters.
After some debugging, I realized that Visual Studio 2010 had changed a line in the csproj file of my web application project.
From:
To:
I just had to change this line back to v9.0 to get it to work again. Hopefully, this can help someone that has the same problem as me.
UPDATE!
Now when the RTM of Visual Studio was released I of course ran into this problem again. This time I tried to find a better solution and found this post on delicious. In the comments to that post, i found a solution that worked great for me.
I had the same issue. I had to alter the MSbuild WebApplication file located: C:Program Files (x86)MSBuildMicrosoftVisualStudiov10.0WebApplications and remove these entries.
Retries=”$(CopyRetryCount)”
and RetryDelayMilliseconds=”$(CopyRetryDelayMilliseconds)”
Once both of these were removed (in 13 places) everything worked fine. Hope it helps you too.