[release/7.0.1xx] Update SBRP and address issue in DependencyPackageProjects infra (#14577)
* Update SBRP and address issue in DependencyPackageProjects infra * Update to official new version of SBRP * Fix typo Co-authored-by: MichaelSimons <msimons@microsoft.com>
This commit is contained in:
parent
d861ede5bb
commit
e607eccbb4
1 changed files with 13 additions and 1 deletions
|
@ -2,7 +2,9 @@
|
|||
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
|
||||
|
||||
<PropertyGroup>
|
||||
<BuildCommand>$(StandardSourceBuildCommand) $(StandardSourceBuildArgs)</BuildCommand>
|
||||
<LocalNuGetPackageCacheDirectory>$(BaseIntermediatePath)source-build-reference-package-cache</LocalNuGetPackageCacheDirectory>
|
||||
|
||||
<BuildCommand>$(StandardSourceBuildCommand) $(StandardSourceBuildArgs) /p:LocalNuGetPackageCacheDirectory=$(LocalNuGetPackageCacheDirectory)</BuildCommand>
|
||||
|
||||
<NuGetConfigFile>$(ProjectDirectory)NuGet.config</NuGetConfigFile>
|
||||
<GlobalJsonFile>$(ProjectDirectory)global.json</GlobalJsonFile>
|
||||
|
@ -16,5 +18,15 @@
|
|||
<UseSourceBuiltSdkOverride Include="@(ArcadeBootstrapSdkOverride)" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="AddLocalNuGetPackageCacheDirectory" BeforeTargets="Build">
|
||||
<MakeDir Condition="'$(LocalNuGetPackageCacheDirectory)' != ''"
|
||||
Directories="$(LocalNuGetPackageCacheDirectory)" />
|
||||
|
||||
<AddSourceToNuGetConfig
|
||||
NuGetConfigFile="$(NuGetConfigFile)"
|
||||
SourceName="source-build-reference-package-cache"
|
||||
SourcePath="$(LocalNuGetPackageCacheDirectory)" />
|
||||
</Target>
|
||||
|
||||
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
|
||||
</Project>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue