Microsoft.AspNetCore.ClientAssets
has a check for .NET6 so it fails on .NET7
#45849
Closed
1 task done
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-wasm
This issue is related to and / or impacts Blazor WebAssembly
feature-static-web-assets
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
Is there an existing issue for this?
Describe the bug
Line 50 and 61 of the
targets
file:https://github.com/aspnet/AspLabs/blob/86eedec8a2f26ce0a32eb5f9fe94492a211c4a33/src/ClientAssets/Microsoft.AspNetCore.ClientAssets/build/netstandard2.0/Microsoft.AspNetCore.ClientAssets.targets#L50
https://github.com/aspnet/AspLabs/blob/86eedec8a2f26ce0a32eb5f9fe94492a211c4a33/src/ClientAssets/Microsoft.AspNetCore.ClientAssets/build/netstandard2.0/Microsoft.AspNetCore.ClientAssets.targets#L61
It checks for older .NET core by just comparing it with the string
.net6.0
so it treats.net7.0
with the old behaviour, and it breaks.Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
No response
Anything else?
I know this package is being reworked as part of #38445 however it would be nice if in the meantime this package could continue to work so we can update to .NET 7.
I can contribute a pull request if it can be merged. Thanks
The text was updated successfully, but these errors were encountered: