可以XSP运行ASP.NET 4.5? [英] Can XSP run ASP.NET 4.5?

查看:860
本文介绍了可以XSP运行ASP.NET 4.5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图推出MVC5现在没有成功下单(取决于.NET 4.5)天。

配置


  • 清洁安装最新的Lubuntu

  • 无previous XSP /单声道

  • 编译并从最新的Git源代码安装XSP /单声道

  • 单声道版本:3.2.7

问题

当我运行 xsp4 上显示有任何文件夹版本信息:3.2.7(主/ 1eef047ç11月28日18点16分30秒EET 2013年); ASP.NET版本:4.0.30319.17020



最新单版本支持.NET 4.5,请问XSP?


如果是这样,我怎么能保证它是使用4.5而不是4.0?

即使我直接从单声道4.5文件夹运行XSP( /usr/lib/mono/4.5/xsp4.exe ),这表明ASP.NET版本为4.0。

此外,的/ usr / bin中/ xsp4 XSP的配置行看起来像这样。我很困惑。

 #!/ bin / sh的
EXEC的/ usr / bin中/单声道$ MONO_OPTIONS/usr/lib/mono/4.5/xsp4.exe$ @


解决方案

您可以指示单声道推出的特定运行库版本 - 运行标记。在这种情况下,这将是这样的:

 #!/ bin / sh的
EXEC的/ usr / bin中/单声道$ MONO_OPTIONS --runtime = V4.5/usr/lib/mono/4.5/xsp4.exe$ @

不过,据我了解,.NET的4.5配置文件不包含在运行时更改,但在类库和编译器。因此,如果上述不起作用,它只是意味着一个人需要使用运行4.5应用程序的运行的版本简直是在 4.0.30319 版本。

要了解这一点的最好办法是包括这个小图片的图从<一抓起href=\"http://www.hanselman.com/blog/NETVersioningAndMultiTargetingNET45IsAnInplaceUpgradeToNET40.aspx\"相对=nofollow>斯科特Hanselman的博客帖子:

I've been trying to launch MVC5 (depends on .NET 4.5) under Mono for days now and with no success.

Configuration

  • Clean install of latest Lubuntu
  • No previous XSP/Mono
  • Compile and install XSP/Mono from latest git sources
  • Mono version: 3.2.7

Problem

When I run xsp4 on any folder it shows Version Information: 3.2.7 (master/1eef047 C nov 28 18:16:30 EET 2013); ASP.NET Version: 4.0.30319.17020.


Latest Mono version supports .NET 4.5, does XSP?
If so, how can I make sure that it is using 4.5 instead of 4.0?

Even if I run XSP directly from Mono 4.5 folder (/usr/lib/mono/4.5/xsp4.exe) it shows ASP.NET version is 4.0.

Also, XSP config line in /usr/bin/xsp4 looks like so. I'm very confused.

#!/bin/sh
exec /usr/bin/mono $MONO_OPTIONS "/usr/lib/mono/4.5/xsp4.exe" "$@"

解决方案

You can instruct mono to launch a particular runtime version with the --runtime flag. In this case, it would be this way:

#!/bin/sh
exec /usr/bin/mono $MONO_OPTIONS --runtime=v4.5 "/usr/lib/mono/4.5/xsp4.exe" "$@"

However, as far as I understand, the 4.5 profile of .NET doesn't include changes in the runtime, but in the class libraries and compilers. So if the above doesn't work, it simply means that the version of the runtime that one needs to use to run a 4.5 application is simply the 4.0.30319 version.

The best way to understand this is to include this little image diagram grabbed from a Scott Hanselman's blog post:

这篇关于可以XSP运行ASP.NET 4.5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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