-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-css-isolationThis issue is related to CSS Isolation featureThis issue is related to CSS Isolation featurefeature-razor-sdk
Milestone
Description
Bug Description:
After upgrading the .NET 6.0 preview 1 SDK, it throws build error when running dotnet pack command line. The problem is occur when the project file have multiple target frameworks <TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks>
. If I change it to single <TargetFramewok>
then it works fine.
Exceptions (if any)
C:\Program Files\dotnet\sdk\6.0.100-preview.1.21103.13\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Microsoft.NET.Sdk.Razor.ScopedCss.targets(134,3): error MSB4044: The "ComputeCssScope" task was not given a value for the required parameter "TargetName". [D:\Feb\NET6\RazorClassLibrary2\RazorClassLibrary2.csproj]
To Reproduce
- Download the Razor sample.
- Goto command prompt and then run the command
dotnet pack -c Release
Sample:
Further technical details
Blazor RazorClass Library 6.0 sample
Latest SDK .NET 6.0 Preview 1
VS 2019 preview
skclusive, kmuthukumar23, ajruckman, arnaudleclerc, jsakamoto and 2 more
Metadata
Metadata
Assignees
Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-css-isolationThis issue is related to CSS Isolation featureThis issue is related to CSS Isolation featurefeature-razor-sdk