You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Re)build fails during fingerprinting with the new .Net 9 SDK.
Computing fingerprint and integrity for asset 'wwwroot\tlab.css'
C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk.StaticWebAssets\targets\Microsoft.NET.Sdk.StaticWebAssets.targets(662,5): error : System.InvalidOperationException: No file exists for the asset at either location 'wwwroot\tlab.css' or 'wwwroot\tlab.css'.
C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk.StaticWebAssets\targets\Microsoft.NET.Sdk.StaticWebAssets.targets(662,5): error : at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.ComputeFingerprintAndIntegrity(String identity, String originalItemSpec)
C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk.StaticWebAssets\targets\Microsoft.NET.Sdk.StaticWebAssets.targets(662,5): error : at Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.Execute()
Done executing task "DefineStaticWebAssets" -- FAILED.
This is the same issue as reported for TypeScript here: dotnet/aspnetcore#58948
The same solution/workaround should work for WebCompiler too, I suspect. Note that a second issue was opened specifically for the TS team here: microsoft/TypeScript#60538 and should probably be our guideline for WebCompiler too.
This problem has actually existed for a long time but would previously fail silently, i.e. the produced .css would sometimes be missing from the Publish output, but the new .Net 9 SDK Fingerprinting feature fails completely with errors.
Steps to recreate
Install VS 17.12.0 (or standalone .Net 9 SDK)
Rebuild a project with .scss -> .css compilation using the WebCompiler 2022 Plus nuget.
Note that Clean+Build generally succeeds, but Rebuild fails.
Please see the linked Github issue for more info.
Current behavior
Rebuild fails because WebCompiler generates its output too late in the build chain.
Expected behavior
Rebuild should succeeed. CSS output should be generated early enough in the build chain for fingerprinting and reliable publishing.
The text was updated successfully, but these errors were encountered:
Installed product versions
Description
(Re)build fails during fingerprinting with the new .Net 9 SDK.
This is the same issue as reported for TypeScript here: dotnet/aspnetcore#58948
The same solution/workaround should work for WebCompiler too, I suspect. Note that a second issue was opened specifically for the TS team here: microsoft/TypeScript#60538 and should probably be our guideline for WebCompiler too.
This problem has actually existed for a long time but would previously fail silently, i.e. the produced .css would sometimes be missing from the Publish output, but the new .Net 9 SDK Fingerprinting feature fails completely with errors.
Steps to recreate
Install VS 17.12.0 (or standalone .Net 9 SDK)
Rebuild a project with .scss -> .css compilation using the WebCompiler 2022 Plus nuget.
Note that Clean+Build generally succeeds, but Rebuild fails.
Please see the linked Github issue for more info.
Current behavior
Rebuild fails because WebCompiler generates its output too late in the build chain.
Expected behavior
Rebuild should succeeed. CSS output should be generated early enough in the build chain for fingerprinting and reliable publishing.
The text was updated successfully, but these errors were encountered: