简体   繁体   English

Visual Studio 2017 v15.5.0中的F#项目类型

[英]F# project types in Visual Studio 2017 v15.5.0

I upgraded VS2017 to v15.5 today and I'm no longer able to create an F# project that uses plain old .NET Framework. 我今天将VS2017升级到v15.5,我不再能够创建一个使用普通旧.NET Framework的F#项目。 The main options that I now see are: 我现在看到的主要选项是:

  • Console App (.NET Core) 控制台应用程序(.NET Core)
  • Class Library (.NET Standard) 类库(.NET标准)

There are also a bunch of other project types under .NET Core. .NET Core下还有许多其他项目类型。 I'm working in an existing solution with projects that target .NET Framework 4.6.1, so I'd like to create a new project that's consistent with these. 我正在使用面向.NET Framework 4.6.1的项目的现有解决方案,所以我想创建一个与这些一致的新项目。 Also, I'd like the option of using WPF and other Windows-specific features. 此外,我想选择使用WPF和其他Windows特有的功能。 Is that no longer possible with F#? F#不再可能吗?

Found the problem: I had "F# language support" installed, but needed to add "F# desktop language support" in 15.5. 发现问题:我安装了“F#语言支持”,但需要在15.5中添加“F#桌面语言支持”。 It looks like the installer deselects this option by default, even when upgrading an installation that actually has these project types. 默认情况下,安装程序似乎取消选择此选项,即使在升级实际具有这些项目类型的安装时也是如此。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM