-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
AssemblyLoadContext issue with NuGet in Arcade Sleet publishing #5073
Comments
@chcosta used an instrumented MSBuild which helped isolate the problem: the
The loader currently requires strict version matches So when we try to load NuGet-as-referenced-from-Sleet, it fails because it can only find NuGet This wasn't a problem pre-ALC isolation, because we always loaded NuGet from the sdk root folder next to MSBuild. Now that's just a fallback, and the assemblies in the package match by simple name. What I don't yet understand is what happens after we try this and it fails. Why don't we then fall back to next-to-MSBuild? |
I strongly suspect that this will be fixed by #6558. @chcosta do you remember this issue? Could we try backing dotnet/arcade@841c83d out in an experimental way? |
I very much remember this issue and am excited to get this resolved. We can get a private build of Arcade published with that change removed. I should be able to help out tomorrow. |
@chcosta This is |
I'm not sure I'll have time to look at this, this week. @dnceng, may be able to help out. @dotnet/dnceng , this requires undoing the hack in the feed package, and validating that doesn't break the sdk /runtime repos before committing. |
@chcosta could you please point out an issue or PR related to that hack? I would like to help but I don't have a context |
The hack is mentioned above as dotnet/arcade@841c83d. I'm on my phone at the moment, but I think that's the right one |
@rainersigwald , What version of the sdk contains the fix? |
This appears to still be failing with sdk "6.0.100-rc.1.21379.2" and MSBuild "17.0.0-preview-21416-02" |
Hmm, that MSBuild version should have #6558. Guess that didn't fix it then (though I was pretty confident it would and don't understand how it didn't . . .). I marked this to pull it into our current list of things to investigate. |
I couldn't actually get a repro using a current Arcade. I think the code path for publishing has changed significantly and we no longer trip this. However, using the old Arcade with the new SDK / MSBuild, caused the same error we previously saw. I can try to get this under a debugger again if needed. |
Is the old Arcade still in wide usage by teams and are those teams using the new SDK/MSBuild? That seems like a fairly unlikely combo. Seems like we should just close this as we unblocked the one customer we got a report from. Any concerns? |
With the end-of-life of 2.1 (except perhaps certain custom builds) I think our actual usage of sleet is effectively over, so I'd be fine closing this as long as @chcosta agrees. My only concern, and I think we can address this if it happens, is that at some point we may not have old-enough desktop msbuild on agents to not hit the issue and this could result in some fixups to the (dead) builds. |
I'm completely ok with closing this. We have a workaround in Arcade, and as far as I can tell, this is not actually affecting Arcade anymore. |
After #4916, something is causing a break dotnet/arcade#1965.
The text was updated successfully, but these errors were encountered: