-
Notifications
You must be signed in to change notification settings - Fork 83
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
FileLoadException on System.Configuration.ConfigurationManager with SDK 6.0.400-preview #159
Comments
dotnet/msbuild#7629 updated MSBuild's reference to `System.Configuration.ConfigurationManager` to the current 6.0.0.0 version. That version is available in the SDK directory and MSBuildLocator tries to load it but fails. Figuring out why is tracked as microsoft/MSBuildLocator#159, but this works around the problem by updating to (and thus redistributing) the same version that MSBuild now references, which is compatible with older SDKs/MSBuilds as well.
dotnet/msbuild#7629 updated MSBuild's reference to `System.Configuration.ConfigurationManager` to the current 6.0.0.0 version. That version is available in the SDK directory and MSBuildLocator tries to load it but fails. Figuring out why is tracked as microsoft/MSBuildLocator#159, but this works around the problem by updating to (and thus redistributing) the same version that MSBuild now references, which is compatible with older SDKs/MSBuilds as well.
The same basic problem is the root cause of dotnet/sdk#26065, but there it's NuGet references of lower versions "next to the app" that are causing load failures of higher versions from the SDK. |
dotnet/msbuild#7629 updated MSBuild's reference to `System.Configuration.ConfigurationManager` to the current 6.0.0.0 version. That version is available in the SDK directory and MSBuildLocator tries to load it but fails. Figuring out why is tracked as microsoft/MSBuildLocator#159, but this works around the problem by updating to (and thus redistributing) the same version that MSBuild now references, which is compatible with older SDKs/MSBuilds as well. Co-authored-by: Brandon H <brandonh-msft@users.noreply.github.com>
If I follow correctly, the only real fix for this one is for the Microsoft.Build NuGet package to release a 17.3 version and having the project reference that newer version. Other option is ugly horrible hack of "unload/reload DLLs from the MSBuild/SDK directory if they are newer than the build dep DLLs" which would not recommend :P. I mentioned /asked for status on a updated Nuget for 17.3 on the related issue. |
The issue seems to be already addressed. |
Reported as dotnet/upgrade-assistant#1151 and related to dotnet/msbuild#7629.
The text was updated successfully, but these errors were encountered: