简体   繁体   English

如何安装F#并从ASPX页面使用它

[英]How to install F# and use it from aspx page

I am looking for simple answer about installation but without .msi and Visual Studio. 我正在寻找有关安装的简单答案,但没有.msi和Visual Studio。

I don't use VS, I put dll files inside bin folder, write something to web.config and put import in a page. 我不使用VS,我将dll文件放在bin文件夹中,将一些内容写入web.config然后将导入web.config放入页面中。

But for F#, I can't find anything about it, if I find it, its useless for last version of F#. 但是对于F#,我找不到任何有关F#的信息,如果找到的话,它对F#的最新版本毫无用处。

Same goes for IronPython, and many others :) IronPython和其他许多版本也是如此:)

If anyone is using asp.net in this "strange" "not normal" way like me, maybe can help 如果有人像我一样以这种“奇怪”“不正常”的方式使用asp.net,也许可以帮助您

Thank you 谢谢

The PowerPack includes a CodeDom provider, but generally speaking, you will be unsuccessful using F# directly to create a WebForms application. PowerPack包含一个CodeDom提供程序,但是通常来说,直接使用F#创建WebForms应用程序将失败。 You can create your code behind files in a separate F# library and reference those types in your C# WebForms pages. 您可以在单独的F#库中的文件后面创建代码,并在C#WebForms页面中引用这些类型。 Dan Mohl has several such templates available on nuget.org. Dan Mohl在nuget.org上有几个可用的模板。 Despite much pleading from the F# community, this is the current best approach. 尽管F#社区提出了很多要求,但这是当前的最佳方法。

If you want more F#-like approaches, check out figment , WebSharper , and frank . 如果您想要更多类似 F#的方法,请查看figmentWebSharperfrank

You cannot use F# in aspx. 您不能在aspx中使用F#。

ASP.Net only allows three languages C# or VB or J# ASP.Net仅允许三种语言C#VBJ#

For more information please read: - 有关更多信息,请阅读:-

Programming Languages in ASP.NET ASP.NET中的编程语言

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

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