Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use .net core on visual studio 2013

Tags:

Is, or will .net core be available to use on visual studio 2013? Or it will be available only on visual studio 2015?

Thanks

like image 427
Panagiotis Lefas Avatar asked Mar 16 '15 19:03

Panagiotis Lefas


People also ask

What version of Visual Studio do I need for .NET Core?

NET Core 3.0, you will need to use Visual Studio version 16.3 or greater.

What is the .NET Framework for Visual Studio 2013?

NET Framework. Visual Studio 2013 provides enhanced support for prototyping, designing, and modeling and improved testing tools that let developers build Windows, web, and cloud applications.

Does Visual Studio use .NET Core?

NET Core 3.1 is automatically installed when you install Visual Studio for Mac. For more information about versions of . NET Core supported in Visual Studio for Mac, see Supported versions of .


1 Answers

Yes, it's possible to build against the .NET Core 5 contracts in Visual Studio 2013 by creating a Portable Class Library that targets .NET Framework 4.5 and Windows 8. You'll need to manually edit the .csproj file and add the following.

<PropertyGroup>     <ImplicitlyExpandTargetFramework>false</ImplicitlyExpandTargetFramework> </PropertyGroup> 

Then install the System.Runtime NuGet package and other .NET Core 5 packages.

The resulting assembly will be able to execute on any .NET Core 5-based framework including .NET Framework 4.6, ASP.NET 5 & .NET Native.

Note, this is the same technique used to build the .NET Core assemblies in the corefx repository.

like image 85
bricelam Avatar answered Oct 03 '22 17:10

bricelam