F#的Global.asax - 语言不支持? [英] F# Global.asax -- language not supported?

查看:106
本文介绍了F#的Global.asax - 语言不支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着写一个简单的F#ASP.Net MVC应用程序

Im trying to write a simple F# ASP.Net MVC app

伊夫添加在Global.asax如下:

Ive added the Global.asax as follows

<%@ Application Inherits="WebApplication.Core.Global" Language="F#" %>

然后在一个单独的引用的程序集我有

then in a separate referenced assembly I have

namespace WebApplication.Core  with a type Global() = etc

获得一个F#不支持的语言。

Getting a 'F#' is not a supported language.

我不是能够做到这一点?

Am I not able to do this?

感谢

推荐答案

您需要添加类似下面在web.config中:

You need to add something like below in web.config:

<compiler language="F#;f#;fs;fsharp"
          extension=".fs"
          warningLevel="4"
          type="Microsoft.FSharp.Compiler.CodeDom.FSharpAspNetCodeProvider,
            FSharp.Compiler.CodeDom, Version=1.9.6.2,
            Culture=neutral,
            PublicKeyToken=a19089b1c74d0809">
  <providerOption name="CompilerVersion" value="v3.5" />
  <providerOption name="WarnAsError" value="false" />
</compiler>

来源和更多的细节:<一href=\"http://$c$cbetter.com/matthewpodwysocki/2008/10/07/asp-net-mvc-with-nhaml-f-edition/\">http://$c$cbetter.com/matthewpodwysocki/2008/10/07/asp-net-mvc-with-nhaml-f-edition/

这篇关于F#的Global.asax - 语言不支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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