Comments (3)
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.
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.
Issue #34 was marked as a duplicate of this issue.
Original comment by: IntelliFactory
from core.
Related Issues (20)
- A wildcard endpoint should not require trailing elements HOT 3
- WebSharper compiler issue for referenced project HOT 1
- System.Type proxy
- Add JS.Verbatim and JS.Html helpers HOT 3
- Record constructor is incorrectly translated HOT 2
- npm package name validation HOT 1
- Change how RPC endpoints are exposed HOT 4
- Extendibility for WebSharper.Json
- Switch to header-based authentication
- Allow records for remoting
- Query parameters in EndPoints
- Printing compiler statistics HOT 1
- Missing optimization in RPC shim
- Use the WS icon for the Booster
- Metadata decode optimization
- Use symmetric JSON de/serialization for Web.Control initialization HOT 2
- Add ImportFile helper for WIG
- Inconsistent build behavior when using the Booster
- FCS 43.7.400 and ParallelOptimization HOT 11
- Add support for `SPAEntryPoint` in library projects
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.