Élodie Petit
Élodie Petit

Reputation: 5914

How to build ASP.NET Core 2 app in TFS

I'm trying to create a build definition for my ASP.NET Core 2 app in TFS to no avail. As per the documentation (https://www.visualstudio.com/en-us/docs/build/apps/aspnet/ci/build-aspnet-core), there should be a template named ASP.NET Core (PREVIEW) in TFS but I can't seem to find one. I installed VS 2017 Enterprise on the TFS server and choose ASP.Net development components while installing but the template didn't show up. What am I missing here?

Upvotes: 2

Views: 4530

Answers (1)

Andy Li-MSFT
Andy Li-MSFT

Reputation: 30372

Please check the version of TFS, see What version of Team Foundation Server do I have?

Based on my test, the template ASP.NET Core (PREVIEW) shown in TFS 2017 update1 and later version. If your TFS is the early version, you can upgrade it to the TFS 2017 update1 or later version. You can get TFS from here.

Or you can add the following tasks directly with empty template and set the arguments accordingly based on this article:Build your ASP.NET Core app:

Utility: Command Line
Build: Visual Studio Build
Utility: Command Line
Test: Visual Studio Test
Utility: Archive Files
Utility: Publish Build Artifacts

Upvotes: 2

Related Questions