Skip to content

Codepolice

  • ⤫

Problems with MSBUILD tasks after playing with Visual Studio 

Posted by Judy Alvarez Posted on February 28, 2022March 3, 2022
0

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.

Categories: JavascriptTagged: .net core razor pages vs mvc, .net mvc 2, .net mvc development, .net mvc interview questions for 4 years experience, .net mvc life cycle, adminlte mvc 5 asp .net, aps net mvc, asp dot net mvc, asp net core mvc 2, asp net core mvc form, asp net mvc 4.0 download, asp net mvc 7, asp net mvc create pdf from html, asp net mvc form submit, asp net mvc grids, asp net mvc hosting, asp net mvc test, asp net mvc tutorial c#, asp net mvc view, bootstrap admin template free download for asp net mvc 5, gitignore asp net mvc, login asp net mvc, microsoft asp net mvc 4, mvc framework net, net mvc calendar, net mvc components, net mvc reporting tools, outsource .net mvc development, simple mvc application in asp net with database, telerik ui for asp net mvc

Post navigation

Previous Previous post: New Relic and runAllManagedModulesForAllRequests flag in .net
Next Next post: View JSON directly in Firefox

Related Posts

  • What’s next for JavaScript frameworks in 2026

    #​770 — January 27, 2026 Read on the Web JavaScript Weekly Introducing LibPDF: PDF Parsing and Generation from TypeScript — LibPDF bills itself as ‘the PDF library TypeScript deserves’ and supports parsing, modifying, signing and generating PDFs with a modern API in Node, Bun, and the browser. GitHub repo. Documenso JavaScript Frameworks – Heading into 2026

    Posted by Posted on January 27, 2026
    0
  • require(esm) now stable in Node 25

    #​608 — January 22, 2026 Read on the Web Node.js 25.4.0 (Current) Released — Another gradual step forward for Node with require(esm) now marked as stable, as well as the module compile cache, along with a variety of other minor tweaks. Joyee Cheung of the Node team has written a thread on Bluesky going deeper

    Posted by Posted on January 22, 2026
    0
  • A big week for jQuery

    #​769 — January 20, 2026 Read on the Web JavaScript Weekly jQuery 4.0 Released — 20 years on from its original release, the ever-popular (in terms of actual usage) library reaches 4.0 with a migration to ES modules (compatible with modern build tools) along with dropping support for IE 10 and older. With jQuery being

    Posted by Posted on January 20, 2026
    0
  • A new guide to configuring Node packages

    #​607 — January 15, 2026 Read on the Web ⚠️ The Node.js January 13, 2026 Security Releases — Originally expected in December, these releases (of Node.js 25.3.0, 24.13.0, 22.22.0, and 20.20.0) finally landed this week, largely due to their complexity and the scope of the vulnerabilities they tackle. More on that in the next item! The Node.js

    Posted by Posted on January 15, 2026
    0
  • Can we ever fix the web dependency mess?

    #​768 — January 13, 2026 Read on the Web JavaScript Weekly Web Dependencies are Broken; Can We Fix Them? — Lea, who has worked at the heart of Web Standards for years, delivers a compelling (and educational) call to action about a problem every JavaScript developer has encountered: why is managing dependencies and introducing them

    Posted by Posted on January 13, 2026
    0
  • The story of how require(esm) became stable

    #​606 — January 8, 2026 Read on the Web 🎉 Happy New Year! Also, a quick reminder that Node Weekly is now sent every Thursday as part of a reshuffle for many of our newsletters. __Your editor, Peter Cooper npm to Implement ‘Staged Publishing’ After Turbulent Shift Off Classic Tokens — 2025 was a tricky year

    Posted by Posted on January 8, 2026
    0
Judy Alvarez

Leave a Reply Cancel reply

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

Codepolice

  • Github
  • Atlassian
  • Flatlogic
  • Xero
  • Jetbrains
  • Figma
  • What’s next for JavaScript frameworks in 2026
  • require(esm) now stable in Node 25
  • A big week for jQuery
  • A new guide to configuring Node packages
  • Can we ever fix the web dependency mess?
https://flatlogic.com/generator
COPYRIGHT © 2026 - Codepolice