Problems with MSBUILD tasks after playing with Visual Studio 2010

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.

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 devlicio. 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.

6 Thoughts on “Problems with MSBUILD tasks after playing with Visual Studio 2010

  1. Hi
    I had the same message. I had to change path to MSBuild to the one that comes with .NET 4.
    And it works :)

  2. That’s a winning fix in the update! Love it, Saved my day!

  3. myke on May 19, 2010 at 4:05 am said:

    This worked for me also. Thank you so much. I’ve wasted a day instead of a week now!

  4. Thank you, this helped immensely after I upgraded to VS 2010!

  5. I had the same issue.
    it works – thanks,

    “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.”

  6. It was not my issue but that gave me pointer to solve my issue. I installed VS 2012 and it installed .Net runtime 4.5 and that broke my build of VS 2010 projects. Uninstalled 4.5 .net, installed 4.0 again and everything came back to life.

    Thanks for sharing
    Abbas

Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Post Navigation