-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Microsoft.Extensions.DependencyModel dependencies for .NET Framework #35006
Comments
Tagging subscribers to this area: @eerhardt |
Doing an initial investigation, it appears the reason I believe what |
@swaroop-sridhar - is there a reason that runtime/src/installer/managed/Microsoft.NET.HostModel/Microsoft.NET.HostModel.csproj Line 19 in 1cfccd2
Why isn't this compiling against the |
cc @jkoritzinsky - version of |
The version was explicitly set because the version of System.Runtime.CompilerServices.Unsafe in the 5.0 package was broken at the time and that was blocking dotnet/runtime uptake to dotnet/sdk. |
But that was fixed with #1918, right? Do we know of a reason why |
I didn't want to risk breaking anything by moving things, so I never went to go back to fix it. |
Microsoft.Extensions.DependencyModel and Microsoft.NET.HostModel are both used on .NET Framework's MSBuild by dotnet/sdk's Microsoft.NET.Build.Tasks assembly. However, they are referencing differnet versions of System.Text.Json, which is causing file load errors on .NET Framework. Fixing this by updating Microsoft.NET.HostModel to use a 5.0 version. Fix dotnet#35006
) Microsoft.Extensions.DependencyModel and Microsoft.NET.HostModel are both used on .NET Framework's MSBuild by dotnet/sdk's Microsoft.NET.Build.Tasks assembly. However, they are referencing differnet versions of System.Text.Json, which is causing file load errors on .NET Framework. Fixing this by updating Microsoft.NET.HostModel to use a 5.0 version. Fix #35006
* Update dependencies from https://github.com/dotnet/runtime build 20200414.3 - System.CodeDom: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20214.3 - Microsoft.NET.HostModel: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20214.3 - Microsoft.Extensions.DependencyModel: 5.0.0-preview.4.20202.18 -> 5.0.0-preview.4.20214.3 - Microsoft.NETCore.DotNetHostResolver: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20214.3 - Microsoft.NETCore.App.Ref: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20214.3 - Microsoft.NETCore.App.Runtime.win-x64: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20214.3 - System.Security.Cryptography.ProtectedData: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20214.3 - System.Text.Encoding.CodePages: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20214.3 - System.Resources.Extensions: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20214.3 - Microsoft.DotNet.PlatformAbstractions: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20214.3 * Update dependencies from https://github.com/dotnet/runtime build 20200415.10 - System.CodeDom: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20215.10 - Microsoft.NET.HostModel: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20215.10 - Microsoft.Extensions.DependencyModel: 5.0.0-preview.4.20202.18 -> 5.0.0-preview.4.20215.10 - Microsoft.NETCore.DotNetHostResolver: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20215.10 - Microsoft.NETCore.App.Ref: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20215.10 - Microsoft.NETCore.App.Runtime.win-x64: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20215.10 - System.Security.Cryptography.ProtectedData: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20215.10 - System.Text.Encoding.CodePages: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20215.10 - System.Resources.Extensions: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20215.10 - Microsoft.DotNet.PlatformAbstractions: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20215.10 * Update dependencies from https://github.com/dotnet/runtime build 20200416.18 - System.CodeDom: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20216.18 - Microsoft.NET.HostModel: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20216.18 - Microsoft.Extensions.DependencyModel: 5.0.0-preview.4.20202.18 -> 5.0.0-preview.4.20216.18 - Microsoft.NETCore.DotNetHostResolver: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20216.18 - Microsoft.NETCore.App.Ref: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20216.18 - Microsoft.NETCore.App.Runtime.win-x64: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20216.18 - System.Security.Cryptography.ProtectedData: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20216.18 - System.Text.Encoding.CodePages: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20216.18 - System.Resources.Extensions: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20216.18 - Microsoft.DotNet.PlatformAbstractions: 5.0.0-preview.4.20213.12 -> 5.0.0-preview.4.20216.18 * Revert update to DependencyModel to unblock. See dotnet/runtime#35006 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
This was verified with dotnet/sdk#11329. New versions of |
@eerhardt did you intend to keep this consuming System.Text.Json via package? It looks like that's still the case (and the version has remained at Preview4) and additionally it is using an API which is now marked obsolete: IgnoreNullValues
|
#34296 bumped the versions of its dependencies as side-effect. It breaks ingestions of Microsoft.Extensions.DependencyModel into SDK: dotnet/sdk#11246 (comment)
The text was updated successfully, but these errors were encountered: