Skip to content

Commit

Permalink
Added <EnableWindowsTargeting> to Windows csprojs, so we can build th…
Browse files Browse the repository at this point in the history
…ese projects on Linux as well
  • Loading branch information
flyingpie committed Jul 14, 2024
1 parent 39ca2bb commit d836647
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 43 deletions.
29 changes: 15 additions & 14 deletions src/20-Services/Wtq.Services.WinForms/Wtq.Services.WinForms.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>Wtq.Services.WinForms</AssemblyName>
<RootNamespace>Wtq.Services.WinForms</RootNamespace>

<TargetFramework>net8.0-windows</TargetFramework>

<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\10-Core\Wtq\Wtq.csproj" />
<ProjectReference Include="..\Wtq.Services.Win32\Wtq.Services.Win32.csproj" />
</ItemGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>Wtq.Services.WinForms</AssemblyName>
<RootNamespace>Wtq.Services.WinForms</RootNamespace>

<TargetFramework>net8.0-windows</TargetFramework>
<EnableWindowsTargeting>true</EnableWindowsTargeting>

<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\10-Core\Wtq\Wtq.csproj" />
<ProjectReference Include="..\Wtq.Services.Win32\Wtq.Services.Win32.csproj" />
</ItemGroup>
</Project>
59 changes: 30 additions & 29 deletions src/30-Host/Wtq.Host.Windows/Wtq.Host.Windows.csproj
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>wtq</AssemblyName>
<RootNamespace>Wtq.Host.Windows</RootNamespace>

<TargetFramework>net8.0-windows</TargetFramework>
<OutputType>WinExe</OutputType>

<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\..\schema\wtq.schema.2.json" Link="wtq.schema.2.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<None Include="..\..\wtq.jsonc" Link="wtq.jsonc">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\10-Core\Wtq\Wtq.csproj" />
<ProjectReference Include="..\..\20-Services\Wtq.Services.Win32\Wtq.Services.Win32.csproj" />
<ProjectReference Include="..\..\20-Services\Wtq.Services.WinForms\Wtq.Services.WinForms.csproj" />
</ItemGroup>
</Project>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>wtq</AssemblyName>
<RootNamespace>Wtq.Host.Windows</RootNamespace>

<TargetFramework>net8.0-windows</TargetFramework>
<OutputType>WinExe</OutputType>
<EnableWindowsTargeting>true</EnableWindowsTargeting>

<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\..\schema\wtq.schema.2.json" Link="wtq.schema.2.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<None Include="..\..\wtq.jsonc" Link="wtq.jsonc">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\10-Core\Wtq\Wtq.csproj" />
<ProjectReference Include="..\..\20-Services\Wtq.Services.Win32\Wtq.Services.Win32.csproj" />
<ProjectReference Include="..\..\20-Services\Wtq.Services.WinForms\Wtq.Services.WinForms.csproj" />
</ItemGroup>
</Project>

0 comments on commit d836647

Please sign in to comment.