Use dependencies when available
This commit is contained in:
parent
6c7d099548
commit
c85a0ff7ef
|
|
@ -2,12 +2,25 @@
|
||||||
<Import Project="common.props" />
|
<Import Project="common.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<DependencyBuildDirectory>$(RepositoryRoot).deps\build\</DependencyBuildDirectory>
|
||||||
|
<PrepareDependsOn>
|
||||||
|
$(PrepareDependsOn);
|
||||||
|
UpdateNuGetConfig
|
||||||
|
</PrepareDependsOn>
|
||||||
<CompileDependsOn Condition="'$(BUILD_PACKAGE_CACHE)' == 'true'">
|
<CompileDependsOn Condition="'$(BUILD_PACKAGE_CACHE)' == 'true'">
|
||||||
$(CompileDependsOn);
|
$(CompileDependsOn);
|
||||||
BuildPackageCache
|
BuildPackageCache
|
||||||
</CompileDependsOn>
|
</CompileDependsOn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<Target Name="UpdateNuGetConfig">
|
||||||
|
<UpdatePackageSource
|
||||||
|
NuGetConfigPath="$(RepositoryRoot)NuGet.config"
|
||||||
|
SourceName="Dependencies"
|
||||||
|
SourceUri="$(DependencyBuildDirectory)"
|
||||||
|
Condition="Exists('$(DependencyBuildDirectory)')" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
<Target Name="BuildPackageCache">
|
<Target Name="BuildPackageCache">
|
||||||
<GetOSPlatform>
|
<GetOSPlatform>
|
||||||
<!-- Returns {Linux, macOS, Windows} -->
|
<!-- Returns {Linux, macOS, Windows} -->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue