diff --git a/CommunityToolkit.App.Shared/Helpers/IconHelper.cs b/CommunityToolkit.App.Shared/Helpers/IconHelper.cs index 99234b7d..9f5d3775 100644 --- a/CommunityToolkit.App.Shared/Helpers/IconHelper.cs +++ b/CommunityToolkit.App.Shared/Helpers/IconHelper.cs @@ -8,7 +8,7 @@ namespace CommunityToolkit.App.Shared.Helpers; public static class IconHelper { - internal const string SourceAssetsPrefix = "ms-appx:///SourceAssets/"; + internal const string SourceAssetsPrefix = "ms-appx:///"; internal const string FallBackControlIconPath = "ms-appx:///Assets/DefaultControlIcon.png"; public static IconElement? GetCategoryIcon(ToolkitSampleCategory category) diff --git a/CommunityToolkit.Tooling.SampleGen/ToolkitSampleMetadataGenerator.Documentation.cs b/CommunityToolkit.Tooling.SampleGen/ToolkitSampleMetadataGenerator.Documentation.cs index 44563b83..eec3be7b 100644 --- a/CommunityToolkit.Tooling.SampleGen/ToolkitSampleMetadataGenerator.Documentation.cs +++ b/CommunityToolkit.Tooling.SampleGen/ToolkitSampleMetadataGenerator.Documentation.cs @@ -156,7 +156,8 @@ private ImmutableArray GatherDocumentFrontMatter(SourceProdu // Get the filepath we need to be able to load the markdown file in sample app. var filepath = file.Path.Split(new string[] { @"\components\", "/components/", @"\tooling\", "/tooling/" }, StringSplitOptions.RemoveEmptyEntries).LastOrDefault(); - var iconpath = (filepath.Split(new string[] { @"\samples\", "/samples/" }, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault() + "\\samples\\" + icon).Replace('\\', '/'); + + var iconpath = icon.Replace('\\', '/'); // Look for sample id tags var matches = MarkdownRegexSampleTag.Matches(content); diff --git a/ProjectHeads/App.Head.props b/ProjectHeads/App.Head.props index dc071d4c..1c6a1177 100644 --- a/ProjectHeads/App.Head.props +++ b/ProjectHeads/App.Head.props @@ -92,10 +92,6 @@ SourceAssets/%(RecursiveDir)%(FileName)%(Extension).dat - - SourceAssets/%(RecursiveDir)%(FileName)%(Extension) - - @@ -104,7 +100,6 @@ -