Skip to content

Commit b6eafc9

Browse files
committed
add windows targeting for ubuntu runner
1 parent 8fd6cb8 commit b6eafc9

File tree

7 files changed

+6
-1
lines changed

7 files changed

+6
-1
lines changed

src/Clowd.Clipboard.Wpf/Clowd.Clipboard.Wpf.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
<UseWPF>true</UseWPF>
88
<RootNamespace>Clowd.Clipboard</RootNamespace>
9+
<EnableWindowsTargeting>true</EnableWindowsTargeting>
910
</PropertyGroup>
1011

1112
<ItemGroup>

src/Directory.Build.props

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<DebugType>embedded</DebugType>
2626
<DebugSymbols>true</DebugSymbols>
2727
<PathMap>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))=./</PathMap>
28+
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
2829
</PropertyGroup>
2930

3031
<ItemGroup>

tests/ClipboardAvaloniaTest/ClipboardAvaloniaTest.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<OutputType>WinExe</OutputType>
44
<TargetFramework>net8.0</TargetFramework>
55
<Nullable>enable</Nullable>
6-
<!--Avalonia doesen't support TrimMode=link currently,but we are working on that https://github.com/AvaloniaUI/Avalonia/issues/6892 -->
76
<TrimMode>copyused</TrimMode>
87
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
98
</PropertyGroup>

tests/ClipboardConsoleTests/ClipboardConsoleTests.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<UseWPF>true</UseWPF>
66
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
77
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
8+
<EnableWindowsTargeting>true</EnableWindowsTargeting>
89
</PropertyGroup>
910
<ItemGroup>
1011
<EmbeddedResource Include="bitmapreadtest.png" />

tests/ClipboardUnitTests/ClipboardUnitTests.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<TargetFramework>net8.0-windows</TargetFramework>
77
<UseWPF>true</UseWPF>
88
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
9+
<EnableWindowsTargeting>true</EnableWindowsTargeting>
910
</PropertyGroup>
1011
<ItemGroup>
1112
<EmbeddedResource Include="utf8.txt" />

tests/ClipboardWpfTests/ClipboardWpfTests.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<OutputType>WinExe</OutputType>
55
<UseWPF>true</UseWPF>
66
<ApplicationManifest>app.manifest</ApplicationManifest>
7+
<EnableWindowsTargeting>true</EnableWindowsTargeting>
78
</PropertyGroup>
89
<ItemGroup>
910
<ProjectReference Include="..\..\src\Clowd.Clipboard.Wpf\Clowd.Clipboard.Wpf.csproj" />

tests/Clowd.Bitmaps.BitmapTests/Clowd.Bitmaps.BitmapTests.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<UseWPF>true</UseWPF>
66
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
77
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
8+
<EnableWindowsTargeting>true</EnableWindowsTargeting>
89
</PropertyGroup>
910
<ItemGroup>
1011
<Content Include="bitmaps\pal1.bmp">

0 commit comments

Comments
 (0)