@@ -148,23 +148,26 @@ public static DateTime GetReleaseDate()
148
148
return __releaseDate ;
149
149
}
150
150
151
- private static string referenceAssembyPath ;
152
- public static string ReferenceAssembyPath
151
+ [ Obsolete ( "Use ReferenceAssemblyPath" ) ]
152
+ public static string ReferenceAssembyPath => ReferenceAssemblyPath ;
153
+
154
+ private static string referenceAssemblyPath ;
155
+ public static string ReferenceAssemblyPath
153
156
{
154
157
get
155
158
{
156
- if ( ! IsMono && referenceAssembyPath == null )
159
+ if ( ! IsMono && referenceAssemblyPath == null )
157
160
{
158
161
var programFilesPath = PclExport . Instance . GetEnvironmentVariable ( "ProgramFiles(x86)" ) ?? @"C:\Program Files (x86)" ;
159
162
var netFxReferenceBasePath = programFilesPath + @"\Reference Assemblies\Microsoft\Framework\.NETFramework\" ;
160
163
if ( ( netFxReferenceBasePath + @"v4.5.2\" ) . DirectoryExists ( ) )
161
- referenceAssembyPath = netFxReferenceBasePath + @"v4.5.2\" ;
164
+ referenceAssemblyPath = netFxReferenceBasePath + @"v4.5.2\" ;
162
165
else if ( ( netFxReferenceBasePath + @"v4.5.1\" ) . DirectoryExists ( ) )
163
- referenceAssembyPath = netFxReferenceBasePath + @"v4.5.1\" ;
166
+ referenceAssemblyPath = netFxReferenceBasePath + @"v4.5.1\" ;
164
167
else if ( ( netFxReferenceBasePath + @"v4.5\" ) . DirectoryExists ( ) )
165
- referenceAssembyPath = netFxReferenceBasePath + @"v4.5\" ;
168
+ referenceAssemblyPath = netFxReferenceBasePath + @"v4.5\" ;
166
169
else if ( ( netFxReferenceBasePath + @"v4.0\" ) . DirectoryExists ( ) )
167
- referenceAssembyPath = netFxReferenceBasePath + @"v4.0\" ;
170
+ referenceAssemblyPath = netFxReferenceBasePath + @"v4.0\" ;
168
171
else
169
172
{
170
173
var v4Dirs = PclExport . Instance . GetDirectoryNames ( netFxReferenceBasePath , "v4*" ) ;
@@ -176,7 +179,7 @@ public static string ReferenceAssembyPath
176
179
}
177
180
if ( v4Dirs . Length > 0 )
178
181
{
179
- referenceAssembyPath = v4Dirs [ v4Dirs . Length - 1 ] + @"\" ; //latest v4
182
+ referenceAssemblyPath = v4Dirs [ v4Dirs . Length - 1 ] + @"\" ; //latest v4
180
183
}
181
184
else
182
185
{
@@ -186,9 +189,9 @@ public static string ReferenceAssembyPath
186
189
}
187
190
}
188
191
}
189
- return referenceAssembyPath ;
192
+ return referenceAssemblyPath ;
190
193
}
191
- set => referenceAssembyPath = value ;
194
+ set => referenceAssemblyPath = value ;
192
195
}
193
196
194
197
#if NETSTANDARD2_0
0 commit comments