Using .NET Core SDK 2.1.0-rc1 with TFS Build

So .NET Core 2.1 RC is out. With its Go Live Support I am fairly confident that I could upgrade my super secret project.

Upgrading my projects was easy.

I download and installed the 2.1.300-RC1 from https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.300-rc1  and for VS2017 it should also show on your notifications window by the way.

5

Once my tools are upgraded I then did some minor changes on all of my CSPROJ.

Make sure that the target framework is 2.1 and the Package Reference version is 2.1.0-rc1-final. Rebuild and viola, .NET Core 2.1.  Here’s an example of one of my API’s.

image

I would not cover the other new and shiny things about .NET Core 2.1-RC like the one from Preview1 and Preview2 but certainly you can look it up here: https://blogs.msdn.microsoft.com/webdev/2018/04/12/asp-net-core-2-1-0-preview2-now-available/

Publishing to Azure

So now for the harder part. I saw from a blog post that Azure App Service will start deploying 2.1 RC next week.

NEXT WEEK DAW

https://blogs.msdn.microsoft.com/webdev/2018/05/07/asp-net-core-2-1-0-rc1-now-available/

But the the impatient me, went ahead used the .NET Core Tool Installer.

image

I used the name from the release notes https://github.com/dotnet/core/blob/master/release-notes/releases.csv

Broke my build saying that the .NET Core Package name is wrong.

But I saw this GitHub Issue thread that says use “To use 2.1.0-RC -> to download SDK, use “2.1.300-rc1-008673”. And to download runtime, use “2.1.0-rc1”.

https://github.com/Microsoft/vsts-tasks/issues/7032

Viola! That works!

image

Now for the fun part.

Using UseHttpsRedirection and HTTPClient Extensions!

That’s all for now!

Advertisements

Published by

johndelizo

John is currently creating digital assets that protects people and their future, a technical trainer and a full time geek specializing on development and deployment of innovations created with .NET framework on Windows platform as well as Windows infrastructure projects. He is the primary contact of the Philippine Windows Users Group, a contributor at the Microsoft Philippines Community forums and regularly conducts community sessions as well as other Microsoft technology events. John owns the Busy Saving The World Techblog.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s