Skip to content

Commit

Permalink
Add extra restore sources for core-setup
Browse files Browse the repository at this point in the history
  • Loading branch information
crummel committed Sep 20, 2019
1 parent 50cdc24 commit b74b948
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions repos/core-setup.proj
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@

<NuGetConfigFile>$(ProjectDirectory)/NuGet.config</NuGetConfigFile>
<DependencyVersionInputRepoApiImplemented>true</DependencyVersionInputRepoApiImplemented>

<EnvironmentRestoreSources>$(SourceBuiltPackagesPath)</EnvironmentRestoreSources>
<EnvironmentRestoreSources Condition="'$(OfflineBuild)' == 'true'">$(EnvironmentRestoreSources)%3B$(ReferencePackagesDir)%3B$(PrebuiltPackagesPath)</EnvironmentRestoreSources>
<EnvironmentRestoreSources Condition="'$(OfflineBuild)' != 'true'">$(EnvironmentRestoreSources)%3Bhttps://api.nuget.org/v3/index.json</EnvironmentRestoreSources>
<EnvironmentRestoreSources Condition="'$(OfflineBuild)' != 'true'">$(EnvironmentRestoreSources)%3Bhttps://dotnetfeed.blob.core.windows.net/dotnet-core/index.json</EnvironmentRestoreSources>
</PropertyGroup>

<ItemGroup>
Expand All @@ -49,6 +54,10 @@
<UseSourceBuiltSdkOverride Include="@(ArcadeSdkOverride)" />
</ItemGroup>

<ItemGroup>
<EnvironmentVariables Include="RestoreSources=$(EnvironmentRestoreSources)" />
</ItemGroup>

<Target Name="SetOutputList" AfterTargets="Package" BeforeTargets="GatherBuiltPackages">
<ItemGroup>
<PackagesOutputList Include="$(ShippingPackagesOutput)" />
Expand Down

0 comments on commit b74b948

Please sign in to comment.