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