From 0dd805453f3988f7c7eb539662dbe8d7faec9767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Tue, 15 Feb 2022 18:33:18 +0100 Subject: [PATCH 1/2] Add ci switch for Windows and Windows-Acceptance --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f8473b25b2..974d3b9e1a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,7 +12,7 @@ jobs: displayName: 'Run script build.cmd' inputs: filename: build.cmd - arguments: '-verbose -configuration $(buildConfiguration) -steps "InstallDotnet, Restore, UpdateLocalization, Build, Publish"' + arguments: '-verbose -configuration $(buildConfiguration) -ci -steps "InstallDotnet, Restore, UpdateLocalization, Build, Publish"' modifyEnvironment: false failOnStandardError: true @@ -63,7 +63,7 @@ jobs: # build should not be needed in the end, we are copying the build task from the build folder, but we should get # it either from artifacts, if present, or from extracted package file # Adding it at the moment to avoid this error: #[error]Copy-Item : Cannot find path 'D:\a\1\s\src\Microsoft.TestPlatform.Build\bin\Release\netstandard2.0' because it does not exist. - arguments: '-verbose -configuration $(buildConfiguration) -steps "InstallDotnet, Restore, Build, PrepareAcceptanceTests"' + arguments: '-verbose -configuration $(buildConfiguration) -ci -steps "InstallDotnet, Restore, Build, PrepareAcceptanceTests"' modifyEnvironment: false failOnStandardError: true From a280aae1c44c0b5beebed3b2076bbe77e3876bcb Mon Sep 17 00:00:00 2001 From: Medeni Baykal <433724+Haplois@users.noreply.github.com> Date: Tue, 15 Feb 2022 19:30:21 +0100 Subject: [PATCH 2/2] Added a step to bypass strong name validation. --- azure-pipelines.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 974d3b9e1a..62576ab4c0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,6 +16,18 @@ jobs: modifyEnvironment: false failOnStandardError: true + - task: PowerShell@2 + displayName: 'Disable Strong Name Validation' + inputs: + targetType: 'inline' + script: | + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\.NETFramework" -Name "AllowStrongNameBypass" -Value 1 -Force + Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NETFramework" -Name "AllowStrongNameBypass" -Value 1 -Force + reg DELETE "HKLM\Software\Microsoft\StrongName\Verification" /f + reg DELETE "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification" /f + reg ADD "HKLM\Software\Microsoft\StrongName\Verification\*,*" /f + reg ADD "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification\*,*" /f + - task: BatchScript@1 displayName: 'Run Unit Tests' inputs: