diff --git a/README.md b/README.md index e226242..b9381c8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # Sample ASP.NET Core application for VSTS and TFS docs For information on how to use this repository, see [Build your ASP.NET Core app](https://docs.microsoft.com/en-us/vsts/build-release/apps/aspnet/build-aspnet-core). +sdfsd +dsfsdf diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml new file mode 100644 index 0000000..55bdb62 --- /dev/null +++ b/azure-pipelines-1.yml @@ -0,0 +1,23 @@ +# 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: + name: 'default' + +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: AzureCLI@1 + inputs: + scriptLocation: 'scriptPath' + scriptPath: \ No newline at end of file diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml new file mode 100644 index 0000000..61dd88f --- /dev/null +++ b/azure-pipelines-2.yml @@ -0,0 +1,17 @@ +# ASP.NET Core +# Build and test ASP.NET Core projects targeting .NET Core. +# Add steps that run tests, create a NuGet package, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core + +trigger: +- master + +pool: + name: 'Default' + +variables: + buildConfiguration: 'Release' + +steps: +- script: dotnet build --configuration $(buildConfiguration) + displayName: 'dotnet build $(buildConfiguration)' diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..fb71d0b --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,31 @@ +# .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: + name: 'a12' + +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: DotNetCoreCLI@2 + inputs: + command: 'build' \ No newline at end of file diff --git a/dotnetcore-tests/UnitTest1.cs b/dotnetcore-tests/UnitTest1.cs index 5936015..3ee8052 100644 --- a/dotnetcore-tests/UnitTest1.cs +++ b/dotnetcore-tests/UnitTest1.cs @@ -14,7 +14,7 @@ public void About() // Arrange HomeController controller = new HomeController(); - // Act + // Act//test ViewResult result = controller.About() as ViewResult; // Assert