diff --git a/Controllers/HomeController.cs b/Controllers/HomeController.cs index 0ef4499431..fcd39ccdbf 100644 --- a/Controllers/HomeController.cs +++ b/Controllers/HomeController.cs @@ -12,6 +12,7 @@ public class HomeController : Controller { public IActionResult Index() { + ViewBag.Message = "Bienvenue depuis la branche test-homecontroller"; return View(); } diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000000..c03cbdf2d1 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,34 @@ +# ASP.NET Core (.NET Framework) +# Build and test ASP.NET Core projects targeting the full .NET Framework. +# Add steps that publish symbols, save build artifacts, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core + +trigger: +- master + +pool: + name: 'test pipeline v2' + +variables: + solution: '**/*.sln' + buildPlatform: 'Any CPU' + buildConfiguration: 'Release' + +steps: +- task: NuGetToolInstaller@1 + +- task: NuGetCommand@2 + inputs: + restoreSolution: '$(solution)' + +- task: VSBuild@1 + inputs: + solution: '$(solution)' + msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"' + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' + +- task: VSTest@2 + inputs: + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' diff --git a/pipelines-dotnet-core.sln b/pipelines-dotnet-core.sln new file mode 100644 index 0000000000..28c0a2cd3d --- /dev/null +++ b/pipelines-dotnet-core.sln @@ -0,0 +1,30 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.2.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "pipelines-dotnet-core", "pipelines-dotnet-core.csproj", "{28C77ADF-52EB-A174-F828-61CDA56F5B7D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestProject1", "..\TestProject1\TestProject1.csproj", "{80207BB4-E5D5-4DDA-830C-153DF506E380}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {28C77ADF-52EB-A174-F828-61CDA56F5B7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {28C77ADF-52EB-A174-F828-61CDA56F5B7D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {28C77ADF-52EB-A174-F828-61CDA56F5B7D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {28C77ADF-52EB-A174-F828-61CDA56F5B7D}.Release|Any CPU.Build.0 = Release|Any CPU + {80207BB4-E5D5-4DDA-830C-153DF506E380}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {80207BB4-E5D5-4DDA-830C-153DF506E380}.Debug|Any CPU.Build.0 = Debug|Any CPU + {80207BB4-E5D5-4DDA-830C-153DF506E380}.Release|Any CPU.ActiveCfg = Release|Any CPU + {80207BB4-E5D5-4DDA-830C-153DF506E380}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3AAA368C-A16E-4C7A-A58A-9E1C85B9B294} + EndGlobalSection +EndGlobal