Click here to Skip to main content
15,867,568 members
Home / Discussions / C#
   

C#

 
AnswerRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
V.25-Apr-19 19:02
professionalV.25-Apr-19 19:02 
GeneralRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
Member 1412218425-Apr-19 21:16
Member 1412218425-Apr-19 21:16 
AnswerRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
Ron Nicholson26-Apr-19 5:13
professionalRon Nicholson26-Apr-19 5:13 
GeneralRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
Member 1412218426-Apr-19 21:43
Member 1412218426-Apr-19 21:43 
AnswerRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
BillWoodruff29-Apr-19 8:23
professionalBillWoodruff29-Apr-19 8:23 
GeneralRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
Member 1412218429-Apr-19 10:40
Member 1412218429-Apr-19 10:40 
GeneralRe: Adventure Game & Interactive Fiction - Coding for handling doors. Pin
BillWoodruff29-Apr-19 22:43
professionalBillWoodruff29-Apr-19 22:43 
QuestionHow to configure azure-pipeline.yml for asp.net core 2.2 ? Pin
Bastien Vandamme22-Apr-19 17:45
Bastien Vandamme22-Apr-19 17:45 
Hello, I have the feeling this question can become a discussions because there is a lot of parameters that can be change and I don't know what to do.

I'm trying to setup a azure pipeline. I already did this in the past but with template and not for a .NET Core web application. It was easy because I could use a template. For some reason, here, I could not chose any template. The Azure Pipeline tool directly ask me to edit a yml file. Maybe because my repository is a local DevOps repository? I have no idea.

I followed this tutorial: https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/dotnet-core?view=azure-devops and created this yml file:
 # 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:
   vmImage: 'Ubuntu-16.04'

 variables:
   buildConfiguration: 'Release'

 steps:
 # - script: dotnet build --configuration $(buildConfiguration)
 #   displayName: 'dotnet build $(buildConfiguration)'

 \- task: DotNetCoreInstaller@0
   inputs:
     version: '2.2.202' # replace this value with the version that you need for your project

 \- script: dotnet restore

 \- task: DotNetCoreCLI@2
   displayName: Build
   inputs:
     command: build
     projects: '**/*.csproj'
     arguments: '--configuration Release' # Update this to match your need

 # do this after you've built your app, near the end of your pipeline in most cases
 # for example, you do this before you deploy to an Azure web app on Windows
 \- task: DotNetCoreCLI@2
   inputs:
     command: publish
     publishWebProjects: True
     arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)'
     zipAfterPublish: True

 # - task: PublishBuildArtifacts@1
 #   inputs:
 #     ArtifactName: 'drop'

Here is my result: All is success except
<h1>##[section]Starting: DotNetCoreCLI</h1>

Task         : .NET Core
Description  : Build, test, package, or publish a dotnet application, or run a custom dotnet command. For package commands, supports NuGet.org and authenticated feeds like Package Management and MyGet.
Version      : 2.150.1
Author       : Microsoft Corporation
<h1>Help         : <a href="https://go.microsoft.com/fwlink/?linkid=832194">More Information</a></h1>

 ##[error]No web project was found in the repository. Web projects are identified by presence of either a web.config file or wwwroot folder in the directory.
 ##[error]Project file(s) matching the specified pattern were not found.
 ##[section]Finishing: DotNetCoreCLI</pre>

[error]No web project was found in the repository. Web projects are identified by presence of either a web.config file or wwwroot folder in the directory. Also with .NET Core? Till now I can run my project locally with my Visual Studio whithout this config file. I don't get it.

PS: Can also someone tell me why the markdown is still active between my code tags? Impossible to display a correct verison of my yml file. # are transformed as title and - as list.

-- modified 23-Apr-19 0:24am.
AnswerRe: How to configure azure-pipeline.yml for asp.net core 2.2 ? Pin
Gerry Schmitz22-Apr-19 18:11
mveGerry Schmitz22-Apr-19 18:11 
GeneralRe: How to configure azure-pipeline.yml for asp.net core 2.2 ? Pin
Bastien Vandamme22-Apr-19 18:20
Bastien Vandamme22-Apr-19 18:20 
QuestionRe: How to configure azure-pipeline.yml for asp.net core 2.2 ? Pin
Richard MacCutchan22-Apr-19 21:08
mveRichard MacCutchan22-Apr-19 21:08 
QuestionC# A few questions for my learning journey. Pin
Member 1417655620-Apr-19 22:20
Member 1417655620-Apr-19 22:20 
AnswerRe: C# A few questions for my learning journey. Pin
Gerry Schmitz21-Apr-19 3:17
mveGerry Schmitz21-Apr-19 3:17 
GeneralRe: C# A few questions for my learning journey. Pin
Member 1417655621-Apr-19 6:02
Member 1417655621-Apr-19 6:02 
GeneralRe: C# A few questions for my learning journey. Pin
Gerry Schmitz21-Apr-19 6:18
mveGerry Schmitz21-Apr-19 6:18 
AnswerRe: C# A few questions for my learning journey. Pin
BillWoodruff23-Apr-19 21:33
professionalBillWoodruff23-Apr-19 21:33 
GeneralRe: C# A few questions for my learning journey. Pin
Luc Pattyn24-Apr-19 5:36
sitebuilderLuc Pattyn24-Apr-19 5:36 
QuestionExtracting regex from string Pin
ormonds20-Apr-19 19:45
ormonds20-Apr-19 19:45 
GeneralRe: Extracting regex from string Pin
Richard MacCutchan20-Apr-19 22:14
mveRichard MacCutchan20-Apr-19 22:14 
AnswerRe: Extracting regex from string Pin
Eddy Vluggen21-Apr-19 0:37
professionalEddy Vluggen21-Apr-19 0:37 
AnswerRe: Extracting regex from string Pin
Gerry Schmitz21-Apr-19 3:07
mveGerry Schmitz21-Apr-19 3:07 
AnswerRe: Extracting regex from string Pin
#realJSOP21-Apr-19 5:12
mve#realJSOP21-Apr-19 5:12 
GeneralRe: Extracting regex from string Pin
jschell21-Apr-19 7:48
jschell21-Apr-19 7:48 
GeneralRe: Extracting regex from string Pin
#realJSOP21-Apr-19 11:45
mve#realJSOP21-Apr-19 11:45 
GeneralRe: Extracting regex from string Pin
jschell27-Apr-19 6:11
jschell27-Apr-19 6:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.