Add update mechanism to MarkdownViewer resources, move link opening behavior to WebpagePanel

This commit is contained in:
KamilDev
2024-12-06 01:48:58 +11:00
parent cf7b6ad46f
commit ec62cb4238
5 changed files with 474 additions and 192 deletions

View File

@@ -75,4 +75,22 @@
</EmbeddedResource>
</ItemGroup>
<Target Name="GenerateEmbeddedResourcesHash" BeforeTargets="CoreCompile">
<PropertyGroup>
<HashFileDir>$(IntermediateOutputPath)Generated</HashFileDir>
<HashFilePath>$(HashFileDir)\EmbeddedResourcesHash.cs</HashFilePath>
</PropertyGroup>
<!-- Create the output directory -->
<MakeDir Directories="$(HashFileDir)" />
<!-- Run a script to calculate hash and generate code file -->
<Exec Command="powershell.exe -NoProfile -ExecutionPolicy Bypass -File &quot;$(MSBuildThisFileDirectory)GenerateEmbeddedResourcesHash.ps1&quot; -ResourcesDir &quot;$(MSBuildThisFileDirectory)Resources&quot; -OutputFile &quot;$(HashFilePath)&quot;" />
<!-- Include the generated file in compilation -->
<ItemGroup>
<Compile Include="$(HashFilePath)" />
</ItemGroup>
</Target>
</Project>