This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Installation path differs from install path when using PackagePathResolver in .NET 8 #13100
Labels
You can continue the conversation there. Go to discussion →
NuGet Product Used
NuGet SDK
Product Version
NuGet.Packaging: 6.8.0.131, Dotnet info: Host: Version: 8.0.0 Architecture: x64 Commit: 5535e31a71 RID: linux-x64 .NET SDKs installed: No SDKs were found. .NET runtimes installed: Microsoft.AspNetCore.App 8.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 8.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Worked before?
Works fine with .NET 7.0.14
Impact
I'm unable to use this version
Repro Steps & Context
Relevant code:
I made a workaround for this in our resolver, where I replace the package id in the path with a lowercase version, which temporarily resolved the issue when using packages to compile c# scripts in runtime.
The problem is the Razor view resolver, which is out of reach of modification and complains of the same error:
Cannot find compilation library location for package 'System.Security.Cryptography.Pkcs' at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths(ICompilationAssemblyResolver resolver, List`1 assemblies) at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths() ...
This happens when compiling a razor view at runtime which is dependant on a NuGet package.
What I find strange is that this appears to work under Windows and a WSL2 Debian installation, and in docker using mcr.microsoft.com/dotnet/aspnetcore:7.0, but consistently crashes in docker, using the mcr.microsoft.com/dotnet/aspnetcore:8.0 image. The only difference there being the project sdk versions, so one built with .NET 7 and the latter, crashing one, with .NET 8.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: