sdk: Build fail after update to latest RC2/RC Refresh
As requested by @morrisjoe
I previously created this issue: https://github.com/dotnet/coreclr/issues/8602
Basically build works if you use dotnet cli only. When using Visual Studio 2017 (besides it crash a lot) it fail to build and multitarget is not working…
To reproduce:
dotnet new-> Any console app build fail with the error in the previously mentioned issue while building from VS2017- You can check our “updated/simplified” csproj by trying to build https://github.com/galvesribeiro/orleans/blob/codegen-core/vNext/src/ClientGenerator/ClientGenerator.csproj
The error is basically:
1>------ Build started: Project: ConsoleApp2, Configuration: Debug Any CPU ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.targets(127,7): error MSB4131: The "FilesWritten" parameter is not supported by the "GenerateRuntimeConfigurationFiles" task. Verify the parameter exists on the task, and it is a gettable public instance property.
1>Done building project "ConsoleApp2.csproj" -- FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 24 (16 by maintainers)
+1 on this issue. I’m also facing this issue.
This happens when there are MSBuild processes running that have loaded the tasks from the earlier version of the .NET SDK. If you kill all MSBuild.exe processes that are running, this should fix the issue.
I had this issue, basically I had other projects with different MSBuild Tools versions. Make sure all of your projects in your solution have the new Sdk=“” syntax for setting the tools and taht they are the same version and you should be good.
The new project format doesn’t work at all with Visual Studio preview for Mac. Now both development environments are out of the game.