question

Spunny-0938 avatar image
0 Votes"
Spunny-0938 asked ·

.NET CORE CLI for building regular .net applications

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



dotnet-cli
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SaraLiu-MSFT avatar image
0 Votes"
SaraLiu-MSFT answered ·

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.





·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Spunny-0938 avatar image
0 Votes"
Spunny-0938 answered ·

@SaraLiu-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?

· 2 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Spunny, thanks for your detailed information and the dotnet cli does not support the old asp.net application, we can check the https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-build and it applies to: ✔️ .NET Core 2.x SDK and later versions, I am sorry for this inconvenience.

0 Votes 0 ·

Thank you Sara. I appeciate your response.

0 Votes 0 ·