Microsoft.NET.Sdk.Web\Sdk\Sdk.props fires buildcheck - condition unintentionally is always false
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
### Describe the bug
Potential bug in build logic always including one set of props file.
### To Reproduce
```pwsh
dotnet new blazor
dotnet build /check
...
C:\Program Files\dotnet\sdk\10.0.100\Sdks\Microsoft.NET.Sdk.Web\Sdk\Sdk.props(18,50): warning BC0202: https://aka.ms/buildcheck/codes#BC0202 - Property: 'TargetFramework' first declared/initialized at C:\Users\janprovaznik\p\p.csproj (4,5) used before it was initialized.
```
Expected: no build issues in template project
### Further technical details
https://github.com/dotnet/sdk/blob/1b7a79f9ed0432fd17b48a64a002f1d8f947445c/src/WebSdk/Web/Sdk/Sdk.props#L15 uses the TargetFramework property before it's available
CLI net 9-10
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.