Skip to content

Commit

Permalink
Remove unused SetNuGetPackagesEnvironment target (#18119)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorHofer authored Jan 5, 2024
1 parent eca1ecc commit b9a298b
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/SourceBuild/content/repo-projects/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project InitialTargets="SetNuGetPackagesEnvironment">
<Project>

<ItemGroup>
<EnvironmentVariables Include="LatestCommit=$(GitCommitHash)" />
Expand Down Expand Up @@ -512,18 +512,6 @@
IgnoreStandardErrorWarningFormat="true" />
</Target>

<Target Name="SetNuGetPackagesEnvironment" Condition="'$(ArchiveDownloadedPackages)' == 'true'">
<PropertyGroup>
<LocalNuGetPackagesRootForRepository>$(LocalNuGetPackagesRoot)$(RepositoryName)/</LocalNuGetPackagesRootForRepository>
</PropertyGroup>

<MakeDir Directories="$(LocalNuGetPackagesRootForRepository)" />

<ItemGroup>
<EnvironmentVariables Include="NUGET_PACKAGES=$(LocalNuGetPackagesRootForRepository)" />
</ItemGroup>
</Target>

<Target Name="SetSourceBuiltSdkOverrides"
BeforeTargets="Build"
Condition="'@(UseSourceBuiltSdkOverride)' != ''">
Expand Down

0 comments on commit b9a298b

Please sign in to comment.