question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VS2015 Update 1: MVC build fails with error MSB4064: The "Features" parameter is not supported by the "Csc" tas

See original GitHub issue

There are a few twists to when you encounter this bug. I eventually found that it occurs every time if:

  • Packages are restored before build starts.
  • The obj folder is missing
  • The bin folder is missing

I’ve attached a zip with a repro solution. Run build-fails.bat to see the build fail. Run build-succeeds.bat to see the build succeed.

Edit: Seems the problem occurs with VS2015 Update 1. I’m afraid this likely means that every paket user with an MVC project will start to see their builds failing when they update.

Edit2: The exact error from the build log:

2>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.Core.targets(88,11): error MSB4064: The "Features" parameter is not supported by the "Csc" task. Verify the parameter exists on the task, and it is a settable public instance property.
2>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.Core.targets(67,5): error MSB4063: The "Csc" task could not be initialized with its input parameters. 

PaketBugRepro.zip

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:64 (45 by maintainers)

github_iconTop GitHub Comments

2reactions
forkicommented, Mar 23, 2016

I don’t speak msbuild 😃

Nobody does.

My strategy:

strategy

1reaction
Stiftcommented, Mar 23, 2016

Oh. I see - They are imported but at the end of the file. VS puts them on top of the csproj. When I put manually the paket stuff on top, it works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

error MSB4064: The "AnalyzerConfigFiles" parameter is ...
I get error MSB4064: The “AnalyzerConfigFiles” parameter is not supported by the “Csc” task. Verify the parameter exists on the task, and it...
Read more >
MSB4064 - MSBuild
This error occurs when a task is invoked with a parameter that is not compatible with the task. The full message resembles the...
Read more >
Visual Studio Community 2015 Update 1 Build Issue
The "Features" parameter is not supported by the "Csc" task. Verify the parameter exists on the task, and it is a settable public...
Read more >
Could Not Find A Part Of The Path... bin\roslyn\csc.exe
A fix to Roslyn issue when compiling in .NET Code. Introduction. This is long existing issue, at least since VS 2015.
Read more >
Updating Typescript in VS2015/ASP.NET MVC
Compiler for the version of Typescript you want to use, random errors prevent building such as: tsc.exe has exited with code 1.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found