Repository navigation
Re-Bootstrap to .NET 11.0.100-preview.4.26210.111 - #6001
Conversation
@MichalStrehovsky @agocke can you please help with these errors? It would be great if the message could include actionable steps how to resolve the failure. |
|
cc @jkoritzinsky @steveisok - whoever is able to help here :) |
Copilot said we need to set |
|
Some context for @jkoritzinsky and @steveisok - I added this warning in dotnet/sdk#52755 when I basically copied the single-file-bundler file selection logic into MSBuild logic. We needed this duplication so that we could correctly calculate inputs and outputs for bundle generation, because there was an incrementality/correctness bug where repeated publish invocations would over-clean native dependencies because of bundle generations' untracked incrementality - we needed to be able to know which files bundle generation would not include in the bundle so that we could ensure those were correctly copied to the publish directory. When I did this, I added a warning that would alert if the set of files that the MSBuild logic computed for exclusion wasn't complete - meaning if the bundler logic (that we have to run anyway when we actually execute bundle generation) ever reported files that we passed it an inputs that it wanted to exclude from the bundle. This would indicate a gap in the incrementality that could result in the subsequent-publish-deletes-files bug popping up again. So the main thing I'm interested in is understanding
Longer-term I raised dotnet/runtime#124051 to track the bundler APIs for input/output detection being made public so that I can use them directly in the SDK instead of replicating them in MSBuild logic. |
Does the warning we were seeing mean that there's a bug in the default handling of native libraries in the new SDK logic then? I.e. when one doesn't set IncludeNativeLibrariesForSelfExtract and doesn't set ExcludeFromSingleFile either, one component thinks we will include and the other thing thinks we will exclude? |
|
As to whether we want to include or exclude for the ilc project - it doesn't really matter, this is a non-shipping version of ilc. For repo build perf it's slightly preferable to not include them in the single file bundle (so I'm good with this change and it matches crossgen2 project with a similar purpose, the lines were likely just missed when the single file configuration of the project was added). |
Maybe specifically for native binaries? The bundler will inspect the file to determine if it is a native binary for the target platform, which I imagine the msbuild logic does not. |
|
The bundler's decision for if it should include a native asset is tied to
The 'should bundle native deps' option is driven by the So I think the MSBuild logic is aligned here, and the real gap is just that these items should have been marked as |
Re-Bootstrap .NET to 11.0.0-preview.4.26210.111 / 11.0.100-preview.4.26210.111.