Skip to content
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

unable to build brand new project after upgrading to 5.0.3 #15785

Closed
ghost opened this issue Feb 9, 2021 · 2 comments
Closed

unable to build brand new project after upgrading to 5.0.3 #15785

ghost opened this issue Feb 9, 2021 · 2 comments
Labels
untriaged Request triage from a team member

Comments

@ghost
Copy link

ghost commented Feb 9, 2021

$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:
  5.0.103 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 5.0.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
-----------
Build Errors
-----------

/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018: The "ResolveTargetingPackAssets" task failed unexpectedly. [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018: System.IO.FileNotFoundException: Could not find file '/usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/5.0.0/data/FrameworkList.xml'. [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018: File name: '/usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/5.0.0/data/FrameworkList.xml' [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter) [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options) [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy) [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at System.Xml.XmlTextReaderImpl.FinishInitUriString() [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at System.Xml.XmlTextReaderImpl..ctor(String uriStr, XmlReaderSettings settings, XmlParserContext context, XmlResolver uriResolver) [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext) [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings) [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options) [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at Microsoft.NET.Build.Tasks.ResolveTargetingPackAssets.AddReferencesFromFrameworkList(String frameworkListPath, String targetingPackRoot, String targetingPackDllFolder, ITaskItem targetingPack, List`1 referenceItems) [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at Microsoft.NET.Build.Tasks.ResolveTargetingPackAssets.ExecuteCore() [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at Microsoft.NET.Build.Tasks.TaskBase.Execute() [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/home/*****/Documents/Paths/testCS/testCS.csproj]
/usr/share/dotnet/sdk/5.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(324,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/home/*****/Documents/Paths/testCS/testCS.csproj]
-----
System.IO.FileNotFoundException: Could not find file '/usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/5.0.0/data/FrameworkList.xml'.
Found files on different path:
/usr/lib64/dotnet/packs/Microsoft.NETCore.App.Ref/5.0.0/data/FrameworkList.xml
-----
================================================================================
 Package                 Arch   Version      Repository                    Size
================================================================================
Removing:
 dotnet-sdk-5.0          x86_64 5.0.103-1    @packages-microsoft-com-prod 207 M
Removing unused dependencies:
 aspnetcore-runtime-5.0  x86_64 5.0.3-1      @packages-microsoft-com-prod  18 M
 aspnetcore-targeting-pack-5.0
                         x86_64 5.0.2-2.fc33 @updates                      11 M
 compat-openssl10        x86_64 1:1.0.2o-11.fc33
                                             @fedora                      2.9 M
 dotnet-apphost-pack-5.0 x86_64 5.0.3-1      @packages-microsoft-com-prod  12 M
 dotnet-hostfxr-5.0      x86_64 5.0.3-1      @packages-microsoft-com-prod 396 k
 dotnet-runtime-5.0      x86_64 5.0.3-1      @packages-microsoft-com-prod  72 M
 dotnet-runtime-deps-5.0 x86_64 5.0.3-1      @packages-microsoft-com-prod   0  
 dotnet-targeting-pack-5.0
                         x86_64 5.0.2-2.fc33 @updates                      28 M
 netstandard-targeting-pack-2.1
                         x86_64 5.0.102-2.fc33
                                             @updates                      18 M

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label Feb 9, 2021
@dotnet-issue-labeler
Copy link

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.

@ghost
Copy link
Author

ghost commented Feb 10, 2021

@dagood solved similar issue #12075

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

0 participants