如何在F#中启用WinForms或WPF项目? [英] How can I enable a WinForms or WPF project in F#?

查看:133
本文介绍了如何在F#中启用WinForms或WPF项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了最新版本的Visual Studio 2017.我选择了F#语言支持和F#桌面支持.重新启动并转到文件"->新建项目"后,我希望看到一个为F#启动新的WPF或WinForms项目的选项,但我没有任何此类选项.仅控制台,库,ASP.NET核心和教程.

I have the very latest version of Visual Studio 2017 installed. I selected F# language support and F# desktop support. After restarting and going to File -> New Project I was expecting to see an option to start a new WPF or WinForms project for F# but I don't have any such options. Only console, library, ASP.NET core, and the tutorial.

如何为F#桌面应用程序启用或找到新的项目模板?

How can I enable or find the new project templates for F# desktop applications?

推荐答案

据我所知,F#上没有WPF或WinForms的开箱即用"模板,但是(至少在VS2015中)有一套WPF应用程序的社区模板集.老实说,您实际上并不需要模板,特别是如果您使用FSXaml项目,则可以很容易地手动完成模板(

As far as I know, there are no "out of the box" templates for WPF or WinForms on F# but (at least in VS2015) there were a set of community templates for WPF apps. To be honest, you don't need a template really, especially if you use the FSXaml project which makes it pretty easy to do it by hand (https://github.com/fsprojects/FsXaml).

这篇关于如何在F#中启用WinForms或WPF项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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