dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.68k stars 1.06k forks source link

Reformatting .csproj with extra spaces causes an error #18651

Open pstricks-fans opened 3 years ago

pstricks-fans commented 3 years ago

How to reproduce:

C:\Program Files\dotnet\sdk\5.0.201\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(92,5): error NETSDK1013: The TargetFramework value 'net5.0' 
was not recognized. It may be misspelled. If not, then the TargetFrameworkIdentifier and/or TargetFrameworkVersion properties must be specified explicitly.

Reformatting is sometimes needed to increase readability. Unfortunately, the current state of dotnet build system does not like spaces. Please kindly let users reformat the .csproj with extra spaces.

Thank you!

dotnet-issue-labeler[bot] commented 3 years ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

timheuer commented 2 years ago

Dupe of #2281?

pstricks-fans commented 2 years ago

@timheuer : Yes. The same issue. Thank you!