Skip to content

Commit 521ad85

Browse files
authored
Merge pull request fsharp#657 from dsyme/fix-656
Fix 656 - no access to the given key
2 parents de709b3 + 5ba38f1 commit 521ad85

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

CHANGELOG-fsharp.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
4.0.1.21
2+
* Fix [#656](https://github.com/fsharp/fsharp/issues/656) - error FS0193: internal error: No access to the given key
3+
14
4.0.1.20
25
* Fix #639 - Problems with F# scripts on Mono
36

appveyor.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# the version under development, update after a release
3-
$version = '4.0.1.20'
3+
$version = '4.0.1.21'
44

55
function isVersionTag($tag){
66
$v = New-Object Version

src/fsharp/MSBuildReferenceResolver.fs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ module internal Microsoft.FSharp.Compiler.MSBuildReferenceResolver
111111

112112
/// Use MSBuild to determine the version of the highest installed framework.
113113
let HighestInstalledNetFrameworkVersion() =
114+
try
114115
#if MSBUILD_AT_LEAST_14
115116
if box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version461)) <> null then Net461
116117
elif box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version46)) <> null then Net46
@@ -121,7 +122,8 @@ module internal Microsoft.FSharp.Compiler.MSBuildReferenceResolver
121122
if box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version451)) <> null then Net451
122123
#endif
123124
elif box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version45)) <> null then Net45
124-
else Net40 // version is 4.0 assumed since this code is running.
125+
else Net45 // version is 4.0 assumed since this code is running.
126+
with _ -> Net45
125127

126128
/// Derive the target framework directories.
127129
let DeriveTargetFrameworkDirectories (targetFrameworkVersion:string, logMessage) =

0 commit comments

Comments
 (0)