---
# System prepended metadata

title: Azure DevOps Service (.NET Core App Service)
tags: [Azure DevOps, App Service, Workshop]

---

###### tags: `Workshop`  `Azure DevOps` `App Service` 
# Azure DevOps Service (.NET Core App Service)
In this workshop you would learn how to accerlate developing .NET core web on Azure App Service.

## Link
* [Azure DevOps](https://dev.azure.com/)
* [Azure Portal](https://portal.azure.com)
* [Sample Code (ASP .NET Core)](https://github.com/huier23/AspNetCoreSample.git)
* [HelloWorld.Lib](https://github.com/huier23/HelloWorld.Lib.git) 
* [Register free Azure account](https://azure.microsoft.com/zh-tw/free/)

## Update
### 2021/03
* 建立組織時，請選擇以下地區其中之一：
    * Australia
    * Brazil
    * Canada
    * Asia Pacific
    * Europe
    * India
    * United Kingdom
    * United States
    
**[→ Announcement of an upcoming change to Azure DevOps organizations located in East Asia](https://docs.microsoft.com/en-us/azure/devops/migrate/migration?view=azure-devops)**

### 2020/06
- update to .NET Core 3.1 (Visual Studio 2019 required)
- When fisrt time to build and do unit test of this project, you can find the one error issue of unit test result.
![](https://i.imgur.com/eSfiYxj.png)

- Controllers / HomeController.cs
    ```
        public class HomeController : Controller
        {
            public IActionResult Index()
            {
                ViewData["Message"] = "Success!";

                return View();
            }
    ```
    "Success!" > "DevOps Workshop"

## Azure Pipelines Build 
### AspNetCore.Sample

![](https://i.imgur.com/5rABbo0.png)

- Use Nuget 5.x
![](https://i.imgur.com/tKBSzMH.png)

- Test Assemblies : edit Test files </br>
 ```
**\$(BuildConfiguration)\**\*UnitTest.dll
!**\obj\**
```
### HelloWorldNuGet
![](https://i.imgur.com/4HSbZJY.png)

- Setting Pack Option <br/>
![](https://i.imgur.com/u767C2B.png)


## Azure Pipelines Release
### AspNetCore.Sample
- Dev
![](https://i.imgur.com/yq4ytCU.png)


- Production
![](https://i.imgur.com/jsHownq.png)


### HelloWorldNuGet

![](https://i.imgur.com/uMT0TNu.png)
