|
174 | 174 | <!-- Add ProjectReferences -->
|
175 | 175 | <ProjectReference Include="@(ProjectsToConvert -> '%(ProjectPath)')" />
|
176 | 176 | </ItemGroup>
|
177 |
| - |
| 177 | + |
178 | 178 | <!--TODO: update build targets - ADO 5668-->
|
179 | 179 | <PropertyGroup>
|
180 | 180 | <MgmtCoreShared>$(MSBuildThisFileDirectory)/../sdk/resourcemanager/Azure.ResourceManager/src/Shared</MgmtCoreShared>
|
|
185 | 185 | <Compile Include="$(MgmtCoreShared)/**/*.cs"
|
186 | 186 | LinkBase="Shared/Management" />
|
187 | 187 | </ItemGroup>
|
188 |
| - |
| 188 | + |
189 | 189 | <!--TODO: end-->
|
190 | 190 |
|
191 | 191 | <!-- *********** Files needed for LRO ************* -->
|
|
210 | 210 | <Compile Include="$(AzureCoreSharedSources)TaskExtensions.cs" LinkBase="Shared/Core" />
|
211 | 211 | <Compile Include="$(AzureCoreSharedSources)AppContextSwitchHelper.cs" LinkBase="Shared/Core" />
|
212 | 212 | </ItemGroup>
|
213 |
| - |
| 213 | + |
214 | 214 | <!-- *********** Management Client Library Override section ************* -->
|
215 | 215 | <ItemGroup Condition="'$(IsMgmtLibrary)' == 'true' and '$(IsTestProject)' != 'true'">
|
216 | 216 |
|
217 | 217 | <PackageReference Include="Azure.Core" />
|
218 | 218 | <PackageReference Include="System.Text.Json" />
|
219 |
| - |
| 219 | + |
220 | 220 | <!-- TODO: Review these file references-->
|
221 | 221 | <Compile Include="$(AzureCoreSharedSources)ArrayBufferWriter.cs" LinkBase="Shared" />
|
222 | 222 | <Compile Include="$(AzureCoreSharedSources)AzureResourceProviderNamespaceAttribute.cs" LinkBase="Shared" />
|
|
272 | 272 | <Error Condition="'@(PreviewPackageReferences)' != ''" Text="When the project has a release version it shouldn't reference any pre-release libraries. Found the following pre-release references: @(PreviewPackageReferences, ', ')" />
|
273 | 273 | </Target>
|
274 | 274 |
|
| 275 | + <!-- Validates that all the mgmt libraries have a trigger path in the core resourcemanager pipeline --> |
| 276 | + <Target Name="ValidateResourceManagerPipelineTriggers" AfterTargets="Build" Condition="'$(IsMgmtSubLibrary)' == 'true' and '$(IsShippingLibrary)' == 'true'" > |
| 277 | + <PropertyGroup> |
| 278 | + <_ResourceManagerCIFile>$(RepoRoot)/sdk/resourcemanager/ci.mgmt.yml</_ResourceManagerCIFile> |
| 279 | + <_ResourceManagerCIFileContents>$([System.IO.File]::ReadAllText($(_ResourceManagerCIFile)))</_ResourceManagerCIFileContents> |
| 280 | + <_ContainsTrigger>$([System.Text.RegularExpressions.Regex]::IsMatch($(_ResourceManagerCIFileContents), `- sdk/.*/$(MSBuildProjectName)\W+`))</_ContainsTrigger> |
| 281 | + </PropertyGroup> |
| 282 | + |
| 283 | + <Error Condition="'$(_ContainsTrigger)' != 'true'" Text="The core resourcemanager pipeline ['$(_ResourceManagerCIFile)'] does not contain a trigger path for your library please run 'eng/scripts/Update-Mgmt-CI.ps1' to add the correct trigger paths." /> |
| 284 | + </Target> |
| 285 | + |
275 | 286 | <!-- InheritDoc-->
|
276 | 287 | <ItemGroup Condition="'$(InheritDocEnabled)' != 'false'">
|
277 | 288 | <PackageReference Include="SauceControl.InheritDoc" PrivateAssets="all" />
|
|
0 commit comments