VS2015 Update 1: MVC build fails with error MSB4064: The "Features" parameter is not supported by the "Csc" tas
See original GitHub issueThere 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.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:64 (45 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Nobody does.
My strategy:
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.