Open stormmuller opened 1 year ago
The only way that worked out for me is to reinstall the sdk after purge-removing them.
This looks like the source-build distro-specific RID is slipping into host selection - is this still relevant now that the RID graph is being simplified? EDIT: no, RID simplification only comes into play in 8.x.
Given the listed RID, where did you install the SDK from as this is likely a source built SDK specific to ubuntu? can you provide an https://aka.ms/binlog for the restore failure? CC @dotnet/source-build-internal we think this might be an issue with the source built sdk either it's not providing the matching host or not falling back to the linux- version of the host.
I have seen similar issue. I was able to solve when I installed https://ubuntu.pkgs.org/22.04/ubuntu-updates-universe-amd64/dotnet-apphost-pack-7.0_7.0.111-0ubuntu1~22.04.1_amd64.deb.html After
I have the same error message on native Ubuntu 22.04. dotnet info
.NET SDK:
Version: 7.0.111
Commit: 06c8b346e4
Runtime Environment:
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /usr/lib/dotnet/sdk/7.0.111/
Host:
Version: 7.0.11
Architecture: x64
Commit: ecb34f85ec
.NET SDKs installed:
6.0.122 [/usr/lib/dotnet/sdk]
7.0.111 [/usr/lib/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.22 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.11 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.22 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.11 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Running into this on a fresh WSL2 setup w/ dotnet-sdk-7.0
installed from the Ubuntu APT repo. Unfortunately GitHub doesn't support attaching binary files. @marcpopMSFT What's the best way to send it?
You can potentially create a devcom ticket against VS as that will support attaching files (this is the best bet as it will match our privacy compliance and have limited access). I have seen others able to attach binlogs to github issues but perhaps they've changed their rules.
Same error on arch linux.
Edit: fixed with pacman -Syu dotnet-targeting-pack
.
Salih Muhammed @.***> writes:
Same error on arch linux.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.
-- Regards, Salih
When running:
I get the following error:
That package isn't one I added and appears in
/home/myusername/a/b/c/obj/MyProject.csproj.nuget.dgspec.json
after the build. A clean build did not help.Here is my csproj:
The "Common" project is a class library that targets
netstandard2.1
Further technical details
dotnet --info