-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL dotnet clean
error MSB4018 The "ResolvePackageAssets" task failed unexpectedly.
#46881
Comments
do you have self-contained reproduction steps, or a binlog we can use to investigate the MSBuild logic? I personally would expect the use of the VS fallback folder ( |
I believe the task thinks I'm on Here you are |
Thanks for the binlog, it was enlightening! We may need to call in the NuGet team for this one. What I think has happened is that you performed some action on a Windows host that triggered a "packageFolders": {
"C:\\Users\\<user>\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "3.7.5",
"restore": {
"projectUniqueName": "R:\\<some_root>\\neo\\src\\Plugins\\RpcServer\\RpcServer.csproj",
"projectName": "Neo.Plugins.RpcServer",
"projectPath": "R:\\<some_root>\\neo\\src\\Plugins\\RpcServer\\RpcServer.csproj",
"packagesPath": "C:\\Users\\<user>\.nuget\\packages\\",
"outputPath": "R:\\<some_root>\\neo\\src\\Plugins\\RpcServer\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"R:\\<some_root>\\neo\\NuGet.Config",
"C:\\Users\\<user>\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net9.0"
],
"sources": {
"C:\\Program Files\\dotnet\\library-packs": {},
"https://api.nuget.org/v3/index.json": {},
"https://www.myget.org/F/neo/api/v3/index.json": {}
}, Then, the The SDK uses this |
So if I delete |
Describe the bug
When running
dotnet clean
on my projects solution file I get an error withMicrosoft.PackageDependencyResolution.targets
ofMSB4018
. Not sure if other projects have this problem. I am usingUbuntu 24.04.1 LTS
in WSL. This is clean install ofdotnet sdk
.To Reproduce
My project is too
complex
. However it should still be a problem. If thedotnet sdk
only works with basic projects then what's the point of supporting all the features indotnet
. So I'm not going to bother to even upload project or reference it.Exceptions (if any)
This on every project, in the solution.
Further technical details
The text was updated successfully, but these errors were encountered: