Skip to content

Commit

Permalink
fix: pack scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
emako committed Sep 30, 2024
1 parent c7610e3 commit 1e5e4e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Flurib/FluriBuilder.Pack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public FluriBuilder CreatePackUri(string packUriPath)

/// <summary>
/// Create a resource URI
/// pack://application:,,,/Assets/Images/logo.ico
/// </summary>
/// <param name="resourcePath"></param>
/// <returns></returns>
Expand All @@ -30,13 +31,14 @@ public FluriBuilder CreateResourceUri(string resourcePath)

/// <summary>
/// Create a cross-assembly resource URI
/// pack://application:,,,/Flurib;component/Assets/Images/logo.ico
/// </summary>
/// <param name="assemblyName"></param>
/// <param name="resourcePath"></param>
/// <returns></returns>
public FluriBuilder CreateAssemblyResourceUri(string assemblyName, string resourcePath)
{
IrregularUri = new Uri($"{UriSchemePack}://application:,,,/,{assemblyName};component/{resourcePath}", UriKind.Absolute);
IrregularUri = new Uri($"{UriSchemePack}://application:,,,/{assemblyName};component/{resourcePath}", UriKind.Absolute);
return this;
}
}

0 comments on commit 1e5e4e5

Please sign in to comment.