Merge pull request #8443 from johnbeisner/WriteNugetConfigFileTargetModification
Generate a Nuget.config once
This commit is contained in:
commit
f6bc5d0ad9
2 changed files with 11 additions and 9 deletions
|
@ -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)"
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
<Project ToolsVersion="15.0">
|
<Project ToolsVersion="15.0">
|
||||||
<Target Name="WriteNugetConfigFile">
|
<Target Name="WriteNugetConfigFile"
|
||||||
|
Condition=" !Exists('$(GeneratedNuGetConfig)') ">
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<NugetConfigPrivateFeeds Include="$(ExternalRestoreSources.Split(';'))" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<NugetConfigPrivateFeeds Include="$(ExternalRestoreSources.Split(';'))" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<NugetConfigHeader>
|
<NugetConfigHeader>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
|
@ -40,13 +41,13 @@
|
||||||
</configuration>
|
</configuration>
|
||||||
]]>
|
]]>
|
||||||
</NugetConfigSuffix>
|
</NugetConfigSuffix>
|
||||||
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<WriteLinesToFile File="$(GeneratedNuGetConfig)"
|
<WriteLinesToFile File="$(GeneratedNuGetConfig)"
|
||||||
Lines="$(NugetConfigHeader)"
|
Lines="$(NugetConfigHeader)"
|
||||||
Overwrite="true" />
|
Overwrite="true" />
|
||||||
|
|
||||||
<WriteLinesToFile Condition="'$(ExternalRestoreSources)' != '' and '$(DotNetBuildOffline)' != 'true'"
|
<WriteLinesToFile Condition="'$(ExternalRestoreSources)' != '' and '$(DotNetBuildOffline)' != 'true'"
|
||||||
File="$(GeneratedNuGetConfig)"
|
File="$(GeneratedNuGetConfig)"
|
||||||
Lines="<add key="PrivateBlobFeed" value="%(NugetConfigPrivateFeeds.Identity)" />"
|
Lines="<add key="PrivateBlobFeed" value="%(NugetConfigPrivateFeeds.Identity)" />"
|
||||||
|
|
Loading…
Reference in a new issue