Skip to content

A Swiss Army knife for developers.

2.6 KB
Raw Blame
<Project Sdk="Microsoft.NET.Sdk.Razor">

  <PropertyGroup>
    <TargetFramework>$(NetCoreWindows)</TargetFramework>
    <TargetPlatformMinVersion>7.0</TargetPlatformMinVersion>
    <OutputType>WinExe</OutputType>
    <UseWPF>true</UseWPF>
    <UseWindowsForms>true</UseWindowsForms>
    <ApplicationManifest>app.manifest</ApplicationManifest>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <ApplicationHighDpiMode>PerMonitorV2</ApplicationHighDpiMode>
    <ApplicationIcon>$(RepoRoot)\assets\logo\Windows-Linux\Preview\Icon-Windows-Preview.ico</ApplicationIcon>

    <RootNamespace>DevToys.Windows</RootNamespace>
    <AssemblyName>DevToys</AssemblyName>
  </PropertyGroup>

  <PropertyGroup Condition="$(_IsPublishing) == ''">
    <PluginsInstallationFolder>$(OutputPath)\$(TargetFramework)\Plugins</PluginsInstallationFolder>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Components.WebView.Wpf" />
    <PackageReference Include="Microsoft.AspNetCore.Components.Web" />
    <PackageReference Include="Microsoft.Extensions.Logging.Debug" />
    <PackageReference Include="Microsoft.TypeScript.MSBuild">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
    <PackageReference Include="Microsoft.Windows.CsWin32">
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\..\..\DevToys.Blazor\DevToys.Blazor.csproj" />
    <ProjectReference Include="..\..\..\DevToys.Localization\DevToys.Localization.csproj" />
  </ItemGroup>

  <ItemGroup>
    <Compile Update="Strings\Other\Other.Designer.cs">
      <DesignTime>True</DesignTime>
      <AutoGen>True</AutoGen>
      <DependentUpon>Other.resx</DependentUpon>
    </Compile>
    <Compile Update="Strings\TaskBar\TaskBar.Designer.cs">
      <DesignTime>True</DesignTime>
      <AutoGen>True</AutoGen>
      <DependentUpon>TaskBar.resx</DependentUpon>
    </Compile>
  </ItemGroup>

  <ItemGroup>
    <Content Update="wwwroot\index.html">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Update="Strings\Other\Other.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Other.Designer.cs</LastGenOutput>
    </EmbeddedResource>
    <EmbeddedResource Update="Strings\TaskBar\TaskBar.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>TaskBar.Designer.cs</LastGenOutput>
    </EmbeddedResource>
  </ItemGroup>

</Project>