-
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
"MSB4018 ResolveTargetingPackAssets task failed unexpectedly" after updating to 5.0.103 #15863
Comments
Tagging subscribers to this area: @vitek-karas, @agocke Issue DetailsDescriptionAfter updating dotnet to 5.0.3 via
ConfigurationOS: Fedora 33 x64
Regression?Initially, I believed this was a dotnet 5.0.103 issue due to it starting after updating to said version but after testing .103 to .100 with all giving the same error, I'm starting to think it might be my system which is acting up (why I'm not sure of) Other informationI checked the folder which the error refers to and found
|
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Downgrading the dotnet-sdk-5.0 package did not work for me, had some other problems then (probably because dotnet-host and other packages where not downgraded). So I resolved this by doing the following:
Now I am on 5.0.102 and all is working again. Is there a difference between the packages from the microsoft prod repo and the ones from the Fedora Updates repo? Are the fedora ones maintained by Microsoft? Edit:
dotnet --info
.NET SDK (reflecting any global.json):
Version: 5.0.103
Commit: 9effbc8ad5
Runtime Environment:
OS Name: fedora
OS Version: 33
OS Platform: Linux
RID: fedora.33-x64
Base Path: /usr/share/dotnet/sdk/5.0.103/
Host (useful for support):
Version: 5.0.3
Commit: eae88cc11b
.NET SDKs installed:
3.1.406 [/usr/share/dotnet/sdk]
5.0.103 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.12 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.12 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download |
Thanks to @Kampfmoehre solution, dotnet is now working for me again. It does seem there's a difference between repos. after a quick test in a fedora docker container, it looks like dnf is favouring the update repo over Microsofts prod repo for some packages so maybe adding a note about |
Running into the same problem, very similar system.
Edit: |
Ditto. |
Since [updates]
name=Fedora $releasever - $basearch - Updates
#baseurl=http://download.example/pub/fedora/linux/updates/$releasever/Everything/$basearch/
# ...
skip_if_unavailable=False
exclude=aspnetcore* dotnet* netstandard*
[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
# ... I also added this line to The problem is, that the packages from the Fedora and Fedora Update Repos have higher version numbers than the ones from the Microsoft Prod Repo so DNF keeps trying to update them. This is leading to having some packages installed from the MS prod repo and some from the Fedora repo which is problematic for Dotnet - especially for Omnisharp used by the C# extension of VS Code. Can you make the packages the Fedora packages having the same version as in the prod repo? Generally it is good to have them in the Fedora repo for people not needing to add another repo but for people wo want to keep having the latest packages it is also good to have the Microsoft prod repo. |
@dseefeld @crummel can what @Kampfmoehre suggested about version numbers be done? This seems like yet another manifestation of distro-native / ms feed coexistence dotnet/runtime#47500 |
Description
After updating dotnet to 5.0.3 via
dnf update
, I'm finding myself unable to build any project resulting in the error:Configuration
OS: Fedora 33 x64
Dotnet: 5.0.103 via Microsoft repo dnf
Dotnet info which lists all versions I've tried:
Regression?
Initially, I believed this was a dotnet 5.0.103 issue due to it starting after updating to said version but after testing .103 to .100 with all giving the same error, I'm starting to think it might be my system which is acting up (why I'm not sure of)
Other information
I checked the folder which the error refers to and found
/usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/5.0.0/data
to be empty, no FrameworkList.xml exists.I've also attempted reinstalling dotnet multiple times clearing dnf cache in-between reinstalls
The text was updated successfully, but these errors were encountered: