Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd98b315

Browse files
committed
Fix to allow F# silverlight project template to build with F# 4.0 versioning.
The compiler has custom version detection logic which relies on old versioing at the moment. Updating it so that it understands the new versioning, as well. (changeset 1363547)
1 parent805e0b2 commitd98b315

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/fsharp/build.fs‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2441,8 +2441,10 @@ type TcConfig private (data : TcConfigBuilder,validate:bool) =
24412441
// the versions mismatch, however they are allowed to mismatch in one case:
24422442
if primaryAssemblyIsSilverlight&& mscorlibMajorVersion=5// SL5
24432443
&&(match explicitFscoreVersionToCheckOptwith
2444-
| Some(v1,v2,v3,_)-> v1=2us&& v2=3us&& v3=5us// we build SL5 against portable FSCore 2.3.5.0
2445-
| None->true)// the 'None' code path happens after explicit FSCore was already checked, from now on SL5 path is always excepted
2444+
| Some(2us,3us,5us,_)// silverlight is supported for FSharp.Core 2.3.5.x and 3.47.x.y
2445+
| Some(3us,47us,_,_)
2446+
| None->true// the 'None' code path happens after explicit FSCore was already checked, from now on SL5 path is always excepted
2447+
|_->false)
24462448
then
24472449
()
24482450
else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp