From cbe7187ea7ed32c80247f465d311382c4f331aa8 Mon Sep 17 00:00:00 2001 From: luo lan Date: Sat, 17 Aug 2024 14:34:17 +0000 Subject: [PATCH 1/3] Deleted azure-pipelines.yml --- azure-pipelines.yml | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 67deca6..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,26 +0,0 @@ -# ASP.NET -# Build and test ASP.NET projects. -# Add steps that publish symbols, save build artifacts, deploy, and more: -# https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4 - -trigger: -- master - -pool: - vmImage: 'windows-latest' - -variables: - solution: 'asg_form.sln' - buildPlatform: 'Any CPU' - buildConfiguration: 'Release' - -steps: -- task: NuGetToolInstaller@1 - -- task: NuGetCommand@2 - inputs: - restoreSolution: '$(solution)' - -- task: DotNetCoreCLI@2 - inputs: - command: 'build' From d8acf515393d2fc885a8784e5a359f0cae89aab3 Mon Sep 17 00:00:00 2001 From: luo lan Date: Sat, 17 Aug 2024 14:35:29 +0000 Subject: [PATCH 2/3] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..6a9684e --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,33 @@ +# .NET Desktop +# Build and run tests for .NET Desktop or Windows classic desktop solutions. +# Add steps that publish symbols, save build artifacts, and more: +# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net + +trigger: +- master + +pool: + vmImage: 'windows-latest' + +variables: + solution: '**/*.sln' + buildPlatform: 'Any CPU' + buildConfiguration: 'Release' + +steps: +- task: NuGetToolInstaller@1 + +- task: NuGetCommand@2 + inputs: + restoreSolution: '$(solution)' + +- task: VSBuild@1 + inputs: + solution: '$(solution)' + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' + +- task: VSTest@2 + inputs: + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' From ddbc8e0655be78bea1acf6c7a5b218d4f656f749 Mon Sep 17 00:00:00 2001 From: luo lan Date: Sat, 17 Aug 2024 14:36:28 +0000 Subject: [PATCH 3/3] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6a9684e..4fa8f71 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,7 +10,7 @@ pool: vmImage: 'windows-latest' variables: - solution: '**/*.sln' + solution: '*.sln' buildPlatform: 'Any CPU' buildConfiguration: 'Release' @@ -21,13 +21,3 @@ steps: inputs: restoreSolution: '$(solution)' -- task: VSBuild@1 - inputs: - solution: '$(solution)' - platform: '$(buildPlatform)' - configuration: '$(buildConfiguration)' - -- task: VSTest@2 - inputs: - platform: '$(buildPlatform)' - configuration: '$(buildConfiguration)'