0

I'm trying to update one of my existing C# project to the new Microsoft.NET.Sdk project structure. The solution consists of net45, netstandard1.0 and uap10.0 projects.

  • When I run "dotnet build ValueConverters.sln" from the NuGet Package Manager Console, I receive following error: error MSB4057: The target "_GetRestoreSettingsPerFramework" does not exist in the project.

  • When I build the same ValueConverters.sln solution in Visual Studio using MSBUILD, everything works fine.

The solution can be found here: https://github.com/thomasgalliker/ValueConverters.NET/tree/develop

What am I doing wrong? When I remove uap10.0 from the TargetFrameworks, it works like a charm.

thomasgalliker
  • 1,279
  • 13
  • 19
  • I could build successfully in my side. only different is `4.8.1` in ValueConverter.uwp file. – Nico Zhu Oct 30 '18 at 05:28
  • Did you run "dotnet build ValueConverters.sln" from the NuGet Package Manager Console? That's how I run into the error. – thomasgalliker Oct 30 '18 at 07:11
  • Please edit your question and add the above comment. – Nico Zhu Oct 30 '18 at 07:25
  • Why do you want to use dotnet build, I could build the solution with msbuild and vsbuild success, I could not sure dotnet support all your project. – Nico Zhu Oct 30 '18 at 07:46
  • Adding the NuGetToolVersion to the uwp10.0 PropertyGroup did not work. I spent so much time already to support building an UWP library using dotnet build and still it shows the MSB4057: The target "_GetRestoreSettingsPerFramework" does not exist in the project. – thomasgalliker Nov 04 '18 at 16:45

0 Answers0