-
Notifications
You must be signed in to change notification settings - Fork 122
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
Building a .NET Core 3.1 project results in MSB4062 #524
Comments
I've also found that this happens with |
@mmisztal1980 @WeihanLi Would you mind sharing a binary log (when using 1.0.0 Source Link version)? You can produce one by calling |
Hi @tmat , sorry for my late reply, just tried but could not reproduce the exception with |
@tmat I just hit this with a solution that has all netcoreapp3.1 libraries and one netstandard2.0 library. They all reference Microsoft.SourceLink.AzureRepos.Git 1.0.0. I will send you a log shortly via email. |
It seems that the build process has multiple versions of Microsoft.Build.Tasks.Git.dll loaded for some reason (or rather it has one and is attempting to load another). I'm not sure why this would be a problem. @rainersigwald Shouldn't this problem have been fixed on .NET Core? As a workaround I'd try to
|
Actually, it seems that one project loads |
@tillig had you previously built a solution that used a different version of
could be explained by MSBuild node reuse: newly-created nodes can load the 1.0.0 version fine; older ones had a different version loaded and failed. Prior to .NET Core SDK 3.1.200 (not yet released), MSBuild could only load one version of an assembly in the lifetime of the process. By default, worker nodes live past the build invocation that created them. This is a bad combination! But should be fixed in the future by dotnet/msbuild#4916. |
@rainersigwald That would explain. Thanks! |
Hi,
After upgrading my solution to .NET Core 3.1, I've started to notice that my builds are failing due to sourcelink? Can anyone elaborate on what the issue is, and can I work around this in any way?
Core.Serialization.csproj
Build output
The text was updated successfully, but these errors were encountered: