mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
[Infra-BuildScript] Add PowerShell Script to Enforce Shared Common.Dotnet.CsWinRT.props in all CSharp Projects under Src Sub-Folder (#37811)
* Add Powershell script to validate whether CSharp project correctly import shared props, update pipeline to enforce such validation, and fixed all projects that didn't import this shared props correctly * add common props for fuzz test project * update the path * Only scans projects in src sub-folder * Update .pipelines/verifyCommonProps.ps1 * Update csproj to include Common.Dotnet.CsWinRT.props * Fix indentation in RegistryPreview.FuzzTests.csproj * exclude TemplateCmdPalExtension.csproj in validation process * exclude TemplateCmdPalExtension.csproj in validation process --------- Co-authored-by: Leilei Zhang <leilzh@microsoft.com> Co-authored-by: Jerry Xu <nxu@microsoft.com>
This commit is contained in:
@@ -344,6 +344,11 @@ jobs:
|
||||
flattenFolders: True
|
||||
OverWrite: True
|
||||
|
||||
# Check if all projects (located in src sub-folder) import common props
|
||||
- pwsh: |-
|
||||
& '.pipelines/verifyCommonProps.ps1' -sourceDir '$(build.sourcesdirectory)\src'
|
||||
displayName: Audit shared common props for CSharp projects in src sub-folder
|
||||
|
||||
# Check if deps.json files don't reference different dll versions.
|
||||
- pwsh: |-
|
||||
& '.pipelines/verifyDepsJsonLibraryVersions.ps1' -targetDir '$(build.sourcesdirectory)\$(BuildPlatform)\$(BuildConfiguration)'
|
||||
|
||||
Reference in New Issue
Block a user