Ubuntu 24.01 WSL build Package Microsoft.NET.ILLink.Tasks, version 8.0.10 not found
When building C# .NET 8 library extension on Ubuntu 24.01 WSL I get the following error even though the build finishes:
Severity Code Description Project File Line Suppression State Details
Error (active) NETSDK1064 Package Microsoft.NET.ILLink.Tasks, version 8.0.10 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions. ArmaDragonflyClient C:\Program Files\dotnet\sdk\8.0.403\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets 266
16 Replies
The main question is how can this be fixed, and/or will it affect the extension even though it finishes building the extension successfully for linux
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
WSL:
Windows:
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
When I build the extension on WSL for linux that's when the error appears
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
yes when I build the C# project on WSL
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
This is the command I use in WSL
webmin@office-pc:/mnt/g/source/ArmaDragonflyClient/extension$ dotnet publish -f net8.0 -c Release -r linux-x64 -p:PublishAot=true -p:NativeLib=Shared -p:SelfContained=true
This is the command I use in terminal for windows: PS G:\source\ArmaDragonflyClient\extension> dotnet publish -f net8.0 -c Release -r win-x64 -p:PublishAot=true -p:NativeLib=Shared -p:SelfContained=true
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
it builds a .so file for linux when using WSL, and on windows it does build the .dll file
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
yep
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
ok I'll give that a try when I get back from work today and post the results
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View