Skip to content

Conversation

ellahathaway
Copy link
Member

@ellahathaway ellahathaway commented Aug 28, 2025

Resolves #15731

  • Separates out .NET used for tooling and .NET used for MicroBuild
  • Adds logic to require .NET for MicroBuild when not dry run signing
  • Finds .NET for MicroBuild by searching the path for a dotnet executable in a MicroBuild folder, defaults to the DotNetTool executable if not found or on Windows.
  • Updates the install-microbuild.yml file to install MicroBuild sources into a temp directory and the .NET version required by MicroBuild into the same temp directory

Arcade-validation test build

</PropertyGroup>

<ItemGroup Condition="'$(UseDotNetToolPathForMicroBuild)' == 'false'">
<_ItemInPath Include="$([System.Text.RegularExpressions.Regex]::Split('$(PATH)', ':'))" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use System.IO.Path.PathSeparator in place of :?

<PropertyGroup Condition="$(_DotNetCoreRequired)">
<_DotNetCorePath>$(DotNetTool)</_DotNetCorePath>
<_DotNetPathMicroBuildCandidate
Include="@(_ItemInPath->'%(Identity)/dotnet')"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: If this code is used on Windows (e.g. UseDotNetToolPathForMicroBuild == false) then this would break...maybe replace dotnet with a property DotNetExe?

<_DotNetPathMicroBuild>%(_DotNetPathMicroBuildCandidate.Identity)</_DotNetPathMicroBuild>
</PropertyGroup>

<Warning
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because most repos turn on warnings as errors. I would make this a high importance log message instead.

@akoeplinger
Copy link
Member

I just ran into the microbuild-deleted-by-checkout issue again in a repo, would be nice to have this finally fixed :)

@ellahathaway
Copy link
Member Author

I just ran into the microbuild-deleted-by-checkout issue again in a repo, would be nice to have this finally fixed :)

Acknowledged :) This fell off of my radar with some of the other work I've been focusing on. I will have it completed by end of the week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Signing] Avoid installing MicroBuild plugin to sources directory
3 participants