Giter VIP home page Giter VIP logo

Comments (3)

intellifactory-bb avatar intellifactory-bb commented on July 20, 2024

The issue is that .NET 4.5 beta has F# core library FSharp.Core versioned 4.3.0.0 (F# 3.0) and .NET 4.0 has FSharp.Core 4.0.0.0. To make sure all F#-dependent code works together in an ASP.NET project, the Web.config must include binding redirects that make the runtime converge on a single version of FSharp.Core.

Unfortunately I have not found a way to make a versatile Web.config that would work in all environments: targeting .NET 4.0 without F# 3.0 installed, targeting .NET 4.5 without F# 2.0 installed, and combinations.

I am currently experimenting with different assembly binding redirects trying to find a common denominator.

In the meanwhile the workaround is very simple:

  • If you are building for .NET 4.0 and using F# 2.0 stick to the defaults;
  • If you want to use WebSharper with F# 3.0 and build for .NET 4.5, edit Web.config and set redirects to the following:

{{{
#!xml














}}}


Original comment by: IntelliFactory

from core.

intellifactory-bb avatar intellifactory-bb commented on July 20, 2024

The latest code resolves the problem by making VS 2011 templates use .NET 4.5 by default and VS 2010 templates use .NET 3.5. In addition, at install time we detect if FSharp.Core 4.3.0.0 is present or not, and if yes, use that as the default redirect in all executable configuration files such as WebSharper.exe.config, if not, fall back to 4.0.0.0.


Original comment by: IntelliFactory

from core.

intellifactory-bb avatar intellifactory-bb commented on July 20, 2024

Issue #34 was marked as a duplicate of this issue.


Original comment by: IntelliFactory

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.