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

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

问题描述

.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 存储库中构建 .NET Core 程序集的技术相同.

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

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

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