|
1 | 1 | <Project>
|
2 | 2 |
|
| 3 | + <UsingTask AssemblyFile="$(XPlatSourceBuildTasksAssembly)" TaskName="AddSourceToNuGetConfig" /> |
| 4 | + <UsingTask AssemblyFile="$(XPlatSourceBuildTasksAssembly)" TaskName="RemoveInternetSourcesFromNuGetConfig" /> |
| 5 | + |
3 | 6 | <Target Name="PackSourceBuildTarball"
|
4 | 7 | Condition="'$(PackSourceBuildTarball)' == 'true'"
|
5 | 8 | DependsOnTargets="
|
6 | 9 | GetTarballDirProps;
|
7 | 10 | AddTarballSource;
|
8 | 11 | AddTarballSourcelinkMetadata;
|
| 12 | + GenerateTarballSmokeTestNuGetConfig; |
9 | 13 | AddTarballTools;
|
10 | 14 | AddTarballPackages;
|
11 | 15 | AddTarballExternalTarballs;
|
|
106 | 110 | DestinationFiles="@(ArtifactsGitDir -> '$(TarballSourceDir)%(RecursiveDir)%(Filename)%(Extension)')" />
|
107 | 111 | </Target>
|
108 | 112 |
|
| 113 | + <Target Name="GenerateTarballSmokeTestNuGetConfig"> |
| 114 | + |
| 115 | + <Copy |
| 116 | + SourceFiles="$(ProjectDir)smoke-testNuGet.Config" |
| 117 | + DestinationFiles="$(ProjectDir)artifacts\tarball-smoke-testNuGet.Config" /> |
| 118 | + |
| 119 | + <RemoveInternetSourcesFromNuGetConfig |
| 120 | + NuGetConfigFile="$(ProjectDir)artifacts\tarball-smoke-testNuGet.Config" |
| 121 | + OfflineBuild="false" |
| 122 | + RemoveFeedPrefixes="darc-pub-dotnet-" /> |
| 123 | + |
| 124 | + <AddSourceToNuGetConfig NuGetConfigFile="$(ProjectDir)artifacts\tarball-smoke-testNuGet.Config" |
| 125 | + SourceName="smoke-test feed" |
| 126 | + SourcePath="SMOKE_TEST_PACKAGE_FEED" /> |
| 127 | + |
| 128 | + </Target> |
| 129 | + |
109 | 130 | <Target Name="AddTarballTools">
|
110 | 131 | <ItemGroup>
|
111 | 132 | <TarballRootToolFile
|
|
166 | 187 | in it to generate a full set of smoke-test-prereqs. This isn't necessary in the tarball
|
167 | 188 | because we have those smoke-test-prereqs, but we hit authentication errors nonetheless. Copy
|
168 | 189 | a trimmed down nuget.config in this case.
|
169 |
| - TODO: Automatically trim down the main nuget.config. |
170 | 190 | -->
|
171 | 191 | <TarballCopyFile
|
172 |
| - Condition="Exists('$(ProjectDir)support\tarball\smoke-testNuGet.Config')" |
173 |
| - Include="$(ProjectDir)support\tarball\smoke-testNuGet.Config" |
| 192 | + Condition="Exists('$(ProjectDir)artifacts\tarball-smoke-testNuGet.Config')" |
| 193 | + Include="$(ProjectDir)artifacts\tarball-smoke-testNuGet.Config" |
174 | 194 | RelativeDestination="smoke-testNuGet.Config" />
|
175 | 195 |
|
| 196 | + |
176 | 197 | <!-- Setup package version props to include both source-built and running PackageVersions.props -->
|
177 | 198 | <TarballCopyFile
|
178 | 199 | Include="$(ProjectDir)support\tarball\PackageVersions.props"
|
|
0 commit comments