简体   繁体   English

如何在Visual Studio 2017中创建.NET Core 3(每晚构建)应用程序?

[英]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.

相关问题 Visual Studio 2017中的ASP.NET Core Angular模板无法使用“ SyntaxError:意外令牌”生成 - ASP.NET Core Angular template in Visual Studio 2017 fails to build with “SyntaxError: Unexpected token” Visual Studio 2017 ASP.Net发布自包含的点网核心应用程序 - Visual Studio 2017 ASP.Net Publish Self-Contained Dot Net Core App 创建F#ASP.NET Core Web应用程序需要什么Visual Studio 2017选项? - What Visual Studio 2017 option is required to create an F# ASP.NET Core Web Application? Visual Studio 2017 不会在 ASP.NET Core MVC 项目中创建新的空 MVC 控制器 - Visual Studio 2017 does not create a new empty MVC controller in ASP.NET Core MVC project 无法在Visual Studio 2017中创建“Asp.Net核心Web应用程序” - Not able to create “Asp.Net Core Web application” in Visual Studio 2017 Visual Studio 2017无法调试.Net核心Web API? - Visual studio 2017 cannot debug .Net core web api? 从Visual Studio 2017运行ASP.NET Core项目 - Run ASP.NET Core Project from Visual Studio 2017 Net Core Connection String Dapper视觉工作室2017 - Net Core Connection String Dapper visual studio 2017 使用Visual Studio 2017的Asp Net Core 2.0的Crystal报表 - Crystal Report for Asp Net Core 2.0 With Visual Studio 2017 Visual Studio 2017 15.7.2 - 缺少 ASP.NET Core 应用程序 - Visual Studio 2017 15.7.2 - ASP.NET Core Application is missing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM