Skip to content

Commit aeff343

Browse files
authored
Merge pull request #2718 from cwensley/curtis/wpf-use-token-instead-of-full-public-key
Wpf: Use public key token for WPF resources instead of full key
2 parents 802488c + 862204a commit aeff343

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.vscode/launch.json

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
"request": "launch",
9999
"preLaunchTask": "build-wpf",
100100
"program": "${workspaceFolder}/artifacts/test/Eto.Test.Wpf/${config:var.configuration}/net48/Eto.Test.Wpf.exe",
101+
"targetArchitecture": "x86_64",
101102
"args": [],
102103
"console": "internalConsole",
103104
"internalConsoleOptions": "openOnSessionStart",

src/Eto.Wpf/AssemblyAbsoluteResourceDictionary.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ internal static Uri GetAbsolutePackUri(string path, string assemblyName = null)
1919

2020
var version = "v" + name.Version.ToString() + ";";
2121

22-
var publicKey = name.GetPublicKey();
22+
var publicKey = name.GetPublicKeyToken();
2323
var publicKeyString = publicKey?.Length > 0 ? BitConverter.ToString(publicKey).Replace("-", "") + ";" : null;
2424

2525
return new Uri($"pack://application:,,,/{name.Name};{version}{publicKeyString}component/{path}", UriKind.Absolute);

0 commit comments

Comments
 (0)