|
10 | 10 | <!-- SourceLink variable--> |
11 | 11 | <DisableSourceLink>false</DisableSourceLink> |
12 | 12 |
|
13 | | - <RestoreConfigFile>src\NuGet.config</RestoreConfigFile> |
| 13 | + <!-- Use the NuGet.config with a local source for Package reference builds. --> |
| 14 | + <NuGetConfigFile>$(RepoRoot)/NuGet.config</NuGetConfigFile> |
| 15 | + <NuGetConfigFile Condition="'$(ReferenceType)' == 'Package'">$(NuGetConfigFile).local</NuGetConfigFile> |
| 16 | + |
14 | 17 | <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration> |
15 | 18 | <Platform Condition="'$(Platform)' == ''">AnyCPU</Platform> |
16 | 19 | <!-- Flag to control whether or not to build Microsoft.DotNet.GenAPI project in tools --> |
|
29 | 32 | <TargetNetFxVersion Condition="$(TargetGroup) == 'netfx' AND $(TargetNetFxVersion) == ''">$(TF)</TargetNetFxVersion> |
30 | 33 | <GenerateNuget Condition="'$(GenerateNuget)' == '' AND '$(IsEnabledWindows)' == 'true'">true</GenerateNuget> |
31 | 34 |
|
32 | | - <CommonProperties>Configuration=$(Configuration);ReferenceType=$(ReferenceType)</CommonProperties> |
| 35 | + <CommonProperties>Configuration=$(Configuration);ReferenceType=$(ReferenceType);RestoreConfigFile=$(NuGetConfigFile)</CommonProperties> |
33 | 36 | <SqlServerLibProperties>$(CommonProperties);AssemblyVersion=$(SqlServerAssemblyVersion);AssemblyFileVersion=$(SqlServerAssemblyFileVersion);Version=$(SqlServerPackageVersion);</SqlServerLibProperties> |
34 | 37 | <ProjectProperties>$(CommonProperties);AssemblyFileVersion=$(AssemblyFileVersion);TargetsWindows=$(TargetsWindows);TargetsUnix=$(TargetsUnix);</ProjectProperties> |
35 | 38 | <TestProjectProperties>$(ProjectProperties);BuildForRelease=false;TargetNetCoreVersion=$(TargetNetCoreVersion);TargetNetFxVersion=$(TargetNetFxVersion)</TestProjectProperties> |
|
462 | 465 | <!-- @TODO: TestTargetOS makes this far more complicated than it needs to be. We should remove it. --> |
463 | 466 | <!-- @TODO: RemoveProperties shouldn't be necessary --> |
464 | 467 | <Message Text=">>> Restoring AKV project" /> |
465 | | - <MSBuild Projects="@(AKVProvider)" Targets="Restore" /> |
| 468 | + <MSBuild Projects="@(AKVProvider)" Targets="Restore" Properties="$(CommonProperties)" /> |
466 | 469 |
|
467 | 470 | <PropertyGroup> |
468 | 471 | <BuildAkvProperties>$(CI);TestTargetOS=$(TestOS)netfx;Platform=AnyCPU;$(ProjectProperties);$(NugetPackProperties)</BuildAkvProperties> |
|
510 | 513 | </Target> |
511 | 514 |
|
512 | 515 | <Target Name="BuildAKVNetCoreAllOS" DependsOnTargets="BuildNetCore"> |
513 | | - <MSBuild Projects="@(AKVProvider)" Targets="restore" Properties="TestTargetOS=$(TestOS)netcoreapp" /> |
| 516 | + <MSBuild Projects="@(AKVProvider)" Targets="restore" Properties="$(CommonProperties);TestTargetOS=$(TestOS)netcoreapp" /> |
514 | 517 | <MSBuild Projects="@(AKVProvider)" Properties="$(CI);TestTargetOS=$(TestOS)netcoreapp;$(ProjectProperties);Platform=AnyCPU;OSGroup=Unix;" RemoveProperties="TargetsWindows;TargetsUnix;" /> |
515 | 518 | <MSBuild Projects="@(AKVProvider)" Properties="$(CI);TestTargetOS=$(TestOS)netcoreapp;$(ProjectProperties);Platform=AnyCPU;OSGroup=Windows_NT;" RemoveProperties="TargetsWindows;TargetsUnix;" Condition="'$(IsEnabledWindows)' == 'true'" /> |
516 | 519 | <MSBuild Projects="@(AKVProvider)" Properties="$(CI);TestTargetOS=$(TestOS)netcoreapp;$(ProjectProperties);Platform=AnyCPU;OSGroup=AnyOS;" RemoveProperties="TargetsWindows;TargetsUnix;" /> |
|
0 commit comments