This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,12 @@ public static string ReferenceAssembyPath
80
80
{
81
81
var programFilesPath = PclExport . Instance . GetEnvironmentVariable ( "ProgramFiles(x86)" ) ?? @"C:\Program Files (x86)" ;
82
82
var netFxReferenceBasePath = programFilesPath + @"\Reference Assemblies\Microsoft\Framework\.NETFramework\" ;
83
- if ( ( netFxReferenceBasePath + @"v4.0 \" ) . DirectoryExists ( ) )
84
- referenceAssembyPath = netFxReferenceBasePath + @"v4.0 \" ;
85
- if ( ( netFxReferenceBasePath + @"v4.5\" ) . DirectoryExists ( ) )
83
+ if ( ( netFxReferenceBasePath + @"v4.5.1 \" ) . DirectoryExists ( ) )
84
+ referenceAssembyPath = netFxReferenceBasePath + @"v4.5.1 \" ;
85
+ else if ( ( netFxReferenceBasePath + @"v4.5\" ) . DirectoryExists ( ) )
86
86
referenceAssembyPath = netFxReferenceBasePath + @"v4.5\" ;
87
+ else if ( ( netFxReferenceBasePath + @"v4.0\" ) . DirectoryExists ( ) )
88
+ referenceAssembyPath = netFxReferenceBasePath + @"v4.0\" ;
87
89
else
88
90
throw new FileNotFoundException (
89
91
"Could not infer .NET Reference Assemblies path, e.g '{0}'.\n " . Fmt ( netFxReferenceBasePath + @"v4.0\" ) +
You can’t perform that action at this time.
0 commit comments