Skip to content

Commit

Permalink
Wpf: Use public key token for WPF resources instead of full key
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensley committed Dec 28, 2024
1 parent 802488c commit 862204a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"request": "launch",
"preLaunchTask": "build-wpf",
"program": "${workspaceFolder}/artifacts/test/Eto.Test.Wpf/${config:var.configuration}/net48/Eto.Test.Wpf.exe",
"targetArchitecture": "x86_64",
"args": [],
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart",
Expand Down
2 changes: 1 addition & 1 deletion src/Eto.Wpf/AssemblyAbsoluteResourceDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ internal static Uri GetAbsolutePackUri(string path, string assemblyName = null)

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

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

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

0 comments on commit 862204a

Please sign in to comment.