You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe this is just missing PrivateAssets="All"? (I usually see that attribute on this package ref, and it certainly seems like it would have the desired effect here.)
I don't have a clear link from the .NET Framework targeting pack nupkg to this file being included, I'm just guessing based on the .NET Framework pack having a lot of assemblies like this.
This seems like a likely cause for this kind of error in source-build:
PrepareForReadyToRunCompilation.cs(362,117): error CS0433: The type 'Architecture' exists in both 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' [/bst/bootstrap_dir/final-sdk/src/sdk.afdde814dc8dedb325e63b39cf72249b43918a23/src/Tasks/Microsoft.NET.Build.Tasks/Microsoft.NET.Build.Tasks.csproj]
Because in the Csc task inputs, we see it's finding this copy of System.Runtime.InteropServices.RuntimeInformation, which isn't there in the nuget gallery nupkg:
Activity
crummel commentedon Oct 27, 2022
[Scrub] Pre-arcade SBRP is no longer used and this issue does not repro in post-arcade SBRP.