diff --git a/.azure-pipelines/pipeline.yml b/.azure-pipelines/pipeline.yml
index 784a203ee1..c5c52e3ccc 100644
--- a/.azure-pipelines/pipeline.yml
+++ b/.azure-pipelines/pipeline.yml
@@ -109,7 +109,7 @@ stages:
jobName: build_windows_x64
displayName: Windows (x64)
pool:
- vmImage: windows-2019
+ vmImage: windows-2022
os: win
arch: x64
branch: ${{ parameters.branch }}
@@ -129,7 +129,7 @@ stages:
jobName: build_windows_x86
displayName: Windows (x86)
pool:
- vmImage: windows-2019
+ vmImage: windows-2022
os: win
arch: x86
branch: ${{ parameters.branch }}
diff --git a/src/Agent.Service/Windows/AgentService.csproj b/src/Agent.Service/Windows/AgentService.csproj
index 29bc34964c..4275cfca3e 100644
--- a/src/Agent.Service/Windows/AgentService.csproj
+++ b/src/Agent.Service/Windows/AgentService.csproj
@@ -12,7 +12,7 @@
true
FinalPublicKey.snk
true
- v4.5
+ v4.7.1
512
true
diff --git a/src/Agent.Service/Windows/App.config b/src/Agent.Service/Windows/App.config
index 8e15646352..4609398cd5 100644
--- a/src/Agent.Service/Windows/App.config
+++ b/src/Agent.Service/Windows/App.config
@@ -1,6 +1,6 @@
-
+
-
+
\ No newline at end of file