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

Commitc60fda2

Browse files
committed
Another fix to last checkin
1 parent41aa28c commitc60fda2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/fsharp/ReferenceResolution.fs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,17 +206,17 @@ module internal MSBuildResolver =
206206
#if BUILDING_WITH_LKG
207207
ignore targetProcessorArchitecture
208208
#else
209-
209+
lettargetedRuntimeVersionValue= typeof<obj>.Assembly.ImageRuntimeVersion
210210
#if CROSS_PLATFORM_COMPILER
211211
// The properties TargetedRuntimeVersion and CopyLocalDependenciesWhenParentReferenceInGac
212212
// are not available to the cross-platform compiler since they are Windows only (not defined in the Mono
213213
// 4.0 XBuild support). So we only set them if available (to avoid a compile-time dependency).
214214
letrunningOnMono=try System.Type.GetType("Mono.Runtime")<>nullwith e->false
215215
ifnot runningOnMonothen
216-
typeof<ResolveAssemblyReference>.InvokeMember("TargetedRuntimeVersion",(BindingFlags.Instance||| BindingFlags.SetProperty||| BindingFlags.Public),null,rar,[| boxtrv|])|> ignore
216+
typeof<ResolveAssemblyReference>.InvokeMember("TargetedRuntimeVersion",(BindingFlags.Instance||| BindingFlags.SetProperty||| BindingFlags.Public),null,rar,[| boxtargetedRuntimeVersionValue|])|> ignore
217217
typeof<ResolveAssemblyReference>.InvokeMember("CopyLocalDependenciesWhenParentReferenceInGac",(BindingFlags.Instance||| BindingFlags.SetProperty||| BindingFlags.Public),null,rar,[| boxtrue|])|> ignore
218218
#else
219-
rar.TargetedRuntimeVersion<-typeof<obj>.Assembly.ImageRuntimeVersion
219+
rar.TargetedRuntimeVersion<-targetedRuntimeVersionValue
220220
rar.CopyLocalDependenciesWhenParentReferenceInGac<-true
221221
#endif
222222
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp