Skip to content
1 change: 1 addition & 0 deletions Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class HomeController : Controller
{
public IActionResult Index()
{
ViewBag.Message = "Bienvenue depuis la branche test-homecontroller";
return View();
}

Expand Down
34 changes: 34 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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)'
30 changes: 30 additions & 0 deletions pipelines-dotnet-core.sln
Original file line number Diff line number Diff line change
@@ -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