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?
Asked
Active
Viewed 4,438 times
2
-
in your task catlog you need to find the .Net Core Preview and add it to ur project – Krsna Kishore Sep 01 '17 at 04:33
-
Yes and that's the problem I mentioned in my question. It's not there. – Élodie Petit Sep 01 '17 at 05:33
-
show us screeshot , how ur page appears to be – Krsna Kishore Sep 01 '17 at 05:37
-
@Webruster Here it is. No ASP.Net Core Task in this window. https://snag.gy/R7AeWh.jpg – Élodie Petit Sep 01 '17 at 06:31
-
have you gone through [this link](https://stackoverflow.com/questions/41674009/visual-studio-team-services-build-net-core-1-1) – Krsna Kishore Sep 01 '17 at 06:38
-
I guess that doesn't apply. The link in my question shows the ASP.Net Core (PREVIEW) option clearly which I can't find anywhere. – Élodie Petit Sep 01 '17 at 06:48
-
this might be a dumb question --> , are you opening in the web browser ? because i could see that option while opening in web-browser – Krsna Kishore Sep 01 '17 at 07:02
-
Yes, I'm opening in the browser :-) – Élodie Petit Sep 01 '17 at 07:10
-
weird , i can see that option when i opened in my browser... your screenshot is showing like it was taken from windows.. – Krsna Kishore Sep 01 '17 at 07:17
-
@ÉlodiePetit What's the exact version of TFS do you use? The template added in TFS 2017 update1 and later version. – Andy Li-MSFT Sep 01 '17 at 07:31
1 Answers
2
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

Andy Li-MSFT
- 28,712
- 2
- 33
- 55
-
1After updating TFS, I could finally see the ASP.NET Core option. Thank you :-) – Élodie Petit Sep 02 '17 at 05:56