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 the story? JavaScript’s 30!

    #​764 — December 5, 2025 Read on the Web JavaScript Weekly 🎉  JavaScript Turns 30 Years Old  🎉 Back in May 1995, a 33 year old Brendan Eich built the first prototype of JavaScript in just ten days, originally codenamed Mocha (and then LiveScript). On December 4, 1995, Netscape and Sun Microsystems officially announced ‘JavaScript’ in a

    Posted by Posted on December 5, 2025
    0
  • Comparing performance across Node versions and ARM vs x86

    #​603 — December 2, 2025 Read on the Web Tinybench 6.0: A Tiny, Simple Benchmarking Library — Uses whatever precise timing capabilities are available (e.g. process.hrtime or performance.now). You can then benchmark whatever functions you want, specify how long or how many times to benchmark for, and get a variety of stats in return –

    Posted by Posted on December 2, 2025
    0
  • Algorithms visualized and demonstrated in JavaScript

    #​763 — November 28, 2025 Read on the Web JavaScript Weekly Over 150 Algorithms and Data Structures Demonstrated in JS — Examples of many common algorithms (e.g. bit manipulation, Pascal’s triangle, Hamming distance) and data structures (e.g. linked lists, tries, graphs) with explanations. Available in eighteen other written languages too. Oleksii Trekhleb et al. TypeScript: From

    Posted by Posted on November 28, 2025
    0
  • Guess who’s back, back again? Shai-Hulud.

    #​602 — November 25, 2025 Read on the Web How a Summer in Abruzzo Helped Bring Type Stripping to Node.js — Node.js TSC member and committer Marco tells the personal tale of what it took to bring type stripping (now considered stable) to Node. It’s neat to get the back story. He’s now working on

    Posted by Posted on November 25, 2025
    0
  • A significant Angular release

    #​762 — November 21, 2025 Read on the Web JavaScript Weekly Google Announces Angular v21 — The Google team has gone all out with this significant release of its popular JavaScript framework. They’ve put together a retro game-themed adventure-based tour of what’s new, along with top notch videos showing off features like its new signal-based

    Posted by Posted on November 21, 2025
    0
  • Did you know Node has a ‘deprecate’ method?

    #​601 — November 18, 2025 Read on the Web Node.js v25.2.1 (Current) Released (and 25.2.0 with Type Stripping Marked ‘Stable’) — v25.2.0 was released hours after we hit send last week (often the way!) and marked type stripping as stable, meaning all major server-side runtimes now support TypeScript officially (at least in type-stripping form). v25.2.1,

    Posted by Posted on November 18, 2025
    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 the story? JavaScript’s 30!
  • Comparing performance across Node versions and ARM vs x86
  • Algorithms visualized and demonstrated in JavaScript
  • Guess who’s back, back again? Shai-Hulud.
  • A significant Angular release
https://flatlogic.com/generator
COPYRIGHT © 2025 - Codepolice