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

  • Ways to remove event listeners

    #​624 — February 3, 2023 Read on the Web JavaScript Weekly You’ve Got Options for Removing Event Listeners — Unnecessary event listeners can cause all sorts of odd problems so it’s good to clean them up when you don’t need them anymore. How? There are several approaches and Alex looks at their pros and cons. (once

    Posted by Posted on February 3, 2023
    0
  • SQL in your JavaScript

    #​472 — February 2, 2023 Read on the Web AlaSQL.js 3.0: Isomorphic JavaScript SQL Database — A SQL database you can use in Node.js and the browser. The interesting bit, for me, is how it opens up the idea of using SQL to query JavaScript objects – as in this example. “The library adds the

    Posted by Posted on February 2, 2023
    0
  • Astro 2.0 and TypeScript 5.0 beta

    #​623 — January 27, 2023 Read on the Web JavaScript Weekly Astro 2.0: The Next-Gen ‘Islands’-Oriented Web Framework — 2.0 includes hybrid rendering (mixing of SSR and SSG outputs), type safety for Markdown & MDX, and an upgrade to Vite 4.0. Astro is worth exploring when performance is key as it works with popular frameworks

    Posted by Posted on January 27, 2023
    0
  • Automating the desktop with Node

    #​471 — January 26, 2023 Read on the Web Nut.js 3.0: Use Node for Desktop Automation — Take control of your desktop environment (Windows, macOS or Linux) from code with control over keyboard and pointer, plus you get some image matching possibilities too. Open source but with optional sponsor-only extension packages. GitHub repo and what’s new

    Posted by Posted on January 26, 2023
    0
  • Why document.write() is bad

    #​622 — January 20, 2023 Read on the Web JavaScript Weekly Why Not document.write()? — Many moons ago, document.write was a mainstay of client-side JavaScript code, but it’s long been considered a bad practice – why? Harry digs in, noting that it “guarantees both a blocking fetch and a blocking execution, which holds up the

    Posted by Posted on January 20, 2023
    0
  • We’re going on a memory leak hunt

    #​470 — January 19, 2023 Read on the Web Fixing a Memory Leak in a Production Node App — Kent encountered a variety of weird memory and CPU usage spikes in his Node-powered app and decided to figure out what was going on. This post walks through his complete journey, with plenty of side problems

    Posted by Posted on January 19, 2023
    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
  • Ways to remove event listeners
  • SQL in your JavaScript
  • Astro 2.0 and TypeScript 5.0 beta
  • Automating the desktop with Node
  • Why document.write() is bad
https://flatlogic.com/generator
COPYRIGHT © 2023 - Codepolice