8

Project must provide a value for configuration. Msbuild failed wih this error and its working fine if doing build via vs 2017. But breaking when using Msbuild cmdline

Shubham Arya
  • 135
  • 2
  • 6
  • Share us detail steps to reproduce your issue. – Edward Mar 28 '19 at 06:10
  • I am not able to upload screenshot over there, but i was able to fix this. Actually dotnet core projects require a separate configuration other than release /debug or cpu platform. That is /p: targetffamework=netcoreapp(version of. Netcore your app is using). – Shubham Arya Mar 29 '19 at 07:12
  • 3
    Can someone please provide an answer explaining how to fix this please, I've ended up here trying to understand the same problem, and your one and only comment doesn't help very much. – shawty May 20 '19 at 14:47
  • @shawly try removing unused nuget package references – fingers10 Oct 05 '19 at 18:43
  • @shubhamarya can you please accept my answer ? ty – rchrd Nov 04 '20 at 13:36

1 Answers1

17

Try deleting Microsoft.AspNetCore.Razor.Design in your .csproj file. That worked perfectly for me. I had the same issue, when I migrated my project from .NET Core 2.2 to .NET Core 3.0.

rchrd
  • 379
  • 2
  • 6
  • 17