From a06206d2a67ad815391546f9cef0cd0fde1eda22 Mon Sep 17 00:00:00 2001 From: michaelxuch Date: Thu, 21 Jul 2022 12:31:33 -0700 Subject: [PATCH 01/11] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000000..27a798ad83 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,19 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- master + +pool: + vmImage: ubuntu-latest + +steps: +- script: echo Hello, world! + displayName: 'Run a one-line script' + +- script: | + echo Add other tasks to build, test, and deploy your project. + echo See https://aka.ms/yaml + displayName: 'Run a multi-line script' From d75031fb3cbd814e814f5f18d512442656c72317 Mon Sep 17 00:00:00 2001 From: michaelxuch Date: Thu, 21 Jul 2022 12:43:37 -0700 Subject: [PATCH 02/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dff610f8ce..d3451259c9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Sample ASP.NET Core application for Azure Pipelines docs +# Sample ASP.NET Core application for Azure Pipelines docs (updated on 20220721) For information on how to set up a pipeline for this repository, see [Create your first pipeline](https://docs.microsoft.com/azure/devops/pipelines/get-started-yaml?view=azure-devops). For more information on building .NET Core applications, see [.NET Core](https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core?view=azure-devops). From 6bf997952651d1decdedfa45d8ad4d5ac143f431 Mon Sep 17 00:00:00 2001 From: michaelxuch Date: Thu, 21 Jul 2022 12:50:35 -0700 Subject: [PATCH 03/11] Test on 0721 --- Views/Home/Index.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml index d2d19bdf9f..b4f12eabbf 100644 --- a/Views/Home/Index.cshtml +++ b/Views/Home/Index.cshtml @@ -3,6 +3,6 @@ }
-

Welcome

+

Welcome D3

Learn about building Web apps with ASP.NET Core.

From 7eed925e7ae830b36b9ecc550129477a7a442188 Mon Sep 17 00:00:00 2001 From: michaelxuch Date: Thu, 21 Jul 2022 13:22:36 -0700 Subject: [PATCH 04/11] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 27a798ad83..fb319e877c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -17,3 +17,9 @@ steps: echo Add other tasks to build, test, and deploy your project. echo See https://aka.ms/yaml displayName: 'Run a multi-line script' + +- task: DotNetCoreCLI@2 + inputs: + command: 'build' + arguments: '--configuration $(buildConfiguration)' + displayName: 'dotnet build $(buildConfiguration)' \ No newline at end of file From 03d27f80489f4d0bafc9303b4151f9f688a720e0 Mon Sep 17 00:00:00 2001 From: michaelxuch Date: Thu, 21 Jul 2022 13:28:23 -0700 Subject: [PATCH 05/11] Test error with build --- Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 5cb3f97f21..84428509b5 100644 --- a/Program.cs +++ b/Program.cs @@ -22,7 +22,7 @@ public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(builder => { - builder.UseStartup(); + builder.UseStartup(); }); } From ef3d9b18a621911e9773f37388d4da34a2cc5c4c Mon Sep 17 00:00:00 2001 From: michaelxuch Date: Thu, 21 Jul 2022 13:49:11 -0700 Subject: [PATCH 06/11] Test fixing syntax error --- Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 84428509b5..5cb3f97f21 100644 --- a/Program.cs +++ b/Program.cs @@ -22,7 +22,7 @@ public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(builder => { - builder.UseStartup(); + builder.UseStartup(); }); } From d0596854fd64b632d4f98748baef00d73a22a7d6 Mon Sep 17 00:00:00 2001 From: michaelxuch Date: Thu, 21 Jul 2022 15:09:51 -0700 Subject: [PATCH 07/11] Update azure-pipelines.yml for Azure Pipelines - add publish --- azure-pipelines.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fb319e877c..770cc7d37a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -22,4 +22,11 @@ steps: inputs: command: 'build' arguments: '--configuration $(buildConfiguration)' - displayName: 'dotnet build $(buildConfiguration)' \ No newline at end of file + displayName: 'dotnet build $(buildConfiguration)' + +- task: DotNetCoreCLI@2 + inputs: + command: publish + publishWebProjects: True + arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)' + zipAfterPublish: True \ No newline at end of file From 80349f2e2e82e2eb376a6b25ea6b088184de4e50 Mon Sep 17 00:00:00 2001 From: michaelxuch Date: Thu, 21 Jul 2022 15:17:33 -0700 Subject: [PATCH 08/11] Update pipleline yaml file --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 770cc7d37a..15fce065e9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -29,4 +29,5 @@ steps: command: publish publishWebProjects: True arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)' - zipAfterPublish: True \ No newline at end of file + zipAfterPublish: True + displayName: 'dotnet publish' \ No newline at end of file From cb53fade03d485e12454249aac86972f77a1eee8 Mon Sep 17 00:00:00 2001 From: michaelxuch Date: Thu, 21 Jul 2022 15:47:36 -0700 Subject: [PATCH 09/11] dmeo 0721 --- Views/Home/Index.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml index b4f12eabbf..9c7b667eb7 100644 --- a/Views/Home/Index.cshtml +++ b/Views/Home/Index.cshtml @@ -3,6 +3,6 @@ }
-

Welcome D3

+

Welcome D3 security

Learn about building Web apps with ASP.NET Core.

From 3430e33147af2a72cdfd75fcc97989ef628dd7da Mon Sep 17 00:00:00 2001 From: michaelxuch Date: Thu, 21 Jul 2022 15:49:33 -0700 Subject: [PATCH 10/11] demo error --- Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 5cb3f97f21..84428509b5 100644 --- a/Program.cs +++ b/Program.cs @@ -22,7 +22,7 @@ public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(builder => { - builder.UseStartup(); + builder.UseStartup(); }); } From 7483947bf99bec953e8fb803150224a62ff138a1 Mon Sep 17 00:00:00 2001 From: michaelxuch Date: Fri, 22 Jul 2022 19:13:41 -0700 Subject: [PATCH 11/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d3451259c9..170d9cbf02 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Sample ASP.NET Core application for Azure Pipelines docs (updated on 20220721) +# Sample ASP.NET Core application for Azure Pipelines docs (updated on 20220721-test) For information on how to set up a pipeline for this repository, see [Create your first pipeline](https://docs.microsoft.com/azure/devops/pipelines/get-started-yaml?view=azure-devops). For more information on building .NET Core applications, see [.NET Core](https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core?view=azure-devops).