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(); }); } diff --git a/README.md b/README.md index dff610f8ce..170d9cbf02 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-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). diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml index d2d19bdf9f..9c7b667eb7 100644 --- a/Views/Home/Index.cshtml +++ b/Views/Home/Index.cshtml @@ -3,6 +3,6 @@ }
-

Welcome

+

Welcome D3 security

Learn about building Web apps with ASP.NET Core.

diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000000..15fce065e9 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,33 @@ +# 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' + +- task: DotNetCoreCLI@2 + inputs: + command: 'build' + arguments: '--configuration $(buildConfiguration)' + displayName: 'dotnet build $(buildConfiguration)' + +- task: DotNetCoreCLI@2 + inputs: + command: publish + publishWebProjects: True + arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)' + zipAfterPublish: True + displayName: 'dotnet publish' \ No newline at end of file