mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 17:59:17 +00:00
@@ -9,7 +9,6 @@
|
||||
<SignAssembly>false</SignAssembly>
|
||||
<UseWPF>true</UseWPF>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
|
||||
@@ -77,30 +76,18 @@
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.3240.44">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Resources\**\*">
|
||||
<LogicalName>QuickLook.Plugin.MarkdownViewer.Resources.%(RecursiveDir)%(Filename)%(Extension)</LogicalName>
|
||||
</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>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\GitVersion.cs">
|
||||
<Link>Properties\GitVersion.cs</Link>
|
||||
|
Reference in New Issue
Block a user