/ src / modules / previewpane / MarkdownPreviewHandler / MarkdownPreviewHandler.csproj
MarkdownPreviewHandler.csproj
 1  <Project Sdk="Microsoft.NET.Sdk">
 2    <!-- Look at Directory.Build.props in root for common stuff as well -->
 3    <Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
 4    <Import Project="$(RepoRoot)src\Common.SelfContained.props" />
 5    <Import Project="$(RepoRoot)src\Common.Dotnet.AotCompatibility.props" />
 6  
 7    <PropertyGroup>
 8      <ImplicitUsings>enable</ImplicitUsings>
 9      <UseWindowsForms>true</UseWindowsForms>
10      <AssemblyTitle>PowerToys.MarkdownPreviewHandler</AssemblyTitle>
11      <AssemblyDescription>PowerToys MarkdownPreviewHandler</AssemblyDescription>
12      <Description>PowerToys MarkdownPreviewHandler</Description>
13      <DocumentationFile>..\..\..\..\$(Platform)\$(Configuration)\MarkdownPreviewPaneDocumentation.xml</DocumentationFile>
14      <OutputPath>$(RepoRoot)$(Platform)\$(Configuration)</OutputPath>
15      <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
16      <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
17      <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
18      <GenerateSatelliteAssembliesForCore>true</GenerateSatelliteAssembliesForCore>
19      <ApplicationHighDpiMode>PerMonitorV2</ApplicationHighDpiMode>
20    </PropertyGroup>
21  
22    <PropertyGroup>
23      <ProjectGuid>{6A71162E-FC4C-4A2C-B90F-3CF94F59A9BB}</ProjectGuid>
24      <RootNamespace>Microsoft.PowerToys.PreviewHandler.Markdown</RootNamespace>
25      <AssemblyName>PowerToys.MarkdownPreviewHandler</AssemblyName>
26    </PropertyGroup>
27  
28    <ItemGroup>
29      <Compile Update="MarkdownPreviewHandlerControl.cs" />
30      <Compile Update="Properties\Resources.Designer.cs">
31        <AutoGen>True</AutoGen>
32        <DesignTime>True</DesignTime>
33        <DependentUpon>Resources.resx</DependentUpon>
34      </Compile>
35      <Compile Update="Properties\Settings.Designer.cs">
36        <AutoGen>True</AutoGen>
37        <DesignTimeSharedInput>True</DesignTimeSharedInput>
38        <DependentUpon>Settings.settings</DependentUpon>
39      </Compile>
40    </ItemGroup>
41  
42    <!-- See https://learn.microsoft.com/windows/apps/develop/platform/csharp-winrt/net-projection-from-cppwinrt-component for more info -->
43    <PropertyGroup>
44      <CsWinRTIncludes>PowerToys.GPOWrapper</CsWinRTIncludes>
45      <CsWinRTGeneratedFilesDir>$(OutDir)</CsWinRTGeneratedFilesDir>
46      <ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
47    </PropertyGroup>
48    <PropertyGroup>
49      <!-- Disable missing comment warning. WinRT/C++ libraries added won't have comments on their reflections. -->
50      <NoWarn>$(NoWarn);1591</NoWarn>
51      <OutputType>WinExe</OutputType>
52    </PropertyGroup>
53  
54    <ItemGroup>
55      <PackageReference Include="Microsoft.Web.WebView2" />
56      <PackageReference Include="System.IO.Abstractions" />
57    </ItemGroup>
58  
59    <ItemGroup>
60      <ProjectReference Include="..\..\..\common\FilePreviewCommon\FilePreviewCommon.csproj" />
61      <ProjectReference Include="..\..\..\common\GPOWrapper\GPOWrapper.vcxproj" />
62      <ProjectReference Include="..\..\..\common\Common.UI\Common.UI.csproj" />
63      <ProjectReference Include="..\..\..\common\interop\PowerToys.Interop.vcxproj" />
64      <ProjectReference Include="..\..\..\common\ManagedTelemetry\Telemetry\ManagedTelemetry.csproj" />
65      <ProjectReference Include="..\common\PreviewHandlerCommon.csproj" />
66    </ItemGroup>
67  
68    <ItemGroup>
69      <None Include="Properties\Settings.settings">
70        <Generator>SettingsSingleFileGenerator</Generator>
71        <LastGenOutput>Settings.Designer.cs</LastGenOutput>
72      </None>
73    </ItemGroup>
74  
75  </Project>