Merge pull request #8443 from johnbeisner/WriteNugetConfigFileTargetModification

Generate a Nuget.config once
This commit is contained in:
John Beisner 2018-01-22 14:11:27 -08:00 committed by GitHub
commit f6bc5d0ad9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 9 deletions

View file

@ -1,6 +1,7 @@
<Project ToolsVersion="15.0"> <Project ToolsVersion="15.0">
<Target Name="DownloadPackageVersionsProps" <Target Name="DownloadPackageVersionsProps"
DependsOnTargets="BuildDotnetCliBuildFramework"> Condition=" !Exists('$(OrchestratedPackageVersionsProps)') "
DependsOnTargets="BuildDotnetCliBuildFramework">
<DownloadFile Uri="$(PB_PackageVersionPropsUrl)$(CoreSetupBlobAccessTokenParam)" <DownloadFile Uri="$(PB_PackageVersionPropsUrl)$(CoreSetupBlobAccessTokenParam)"
DestinationPath="$(OrchestratedPackageVersionsProps)" DestinationPath="$(OrchestratedPackageVersionsProps)"

View file

@ -1,9 +1,10 @@
<Project ToolsVersion="15.0"> <Project ToolsVersion="15.0">
<Target Name="WriteNugetConfigFile"> <Target Name="WriteNugetConfigFile"
Condition=" !Exists('$(GeneratedNuGetConfig)') ">
<ItemGroup> <ItemGroup>
<NugetConfigPrivateFeeds Include="$(ExternalRestoreSources.Split(';'))" /> <NugetConfigPrivateFeeds Include="$(ExternalRestoreSources.Split(';'))" />
</ItemGroup> </ItemGroup>
<PropertyGroup> <PropertyGroup>
<NugetConfigHeader> <NugetConfigHeader>
@ -41,7 +42,7 @@
]]> ]]>
</NugetConfigSuffix> </NugetConfigSuffix>
</PropertyGroup> </PropertyGroup>
<WriteLinesToFile File="$(GeneratedNuGetConfig)" <WriteLinesToFile File="$(GeneratedNuGetConfig)"
Lines="$(NugetConfigHeader)" Lines="$(NugetConfigHeader)"