Skip to content

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Dec 6, 2024

This gives us better coverage as it tests the case when the host architecture is different from the target architecture. I.e. here we are running on a win-x64 build with a win-x64 host (SDK) and target win-x86 (target).

Unblocks using a unique OfficialBuildId that isn't available from the current msft build.

This gives us better coverage as it tests the case when the host architecture is different from the target architecture. I.e. here we are running on a win-x64 build with a win-x64 host (SDK) and target win-x86 (target).
@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Dec 6, 2024
@ViktorHofer
Copy link
Member Author

I will pause this until #45347 is merged as the aspnetcore installer infrastructure changed significantly.

@ViktorHofer
Copy link
Member Author

src\sdk\src\Installer\redist-installer\projects\DownloadPackage.csproj(0,0): error NU1102: (NETCORE_ENGINEERING_TELEMETRY=Build) Unable to find package microsoft.netcore.app.crossgen2.win-x64 with version (= 10.0.0-ci)

@jkoritzinsky @mmitche I'm hitting the same issue that Jeremy noticed in aspnetcore. Here we are targeting win-x86 (target) but building with a win-x64 SDK (host) on a win-x64 OS (build). The host version of crossgen2 tries to get restored because that's what we need here to run crossgen.

<Crossgen2Rid>$(HostOSName)-$(BuildArchitecture)</Crossgen2Rid>
<Crossgen2Rid Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(SharedFrameworkRid)</Crossgen2Rid>

Should we disable the crossgen invocation here as well temporarily when running inside the VMR? This probably works in source-build as the host and target is identical?

@jkoritzinsky
Copy link
Member

I think we can/should disable it temporarily in the VMR until I get the crossgen work done.

ViktorHofer added a commit to dotnet/arcade that referenced this pull request Dec 12, 2024
First of all, I hate this whole filtering model. It's super hacky and constantly causes issues. https://github.com/dotnet/source-build/issues/4047 tracks this.

Here we need to also empty the `ProcessFrameworkReferences` target as it still runs as it has a Before/AfterTargets hook. Keep it running is causing issues when RuntimeIdentifier is set to a custom value even though the project should be excluded.

Unblocks dotnet/sdk#45362
@ViktorHofer
Copy link
Member Author

I have no idea why the patch doesn't apply

@ViktorHofer
Copy link
Member Author

The source-build failure will go away after #45749 is merged (newer Arcade bootstrap sdk).

@ViktorHofer ViktorHofer merged commit 80f5109 into main Jan 22, 2025
35 of 38 checks passed
@ViktorHofer ViktorHofer deleted the HostVsTargetWindowsX86 branch January 22, 2025 15:09
baronfel pushed a commit to baronfel/sdk that referenced this pull request Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Infrastructure untriaged Request triage from a team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants