|
| 1 | +<Project ToolsVersion="15.0"> |
| 2 | + <Target Name="WriteNugetConfigFile"> |
| 3 | + |
| 4 | + <PropertyGroup> |
| 5 | + <NugetConfigHeader> |
| 6 | + <?xml version="1.0" encoding="utf-8"?> |
| 7 | + <configuration> |
| 8 | + <packageSources> |
| 9 | + <!--To inherit the global NuGet package sources remove the <clear/> line below --> |
| 10 | + <clear /> |
| 11 | + </NugetConfigHeader> |
| 12 | + |
| 13 | + <NugetConfigFeedsPrivate> |
| 14 | + <add key="PrivateBlobFeed" value="$(ExternalRestoreSources)" /> |
| 15 | + </NugetConfigFeedsPrivate> |
| 16 | + |
| 17 | + <NugetConfigFeedsNormal> |
| 18 | + <add key="BlobFeed" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" /> |
| 19 | + <add key="templating" value="https://dotnet.myget.org/F/templating/api/v3/index.json" /> |
| 20 | + <add key="aspnet" value="https://dotnet.myget.org/F/aspnetcore-release/api/v3/index.json" /> |
| 21 | + <add key="websdkfeed" value="https://dotnet.myget.org/F/dotnet-web/api/v3/index.json" /> |
| 22 | + <add key="cli-deps" value="https://dotnet.myget.org/F/cli-deps/api/v3/index.json" /> |
| 23 | + <add key="roslyn" value="https://dotnet.myget.org/f/roslyn/api/v3/index.json" /> |
| 24 | + <add key="symreader-native" value="https://dotnet.myget.org/f/symreader-native/api/v3/index.json" /> |
| 25 | + <add key="xunit" value="https://www.myget.org/F/xunit/api/v3/index.json" /> |
| 26 | + <add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" /> |
| 27 | + <add key="vstest" value="https://dotnet.myget.org/F/vstest/api/v3/index.json" /> |
| 28 | + <add key="web-api" value="https://dotnet.myget.org/F/dotnet-web/api/v3/index.json" /> |
| 29 | + <add key="symreader-native" value="https://dotnet.myget.org/F/symreader-native/api/v3/index.json" /> |
| 30 | + <add key="AspNetMaster" value="https://dotnet.myget.org/F/aspnetcore-master/api/v3/index.json" /> |
| 31 | + </NugetConfigFeedsNormal> |
| 32 | + |
| 33 | + <NugetConfigSuffix> |
| 34 | + </packageSources> |
| 35 | + </configuration> |
| 36 | + </NugetConfigSuffix> |
| 37 | + </PropertyGroup> |
| 38 | + |
| 39 | + <WriteLinesToFile File="$(GeneratedNuGetConfig)" |
| 40 | + Lines="$(NugetConfigHeader)" |
| 41 | + Overwrite="true" /> |
| 42 | + |
| 43 | + <WriteLinesToFile Condition="'$(ExternalRestoreSources)' != ''" |
| 44 | + File="$(GeneratedNuGetConfig)" |
| 45 | + Lines="$(NugetConfigFeedsPrivate)" |
| 46 | + Overwrite="false" /> |
| 47 | + |
| 48 | + <WriteLinesToFile Condition="'$(DotNetBuildOffline)' != 'true'" |
| 49 | + File="$(GeneratedNuGetConfig)" |
| 50 | + Lines="$(NugetConfigFeedsNormal)" |
| 51 | + Overwrite="false" /> |
| 52 | + |
| 53 | + <WriteLinesToFile File="$(GeneratedNuGetConfig)" |
| 54 | + Lines="$(NugetConfigSuffix)" |
| 55 | + Overwrite="false" /> |
| 56 | + |
| 57 | + </Target> |
| 58 | +</Project> |
0 commit comments