[英]How to create .NET Core 3 (nightly build) app in Visual Studio 2017?
so I know there is nightly SDK build available for .NET Core 3.0. 因此,我知道有每晚可用的.NET Core 3.0 SDK版本。 I decided to give it a go as I will be doing some tutorials about this new framework.
我决定尝试一下,因为我将做一些有关这个新框架的教程。
I installed SDK and ASP.NET Core shared framework from 我从安装了SDK和ASP.NET Core共享框架
https://github.com/dotnet/core/blob/master/daily-builds.md https://github.com/dotnet/core/blob/master/daily-builds.md
I also installed latest prerelease version of Visual Studio 2017. The problem is VS does not have support for .NET Core 3 and gives me error ".NET Core 3 or newer projects are not available in this version of Visual Studio" (the same error also gives me latest official VS 2017, version 15.8.6) 我还安装了Visual Studio 2017的最新预发行版本。问题是VS不支持.NET Core 3,并给我错误:“。NET Core 3或更高版本的项目在此版本的Visual Studio中不可用”(相同的错误还给了我最新的官方VS 2017版本15.8.6)
My question is, how do I create new "Hello World" project targeted with this framework? 我的问题是,如何创建以此框架为目标的新“ Hello World”项目? Do I need to edit JSON or XML files manually to switch them to new framework?
我是否需要手动编辑JSON或XML文件才能将它们切换到新框架? Any help would be really, really appreciated.
任何帮助将是非常,非常感谢。
Thank you. 谢谢。
To create new project using the nightly build of .NET Core 3.0 is only applicable from command prompt, because the current .NET Core 3.0 SDK tooling doesn't support VS 2017 yet. 使用每晚构建的.NET Core 3.0创建新项目仅适用于命令提示符,因为当前的.NET Core 3.0 SDK工具尚不支持VS 2017。
The rough plan is this: integration of .NET Core 3.0 tooling will be available in next release of VS 2017, the VS 2019. 粗略的计划是这样的:.NET Core 3.0工具的集成将在VS 2017的下一个版本VS 2019中提供。
As far as I know until October 2018, there are no definite plans from Microsoft to integrate .NET Core 3.0 into VS 2017 yet. 据我所知,直到2018年10月,微软还没有明确的计划将.NET Core 3.0集成到VS 2017中。
To try to list all available project templates on .NET Core 3.0, you could try dotnet new
command like this: 要尝试列出.NET Core 3.0上所有可用的项目模板,可以尝试使用
dotnet new
命令,如下所示:
dotnet new --list
Example: 例:
dotnet new winforms -n "HelloWinforms"
Good luck and happy coding with .NET Core 3.0! .NET Core 3.0祝您编程愉快!
NOTE: 注意:
Currently there is no guarantee that projects created using the current nightly build of .NET Core 3.0 be compatible when opened in VS 2017. 当前,无法保证使用最新的.NET Core 3.0夜间版本创建的项目在VS 2017中打开时是否兼容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.