Ful*_*nal 1 f# functional-programming visual-studio winforms
我正在学习 F#,我只是在尝试构建 Animate 一个钟摆程序。这是代码:https : //rosettacode.org/wiki/Animate_a_pendulum#F.23
据我了解,VS 2019 不支持 F# 中的 WinForms(也许,我错了),所以我有错误消息,试图复制/粘贴该代码:
我该怎么办?
非常感谢 !
如果您希望在 .NET Core 上使用 Winforms,则需要在项目中执行以下操作:
Sdk为Microsoft.NET.Sdk.WindowsDesktopOutputType:<OutputType>WinExe</OutputType>PropertyGroup:<UseWindowsForms>true</UseWindowsForms>没有可视化设计器可供使用,但您应该可以访问 API。