Skip to content

Commit

Permalink
Explicitly set the restore config file when restoring the internal to…
Browse files Browse the repository at this point in the history
…ols project (#15447)
  • Loading branch information
mmitche authored Jan 28, 2025
1 parent a0a5099 commit 73f907a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Microsoft.DotNet.Arcade.Sdk/tools/Tools.proj
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,13 @@
<!-- Set as DependsOnTargets when internal tools (e.g. IBC data, optprof) is required -->
<Target Name="RestoreInternalTooling"
AfterTargets="$(RestoreInternalToolingAfterTargets)">
<MSBuild Projects="$(RepoRoot)eng/common/internal/Tools.csproj"
<PropertyGroup>
<InternalToolsRestoreProject>$(RepoRoot)eng/common/internal/Tools.csproj</InternalToolsRestoreProject>
<InternalToolsRestoreConfig>$(RepoRoot)eng/common/internal/NuGet.config</InternalToolsRestoreConfig>
</PropertyGroup>
<MSBuild Projects="$(InternalToolsRestoreProject)"
Targets="Restore"
Properties="@(_RestoreToolsProps);_NETCORE_ENGINEERING_TELEMETRY=Restore"
Properties="@(_RestoreToolsProps);RestoreConfigFile=$(InternalToolsRestoreConfig);_NETCORE_ENGINEERING_TELEMETRY=Restore"
Condition="'$(Restore)' == 'true'"/>
</Target>

Expand Down

0 comments on commit 73f907a

Please sign in to comment.