2017-11-28 20:54:32 +00:00
|
|
|
<Project ToolsVersion="15.0">
|
|
|
|
<Target Name="WriteNugetConfigFile">
|
|
|
|
|
2017-11-29 01:12:44 +00:00
|
|
|
<ItemGroup>
|
|
|
|
<NugetConfigPrivateFeeds Include="$(ExternalRestoreSources.Split(';'))" />
|
|
|
|
</ItemGroup>
|
2018-03-30 16:09:43 +00:00
|
|
|
|
2017-11-28 20:54:32 +00:00
|
|
|
<PropertyGroup>
|
|
|
|
<NugetConfigHeader>
|
2017-11-29 01:12:44 +00:00
|
|
|
<![CDATA[
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<configuration>
|
2017-12-04 22:32:56 +00:00
|
|
|
<packageSources>
|
|
|
|
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
|
|
|
|
<clear />
|
2017-11-29 01:12:44 +00:00
|
|
|
]]>
|
2017-11-28 20:54:32 +00:00
|
|
|
</NugetConfigHeader>
|
|
|
|
|
2017-11-29 18:22:27 +00:00
|
|
|
<NugetConfigCLIFeeds>
|
2017-11-29 01:12:44 +00:00
|
|
|
<![CDATA[
|
2017-12-04 22:32:56 +00:00
|
|
|
<add key="BlobFeed" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
|
2018-03-27 17:24:10 +00:00
|
|
|
<add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
|
2017-12-04 22:32:56 +00:00
|
|
|
<add key="templating" value="https://dotnet.myget.org/F/templating/api/v3/index.json" />
|
2018-03-30 16:09:43 +00:00
|
|
|
<add key="aspnet" value="$(AspNetCoreRuntimeBuildDropFeed)" />
|
2017-12-04 22:32:56 +00:00
|
|
|
<add key="websdkfeed" value="https://dotnet.myget.org/F/dotnet-web/api/v3/index.json" />
|
|
|
|
<add key="roslyn" value="https://dotnet.myget.org/f/roslyn/api/v3/index.json" />
|
|
|
|
<add key="symreader-native" value="https://dotnet.myget.org/f/symreader-native/api/v3/index.json" />
|
|
|
|
<add key="xunit" value="https://www.myget.org/F/xunit/api/v3/index.json" />
|
|
|
|
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
|
|
|
|
<add key="vstest" value="https://dotnet.myget.org/F/vstest/api/v3/index.json" />
|
|
|
|
<add key="web-api" value="https://dotnet.myget.org/F/dotnet-web/api/v3/index.json" />
|
|
|
|
<add key="symreader-native" value="https://dotnet.myget.org/F/symreader-native/api/v3/index.json" />
|
2018-03-20 21:22:54 +00:00
|
|
|
<add key="nuget-build" value="https://dotnet.myget.org/F/nuget-build/api/v3/index.json" />
|
2018-03-30 16:10:10 +00:00
|
|
|
<add key="dotnet-msbuild" value="https://dotnet.myget.org/F/msbuild/api/v3/index.json" />
|
2017-11-29 01:12:44 +00:00
|
|
|
]]>
|
2017-11-29 18:22:27 +00:00
|
|
|
</NugetConfigCLIFeeds>
|
2017-11-28 20:54:32 +00:00
|
|
|
|
|
|
|
<NugetConfigSuffix>
|
2017-11-29 01:12:44 +00:00
|
|
|
<![CDATA[
|
2017-12-04 22:32:56 +00:00
|
|
|
</packageSources>
|
2017-11-29 01:12:44 +00:00
|
|
|
</configuration>
|
|
|
|
]]>
|
2017-11-28 20:54:32 +00:00
|
|
|
</NugetConfigSuffix>
|
2018-03-30 16:09:43 +00:00
|
|
|
|
2017-11-29 18:22:27 +00:00
|
|
|
</PropertyGroup>
|
2017-11-28 20:54:32 +00:00
|
|
|
|
|
|
|
<WriteLinesToFile File="$(GeneratedNuGetConfig)"
|
|
|
|
Lines="$(NugetConfigHeader)"
|
|
|
|
Overwrite="true" />
|
2018-03-30 16:09:43 +00:00
|
|
|
|
2017-11-29 18:22:27 +00:00
|
|
|
<WriteLinesToFile Condition="'$(ExternalRestoreSources)' != '' and '$(DotNetBuildOffline)' != 'true'"
|
2017-11-28 20:54:32 +00:00
|
|
|
File="$(GeneratedNuGetConfig)"
|
2018-01-22 03:19:25 +00:00
|
|
|
Lines="<add key="PrivateBlobFeed%(NugetConfigPrivateFeeds.Filename)" value="%(NugetConfigPrivateFeeds.Identity)" />"
|
2017-11-28 20:54:32 +00:00
|
|
|
Overwrite="false" />
|
|
|
|
|
|
|
|
<WriteLinesToFile Condition="'$(DotNetBuildOffline)' != 'true'"
|
|
|
|
File="$(GeneratedNuGetConfig)"
|
2017-11-29 18:22:27 +00:00
|
|
|
Lines="$(NugetConfigCLIFeeds)"
|
2017-11-28 20:54:32 +00:00
|
|
|
Overwrite="false" />
|
|
|
|
|
|
|
|
<WriteLinesToFile File="$(GeneratedNuGetConfig)"
|
|
|
|
Lines="$(NugetConfigSuffix)"
|
|
|
|
Overwrite="false" />
|
|
|
|
|
|
|
|
</Target>
|
|
|
|
</Project>
|