本文介绍了我可以在Visual Studio 2013上使用.net Core吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.net核心是否可以在Visual Studio 2013上使用?还是只能在Visual Studio 2015上使用?

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

谢谢

推荐答案

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>

然后安装 NuGet软件包和其他.NET Core 5软件包。

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

生成的程序集将能够在任何基于.NET Core 5的框架,包括.NET Framework 4.6,ASP.NET 5和.NET本机。

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.

这篇关于我可以在Visual Studio 2013上使用.net Core吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 09:07