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

Commit56610cc

Browse files
majochaKevinRansom
authored andcommitted
Install directory probed for assemblies when loading ResourceDictionary (#2968)
1 parent3711013 commit56610cc

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

‎vsintegration/src/FSharp.Editor/Common/AssemblyInfo.fs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ open Microsoft.VisualStudio.Shell
1414

1515
do()
1616

17+
// This is needed to load XAML resource dictionaries from FSharp.UIResources assembly because ProvideCodeBase attribute does not work for that purpose.
18+
// This adds $PackageFolder$ to the directories probed for assemblies to load.
19+
// The attribute is inexplicably class-targeted, hence the dummy class.
20+
[<ProvideBindingPath>]
21+
typeprivateBindingPathForUIResources=classend

‎vsintegration/src/FSharp.Editor/QuickInfo/Views.fs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ type internal QuickInfoViewProvider
4444
glyphService: IGlyphService
4545
)=
4646

47-
do Application.ResourceAssembly<- typeof<Microsoft.VisualStudio.FSharp.UIResources.Strings>.Assembly
48-
49-
letstyles= ResourceDictionary(Source= Uri("HyperlinkStyles.xaml", UriKind.Relative))
47+
letstyles= ResourceDictionary(Source= Uri(@"/FSharp.UIResources;component/HyperlinkStyles.xaml", UriKind.Relative))
5048

5149
letgetStyle():Style=
5250
letkey=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp