ASP.NET Core 2.1 in Visual Studio 15.6.3 - asp.net-core

Can I work in my ASP.NET Core 2.1 Preview 1 project in Visual Studio 2017 (15.6.3) which is released today? https://learn.microsoft.com/en-us/visualstudio/releasenotes/vs2017-relnotes#15.6.3
I've been using Visual Studio 2017 Preview version to work on my ASP.NET Core 2.1 project up until now -- as this article suggests: https://blogs.msdn.microsoft.com/dotnet/2018/02/27/announcing-net-core-2-1-preview-1/
I want to know if I can switch back to the stable version of Visual Studio 2017 now.

When launching a solution that contains a .NET Core 2.1 project with Visual Studio 15.6.3, there will be the following message:
The link there goes to this page:
.NET Core 2.1 Preview 1
To create or open applications targeting .NET Core 2.1, Visual Studio 2017 15.7 or newer is recommended. Right now 15.7 is only available as a preview, so please use the latest Visual Studio 2017 Preview.
Visual Studio 2017 15.6 supports creating and opening applications targeting .NET Core 2.1, but it contains known issues so 15.7 or newer is recommended.
Visual Studio 2017 15.5 does not support creating or opening applications targeting .NET Core 2.1.
So you can absolutely use VS 15.6 for .NET Core 2.1 projects. In fact, just today I was working on a .NET Core 2.1 project (actually using a daily build), and I did not encounter any issues with my non-preview Visual Studio.
But there may be issues, e.g. with tooling related to scaffolding, so you should be prepared that things might break. But for normal work on an existing code base, there shouldn’t actually be any problems. And you could always fall back to the dotnet CLI for the things that don’t work.
tl;dr With the 15.6.3 update, there is still no official support for .NET Core 2.1 projects but there may be very few issues that will prevent you from actually working with it.

Related

How to get version 2.2 in visual studio for asp.net core

Currently I am using Visual studio 2017 and it that asp.net core. In that there is showing version asp.net core 2.1.
But this is not the latest version for using asp.net core 2.1. So how can I want to use in asp.net core 2.2 in existing visual studio, which is 2017
Shorten Answer:
Suggest you using official website to download ASP.NET Core SDKs and then run the downloaded file to install the SDK. Relaunch the Visual Studio and create a Web Application and then you'll find the ASP.NET Core 2.2.
From the release notes said Visual Studio 2017 support sdk version is end with SDK 2.2.106. Begin with SDK 2.2.203, you need use Visual Studio 2019 version 16.0. So Visual Studio 2017 does not support the latest version of ASP.NET Core 2.2. The latest version that Visual Studio 2017 can download is 2.2.106(Runtime version is 2.2.4).
Besides, the official document does not emphasize the Visual Studio 2017 specific version, it is better to use the latest version. Because if the Visual Stuidio version does not match the SDK version, it will not display ASP.NET Core 2.2 when you create a web application.
For example:
For my 64-bit version of Windows, I will choose the following link to download the sdk:
Note:
ASP.NET Core current release version is .NET 7 preview 1, ASP.NET Core 2.2 is actually an old version.

Visual Studio 2019 Net 5 ASP.NET Core WebApp Error MSB3644 The reference assemblies for .NETFramework,Version=v5.0 were not found

I create a project as per the screenshots and the following error appears when I try to Build or Run.
Error MSB3644 The reference assemblies for .NETFramework,Version=v5.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks WebApplication1 C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 1177
Below is my about screen, shouldn't show with Net Version 5.0 as opposed to Version 4.8.03752?
If I visit the following link:
https://learn.microsoft.com/en-us/dotnet/framework/install/guide-for-developers
It states that my NET version was part of my Visual Studio 2019 (16.3 update)
.NET 5 is actually .NET Core 5 and replaces .NET 4.x. New development continues on the .NET Core line only. .NET Old will only get fixes from now on. That's why you won't see any .NET Old versions beyond 4.8 in Visual Studio.
.NET 5 is supported in the latest Visual Studio version, 16.8. You need to upgrade to the latest version. The final of both .NET 5 and Visual Studio 16.8 were released yesterday during dotNETConf 2020. You can find the first day's sessions in .NET's YouTube channel.
The sessions explain what .NET 5 is, what's new, how to port existing applications from .NET Framework 4.x to .NET 5 including desktop applications like Windows Forms and WPF applications.
Some early .NET 5 previews were supported in 16.7 but the latest previews and RC versions were only supported on 16.8

How do I integrate .NET core with VS 2017, or will it come by default with VS 2017?

i am trying to learn .net core with VS 2017. i dont have any basic idea about .NET Core development. Can any one suggest how can i start my first sample development in Visual Studio 2017?
To start with ASP.NET core, you must have visual studio 2017 installed and download the .Net Core SDK from: https://dotnet.microsoft.com/download/dotnet-core. I recommend that you download version 2.2 for VS 2017.
And have the web development package installed through Visual Studio Installer.
But, it would be better if you already started your studies with the VS 2019.following the same steps above.
VS 2019 already comes with SDKS for .Net core development

How to update Visual Studio 2017 Template from ASP.NET Core 2.0 to 2.1

I have installed Visual Studio 2017 Community Version 15.7.5 2 days back and everything is up-to-date but the version of ASP.Net Core is 2.0 and I need it to be 2.1.
I am unable to find a way to update it to version 2.1. I have also searched the internet but there are ways to upgrade projects not to update this. So any ideas or help would be appreciated
It looks like the SDK for .NET Core 2.1 is not installed. I have recently faced the same issue after .NET Core 2.1 was released.
To solve it, download and install the SDK for .NET Core 2.1 following the steps below. Also, note that you need to run Visual Studio 2017 15.7 or newer version, as specified in the .NET Core 2.1 download page.
Close all running Visual Studio instances.
Download the .NET Core SDK from the Microsoft download page. At the time of writing this answer, you will find version 2.1 to be the latest available.
Run the installer and follow the installation steps.
Run Visual Studio: now you should be able to create .NET Core applications targeting version 2.1.

ASP.NET Core support in Visual Studio 2015?

Now that ASP.NET Core is shipped with VS 2017(getting released on March), How long will they support ASP.NET Core in VS 2015?
I mean project.json will no longer be used, then do we need to move existing projects to VS 2017 and dont use VS 2015 to work with ASP.NET Core.
Visual Studio 2015 will only support .NET Core <= 1.1 (ie. project.json). If you wish to use .csproj based .NET Core projects you will need to use Visual Studio 2017. You can read about the .NET Core Roadmap here.
You can stick with project.json and Visual Studio 2015. But if you want to move to .NET Core 2.0 you will need to open your project with Visual Studio 2017 which can migrate it to the new .csproj format. You can read about the migration process in this blog post.
Visual Studio 2017 will also provide stable RTM tooling for .NET Core 1.0 (note that the tooling in Visual Studio 2015 is only in preview). There is another interesting blog post here which discusses the move to the new project format, Joe Morris from Microsoft confirms there are no plans to have VS 2015 support the build/project system.
Update
With the release of Visual Studio 2019, the latest .NET Core SDKs are not supported in Visual Studio 2015 or 2017. Here is the compatibility matrix: