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
Asked
Active
Viewed 4,164 times
8
-
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
-
3Can 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 Answers
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
-
1big thanks, deleting line with "Microsoft.AspNetCore.Razor.Design" from project file fixed my problem. – zeroG Oct 09 '22 at 20:23
-
1