Skip to content

Conversation

@agocke
Copy link
Member

@agocke agocke commented Dec 12, 2022

The corehost project currently tries to build the singlefilehost with the embedded DAC, which we can skip if we never built the singlefilehost in the first place.

Fixes #79144

The corehost project currently tries to build the singlefilehost with
the embedded DAC, which we can skip if we never built the
singlefilehost in the first place.
@ghost ghost added the area-Host label Dec 12, 2022
@ghost ghost assigned agocke Dec 12, 2022
@ghost
Copy link

ghost commented Dec 12, 2022

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

Issue Details

The corehost project currently tries to build the singlefilehost with the embedded DAC, which we can skip if we never built the singlefilehost in the first place.

Author: agocke
Assignees: -
Labels:

area-Host

Milestone: -

@agocke agocke requested a review from jkoritzinsky December 12, 2022 22:31
@ViktorHofer
Copy link
Member

You were getting these errors:

.packages/microsoft.dotnet.build.tasks.packaging/8.0.0-beta.22606.1/build/Packaging.targets(1261,5): error : (NETCORE_ENGINEERING_TELEMETRY=Build) Error when creating nuget lib package from /__w/1/s/artifacts/packages/Debug/specs/runtime.linux-musl-arm64.Microsoft.NETCore.DotNetAppHost.nuspec. NuGet.Packaging.Core.PackagingException: File not found: '/__w/1/s/artifacts/bin/linux-musl-arm64.Debug/corehost/singlefilehost'.
   at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude)
   at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files)
   at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 261

I moved the condition to the other target as the PrepareSingleFileHostWithEmbeddedDacPrereqs target is the one that sets SingleFileHostPath which you condition on.

Nit: The PrepareSingleFileHostWithEmbeddedDacPrereqs target isn't necessary at all. The properties could just be defined during evaluation time.

@ViktorHofer ViktorHofer merged commit 866f3eb into dotnet:main Dec 13, 2022
@agocke agocke deleted the host-no-singlefile branch December 14, 2022 21:09
@ghost ghost locked as resolved and limited conversation to collaborators Jan 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is it expected that the host.native subset fails on a fresh build (when the single file host isn't yet built)?

3 participants