我可以在Visual Studio 2013上使用.net Core吗 [英] Can I use .net core on visual studio 2013

查看:1457
本文介绍了我可以在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?

谢谢

推荐答案

<是,可以通过创建针对.NET Framework 4.5和Windows 8的可移植类库来在Visual Studio 2013中针对.NET Core 5合同进行构建。您需要手动编辑.csproj文件并添加以下内容。

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>

然后安装 System.Runtime 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.

请注意,这与在 corefx 存储库。

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

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

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆