|
10 | 10 | <Import Project="Sdk.props" Sdk="Microsoft.DotNet.SharedFramework.Sdk" Version="$(MicrosoftDotNetBuildTasksFeedPackageVersion)" />
|
11 | 11 |
|
12 | 12 | <UsingTask TaskName="CreateFrameworkListFile" AssemblyFile="$(DotNetSharedFrameworkTaskFile)"/>
|
13 |
| - <UsingTask TaskName="GenerateBuildManifest" AssemblyFile="$(_MicrosoftDotNetBuildTasksFeedTaskDir)Microsoft.DotNet.Build.Tasks.Feed.dll" /> |
14 | 13 | <UsingTask TaskName="Xamarin.Android.BuildTools.PrepTasks.ReplaceFileContents" AssemblyFile="$(PrepTasksAssembly)" />
|
15 | 14 |
|
16 | 15 | <!-- https://github.com/dotnet/runtime/blob/0647ec314948904319da5eb15e9931f7c85ed1e2/src/installer/pkg/projects/Directory.Build.targets#L281 -->
|
|
164 | 163 | <RemoveDir Directories="@(_PackFoldersToDelete)" />
|
165 | 164 | </Target>
|
166 | 165 |
|
| 166 | + <!-- https://github.com/dotnet/arcade/blob/efc3da96e5ac110513e92ebd9ef87c73f44d8540/Documentation/DependencyFlowOnboardingWithoutArcade.md --> |
167 | 167 | <Target Name="PushManifestToBuildAssetRegistry" >
|
| 168 | + <PropertyGroup> |
| 169 | + <ArtifactsLogDir>$(OutputPath)</ArtifactsLogDir> |
| 170 | + <AssetManifestFileName>Assets.xml</AssetManifestFileName> |
| 171 | + <AssetManifestPath>$(ArtifactsLogDir)AssetManifest\$(AssetManifestFileName)</AssetManifestPath> |
| 172 | + </PropertyGroup> |
| 173 | + |
| 174 | + <Error Condition="Exists($(AssetManifestPath))" Text="The manifest file '$(AssetManifestPath)' already exists." /> |
| 175 | + |
168 | 176 | <ItemGroup>
|
169 |
| - <BuildArtifacts Include="$(OutputPath)*.nupkg" /> |
| 177 | + <ItemsToPush Include="$(OutputPath)*.nupkg" /> |
170 | 178 | </ItemGroup>
|
171 | 179 |
|
172 |
| - <Error Condition="'@(BuildArtifacts)' == ''" Text="No packages to create manifest from." /> |
| 180 | + <Error Condition="'@(ItemsToPush)' == ''" Text="No packages to push." /> |
| 181 | + |
| 182 | + <Message Text="Publishing %(ItemsToPush.Identity)" Importance="normal" /> |
173 | 183 |
|
174 | 184 | <ItemGroup>
|
175 |
| - <ManifestBuildData Include="InitialAssetsLocation=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json" /> |
| 185 | + <ManifestBuildData Include="InitialAssetsLocation=" /> |
176 | 186 | <ManifestBuildData Include="AzureDevOpsBuildId=$(BUILD_BUILDID)" />
|
177 | 187 | <ManifestBuildData Include="AzureDevOpsBuildDefinitionId=$(SYSTEM_DEFINITIONID)" />
|
178 | 188 | <ManifestBuildData Include="AzureDevOpsProject=$(SYSTEM_TEAMPROJECT)" />
|
|
181 | 191 | <ManifestBuildData Include="AzureDevOpsBranch=$(BUILD_SOURCEBRANCH)" />
|
182 | 192 | </ItemGroup>
|
183 | 193 |
|
184 |
| - <GenerateBuildManifest |
185 |
| - Artifacts="@(BuildArtifacts)" |
186 |
| - OutputPath="$(OutputPath)bar-manifests\AssetManifest.xml" |
187 |
| - BuildId="$(BUILD_BUILDNUMBER)" |
188 |
| - BuildData="@(ManifestBuildData)" |
189 |
| - RepoUri="$(BUILD_REPOSITORY_URI)" |
190 |
| - RepoBranch="$(BUILD_SOURCEBRANCH)" |
191 |
| - RepoCommit="$(BUILD_SOURCEVERSION)" |
| 194 | + <PushToAzureDevOpsArtifacts |
| 195 | + ItemsToPush="@(ItemsToPush)" |
| 196 | + ManifestBuildData="@(ManifestBuildData)" |
| 197 | + ManifestRepoUri="$(BUILD_REPOSITORY_NAME)" |
| 198 | + ManifestBranch="$(BUILD_SOURCEBRANCH)" |
| 199 | + ManifestBuildId="$(BUILD_BUILDNUMBER)" |
| 200 | + ManifestCommit="$(BUILD_SOURCEVERSION)" |
| 201 | + AssetManifestPath="$(AssetManifestPath)" |
192 | 202 | PublishingVersion="3" />
|
193 | 203 |
|
194 | 204 | <MSBuild
|
|
199 | 209 |
|
200 | 210 | <MSBuild
|
201 | 211 | Projects="$(PkgMicrosoft_DotNet_Arcade_Sdk)\tools\SdkTasks\PublishBuildAssets.proj"
|
202 |
| - Properties="Configuration=$(Configuration);RepoRoot=$(XamarinAndroidSourcePath);VersionPrefix=$(AndroidPackVersion);ManifestsPath=$(OutputPath)bar-manifests;MaestroApiEndpoint=https://maestro-prod.westus2.cloudapp.azure.com" |
| 212 | + Properties="Configuration=$(Configuration);RepoRoot=$(XamarinAndroidSourcePath);VersionPrefix=$(AndroidPackVersion);ManifestsPath=$(ArtifactsLogDir)AssetManifest;MaestroApiEndpoint=https://maestro.dot.net" |
203 | 213 | />
|
204 | 214 | </Target>
|
205 | 215 |
|
|
0 commit comments