Open NoahBPeterson opened 6 days ago
Thank you for filing this issue. In order for us to investigate this issue, please provide a minimal repro project that illustrates the problem without unnecessary code. Please share with us in a public GitHub repo because we cannot open ZIP attachments, and don't include any confidential content.
Is there an existing issue for this?
Describe the bug
MSB4018 The "ResolveCompressedAssets" task failed unexpectedly.
I have both
9.0.100
and8.0.404
installed. After Azure failed to build my .NET 8 project with the .NET 9 SDK, I decided to create aglobal.json
file to pin8.0.404
and use that to build, but I discovered that it fails to build in Visual Studio. To double-check, I randotnet build
(dotnet --info
output8.0.404
), and it built successfully. Then I renamedglobal.json
toglobal2.json
, randotnet build
again (dotnet --info
output9.0.100
), and it built successfully. Then I tried building again in Visual Studio (withoutglobal.json
pinning to8.0.404
), and it built successfully.With Visual Studio 17.12,
9.0.100
and8.0.404
SDKs installed andglobal.json
pinning to8.0.404
, my Blazor project refuses to build. Renamingglobal.json
makes it build in Visual Studio 17.12 but not in Azure. Building on the command line with8.0.404
works fine. Building on the command line with9.0.100
works fine.Expected Behavior
I expect the .NET 9 SDK to not have so many regressions, and to compile my .NET 8 project successfully, as the .NET 8 SDK does.
Steps To Reproduce
9.0.100
and8.0.404
SDKsglobal.json
for a Blazor project and use the8.0.404
SDK.Exceptions (if any)
MSB4018 The "ResolveCompressedAssets" task failed unexpectedly. System.ArgumentException: Illegal characters in path. at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath) at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath) at Microsoft.Extensions.FileSystemGlobbing.InMemoryDirectoryInfo..ctor(String rootDir, IEnumerabled__26.MoveNext() Dashboard.Application.Host C:\Program Files\dotnet\sdk\8.0.404\Sdks\Microsoft.NET.Sdk.StaticWebAssets\targets\Microsoft.NET.Sdk.StaticWebAssets.Compression.targets 68
1 files, Boolean normalized) at Microsoft.Extensions.FileSystemGlobbing.MatcherExtensions.Match(Matcher matcher, String rootDir, IEnumerable
1 files) at Microsoft.AspNetCore.StaticWebAssets.Tasks.ResolveCompressedAssets.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder..NET Version
9.0.100
Anything else?
dotnet --info
global.json