mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 10:19:07 +00:00
Add update mechanism to MarkdownViewer resources, move link opening behavior to WebpagePanel
This commit is contained in:
@@ -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 "$(MSBuildThisFileDirectory)GenerateEmbeddedResourcesHash.ps1" -ResourcesDir "$(MSBuildThisFileDirectory)Resources" -OutputFile "$(HashFilePath)"" />
|
||||
|
||||
<!-- Include the generated file in compilation -->
|
||||
<ItemGroup>
|
||||
<Compile Include="$(HashFilePath)" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
</Project>
|
Reference in New Issue
Block a user