|
15 | 15 | <Copy SourceFiles="@(_CopyDirectoryBuildTestDependenciesInput)" DestinationFiles="@(_CopyDirectoryBuildTestDependenciesOutput)" /> |
16 | 16 | </Target> |
17 | 17 |
|
18 | | - <Target Name="WriteNugetConfigFile" AfterTargets="Build"> |
19 | | - |
20 | | - <ItemGroup> |
21 | | - <NugetConfigPrivateFeeds Include="$(ExternalRestoreSources.Split(';'))" /> |
22 | | - </ItemGroup> |
23 | | - |
24 | | - <PropertyGroup> |
25 | | - <GeneratedNuGetConfig>$(ArtifactsTmpDir)NuGet.config</GeneratedNuGetConfig> |
26 | | - <NugetConfigHeader> |
27 | | - <![CDATA[ |
28 | | -<?xml version="1.0" encoding="utf-8"?> |
29 | | -<configuration> |
30 | | -<packageSources> |
31 | | -<!--To inherit the global NuGet package sources remove the <clear/> line below --> |
32 | | -<clear /> |
33 | | - ]]> |
34 | | - </NugetConfigHeader> |
35 | | - |
36 | | - <NugetConfigFeeds> |
37 | | - <![CDATA[ |
38 | | - <add key="darc-pub-dotnet-core-setup-f8bfa42" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-core-setup-f8bfa424/nuget/v3/index.json" /> |
39 | | - <add key="BlobFeed" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" /> |
40 | | - <add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" /> |
41 | | - <add key="aspnetcore-release" value="https://dotnet.myget.org/F/aspnetcore-release/api/v3/index.json" /> |
42 | | - <add key="roslyn" value="https://dotnet.myget.org/f/roslyn/api/v3/index.json" /> |
43 | | - <add key="nuget-build" value="https://dotnet.myget.org/F/nuget-build/api/v3/index.json" /> |
44 | | - <add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" /> |
45 | | - <add key="container-tools" value="https://www.myget.org/F/container-tools-for-visual-studio/api/v3/index.json" /> |
46 | | - <add key="roslyn-tools" value="https://dotnet.myget.org/F/roslyn-tools/api/v3/index.json" /> |
47 | | - <add key="dotnet-windowsdesktop" value="https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/index.json" /> |
48 | | - <add key="aspnet-aspnetcore" value="https://dotnetfeed.blob.core.windows.net/aspnet-aspnetcore/index.json" /> |
49 | | - <add key="aspnet-aspnetcore-tooling" value="https://dotnetfeed.blob.core.windows.net/aspnet-aspnetcore-tooling/index.json" /> |
50 | | - <add key="aspnet-entityframeworkcore" value="https://dotnetfeed.blob.core.windows.net/aspnet-entityframeworkcore/index.json" /> |
51 | | - <add key="aspnet-extensions" value="https://dotnetfeed.blob.core.windows.net/aspnet-extensions/index.json" /> |
52 | | - ]]> |
53 | | - </NugetConfigFeeds> |
54 | | - |
55 | | - <NugetConfigSuffix> |
56 | | - <![CDATA[ |
57 | | -</packageSources> |
58 | | -</configuration> |
59 | | - ]]> |
60 | | - </NugetConfigSuffix> |
61 | | - |
62 | | - </PropertyGroup> |
63 | | - |
64 | | - <WriteLinesToFile File="$(GeneratedNuGetConfig)" |
65 | | - Lines="$(NugetConfigHeader)" |
66 | | - Overwrite="true" /> |
67 | | - |
68 | | - <WriteLinesToFile Condition="'$(ExternalRestoreSources)' != '' and '$(DotNetBuildOffline)' != 'true'" |
69 | | - File="$(GeneratedNuGetConfig)" |
70 | | - Lines="<add key="PrivateBlobFeed%(NugetConfigPrivateFeeds.Filename)" value="%(NugetConfigPrivateFeeds.Identity)" />" |
71 | | - Overwrite="false" /> |
72 | | - |
73 | | - <WriteLinesToFile Condition="'$(DotNetBuildOffline)' != 'true'" |
74 | | - File="$(GeneratedNuGetConfig)" |
75 | | - Lines="$(NugetConfigFeeds)" |
76 | | - Overwrite="false" /> |
77 | | - |
78 | | - <WriteLinesToFile File="$(GeneratedNuGetConfig)" |
79 | | - Lines="$(NugetConfigSuffix)" |
80 | | - Overwrite="false" /> |
81 | | - |
| 18 | + <Target Name="WriteNugetConfigFile" |
| 19 | + AfterTargets="Build" |
| 20 | + Inputs="$(RepoRoot)NuGet.config" |
| 21 | + Outputs="$(ArtifactsTmpDir)NuGet.config" |
| 22 | + > |
| 23 | + <Copy SourceFiles="$(RepoRoot)NuGet.config" DestinationFiles="$(ArtifactsTmpDir)NuGet.config" /> |
82 | 24 | </Target> |
83 | 25 |
|
84 | 26 | </Project> |
0 commit comments