.NET CORE CLI for building regular .net applications

Spunny 326 Reputation points
2021-01-07T23:05:49.49+00:00

Hi,
We are using visual studio 2017 and TFS with TeamFoundationVersion Control. We are trying to automate build and deployment using TFS continuous integration and continuous deployment. As part of CI, we were using MSBuild to build ASP.net application, angular JS applications. Now we build new build server and want to try installing new .net core SDK and utilize it's .net core CLI to build.

  1. Can we use .net core CLI to build regular asp.net application and angular js applications. OR
  2. Install .net core SDK and use it's MSBuild option to build regular asp.net application and other applications.

I am not finding any resources or links that discuss about this.
I appreciate your response.

Thank You

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
340 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sara Liu-MSFT 346 Reputation points Microsoft Vendor
    2021-01-08T06:31:44.923+00:00

    Hi Spunny, thank you for your feedback.

    We can use the .net core CLI: dotnet build to build the ASP.NET Core project and an Angular project with ASP.NET Core, it requires the target framework of the project is .net core. Please check this document and we can use .net core CLI: dotnet new to create it and we can also use dotnet build to build.

    Best regards,
    Sara

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments

  2. Spunny 326 Reputation points
    2021-01-08T14:10:38.18+00:00

    @Sara Liu-MSFT
    Thank you for response Sara. What I am asking is I have asp.net application which is not .NET CORE project. It is old regular .NET framework ASP.net application.
    If I install .net core on build agent, can I use .net core cli task to build old asp.net application as part of continuous integration and deploy it?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.