How can I tell exactly what type of .Net project I've created and what DevOps pipeline I should use to build it?

I am using Azure DevOps with Azure Git and I believe I’ve created an ASP.Net Core application (.NET 5.0) that is my web API (Project/Solution A).

I’ve created a separate solution/project/branch for a MSTest project of unit tests that target the other application (web API) to verify the endpoints are all working (Project/Solution B)

I’m trying to create a pipeline to build Project B, so that I can link the test cases, but when I go to choose the pipeline configuration, I see ASP.NET Core (.NET Framework) and ASP.NET Core.

  1. I thought ASP.NET Core used .NET Core, so how can it be both ASP.NET Core and (.NET Framework) at the same time?
  2. What is the proper way to describe what my project is targeting? ".NET 5.0", ".NET Core", "ASP.NET Core 5.0", "ASP.NET Core", etc?

How can I tell exactly what type of .Net project I've created and what DevOps pipeline I should use to build it?

How can I tell exactly what type of .Net project I've created and what DevOps pipeline I should use to build it?

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

I thought ASP.NET Core used .NET Core, so how can it be both ASP.NET Core and (.NET Framework) at the same time?

Use the ASP.NET Core template. That because the template ASP.NET Core (.NET Framework) target for the full .NET Framework

How can I tell exactly what type of .Net project I've created and what DevOps pipeline I should use to build it?

What is the proper way to describe what my project is targeting? ".NET
5.0", ".NET Core", "ASP.NET Core 5.0", "ASP.NET Core", etc?

Personally, the ASP.NET Core 5.0 should be the proper way to describe your project is targeting. That because we could create the Console application with .NET 5.0 or a ASP.NET Core 2.0 project. So, ASP.NET Core 5.0 can accurately describe your project type and target’s .net core version.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply