Skip to content

Commit

Permalink
Merge pull request #2718 from cwensley/curtis/wpf-use-token-instead-o…
Browse files Browse the repository at this point in the history
…f-full-public-key

Wpf: Use public key token for WPF resources instead of full key
  • Loading branch information
cwensley authored Dec 28, 2024
2 parents 802488c + 862204a commit aeff343
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 aeff343

Please sign in to comment.