59 lines
2.4 KiB
XML
59 lines
2.4 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0-windows10.0.19041.0</TargetFramework>
|
|
<SupportedOSPlatformVersion>10.0.17763.0</SupportedOSPlatformVersion>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<UseWPF>true</UseWPF>
|
|
<OutputType>Exe</OutputType>
|
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
<NoWarn>$(NoWarn);CS1591</NoWarn>
|
|
<IsPackable>false</IsPackable>
|
|
<IsTestProject>true</IsTestProject>
|
|
<RootNamespace>CursorLang.Settings.Tests</RootNamespace>
|
|
<AssemblyName>CursorLang.Settings.Tests</AssemblyName>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Using Include="Xunit" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="xunit.v3" Version="3.2.2" />
|
|
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.8.1" />
|
|
<PackageReference Include="coverlet.collector" Version="10.0.1" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\CursorLang.Core\CursorLang.Core.csproj" />
|
|
<ProjectReference Include="..\CursorLang.Tests.Shared\CursorLang.Tests.Shared.csproj" />
|
|
<ProjectReference Include="..\CursorLang.Settings\CursorLang.Settings.csproj" />
|
|
</ItemGroup>
|
|
|
|
<!-- The markup is embedded as plain text so that the check for missing resource
|
|
keys reads what the window really says, without walking the folder tree -->
|
|
<PropertyGroup>
|
|
<MainWindowMarkup>$(MSBuildThisFileDirectory)..\CursorLang.Settings\Views\MainWindow.xaml</MainWindowMarkup>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="EmbedMainWindowMarkup" BeforeTargets="PrepareForBuild">
|
|
<PropertyGroup>
|
|
<MainWindowMarkupCopy>$(IntermediateOutputPath)MainWindow.xaml.txt</MainWindowMarkupCopy>
|
|
</PropertyGroup>
|
|
|
|
<Copy SourceFiles="$(MainWindowMarkup)"
|
|
DestinationFiles="$(MainWindowMarkupCopy)"
|
|
SkipUnchangedFiles="true" />
|
|
|
|
<ItemGroup>
|
|
<EmbeddedResource Include="$(MainWindowMarkupCopy)" LogicalName="MainWindow.xaml" />
|
|
<FileWrites Include="$(MainWindowMarkupCopy)" />
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
</Project>
|