This article is a mirror article of machine translation, please click here to jump to the original article.

View: 3430|Reply: 2

Azure DevOps (viii) Compiles ASP.NET MVC projects using Pipelines Build

[Copy link]
Posted on 7/29/2023 7:40:01 PM | | | |
Requirements: I have been using Azure DevOps' Pipelines pipelines to compile ASP.NET Core projects, .NET Core projects are very simple to compile with dotnet, and can be compiled directly with the .NET SDK command line, but ASP.NET MVC (.NET Framework) projects need to be compiled with msbuild. This article uses Azure DevOps callsVSBuild@1Compile ASP.NET MVC (.NET Framework) project.

Review:

Azure DevOps (VII) creates an additional agent pool
https://www.itsvse.com/thread-10634-1-1.html

Azure DevOps 2020 (VI) Upgrade NuGet tools
https://www.itsvse.com/thread-9382-1-1.html

Azure DevOps 2020 (V) Automate the release of NUGET packages using Pipelines
https://www.itsvse.com/thread-9381-1-1.html

Azure DevOps 2020 (IV) Compiled jobs using Pipelines
https://www.itsvse.com/thread-9378-1-1.html

Azure DevOps 2020 (II) Azure DevOps Server Express 2020 RC2 installation tutorial
https://www.itsvse.com/thread-9375-1-1.html

Azure DevOps 2020 (III) limits search (ES) memory footprint
https://www.itsvse.com/thread-9371-1-1.html

Azure DevOps 2020 (1) First Introduction to Microsoft Azure DevOps (TFS)
https://www.itsvse.com/thread-9239-1-1.html

Meet Azure DevOps
https://www.itsvse.com/thread-8078-1-1.html
We use Azure DevOps Services for demonstrations, firstHost an upload of a .NET Framework 4.7.2 projectand then enter the project, as shown below:



The MVC project references a class library, which in turn references a nuget package for testing, and the MVC controller calls the method in ClassLibrary1.

To create a pipeline, click: Pipelines -> Create Pipeline, as shown in the following figure:



Select Azure Repos Git Next, select the Git project, go all the way to the next step, select ASP.NET Core (.NET Framework), save it, and then modify the pipeline azure-pipelines.yml configuration file.

For more information about Azure Pipelines task configuration, please refer to:The hyperlink login is visible.

Modify the azure-pipelines.yml profile,The agent is used on my local computerAs follows:

Then, run the pipeline, and the first time you run the pipeline, it will prompt that authorization is required, as shown in the following figure:

Granting permission here will permit the use of Agent pool 'Default' for all waiting and future runs of this pipeline.


View the execution results as shown in the figure below:



Download the release package as shown below:



Reference:

The hyperlink login is visible.
The hyperlink login is visible.





Previous:Azure DevOps (VII) creates an additional agent pool
Next:Base64 decoding errors exist in all versions of .NET
 Landlord| Posted on 7/29/2023 7:41:56 PM |
Attached is the default generateazure-pipelines.ymlDocument contents:




 Landlord| Posted on 8/16/2023 5:03:12 PM |
Pool definition:The hyperlink login is visible.For example:




Microsoft-hosted agent virtual machine image

The Azure Pipelines agent pool provides multiple virtual machine images to choose from, each with various tools and software, as shown in the following image:




The hyperlink login is visible.


hardware

Microsoft Managed Agent running Windows and Linux images is provisioned on Azure Universal Virtual Machines with 2-core CPU, 7 GB RAM, and 14 GB SSD disk space. These VMs are located in the same geographic location as your Azure DevOps organization.



Microsoft hosting price, Microsoft offersFree credit, which needs to be purchased after use.

For Microsoft-hosted parallel jobs, you can get up to 10 free Microsoft-hosted parallel jobs that can run for up to 360 minutes (6 hours) at a time in a public project. When you create a new Azure DevOps organization, you aren't given this free license by default.

For dedicated projects, you can get a free job that can run for up to 60 minutes at a time. When you create a new Azure DevOps organization, you might not always be offered this free license by default.




The hyperlink login is visible.
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com