Skip to content

Commit 410a1ea

Browse files
committed
chore: aligns workbench with main as much as possible
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent b7c6194 commit 410a1ea

1 file changed

Lines changed: 23 additions & 5 deletions

File tree

src/Microsoft.OpenApi.Workbench/Microsoft.OpenApi.Workbench.csproj

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<!-- Windows-specific configuration -->
24
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
35
<TargetFramework>net8.0-windows</TargetFramework>
46
<OutputType>WinExe</OutputType>
@@ -26,22 +28,38 @@
2628
<PackageReference Include="Microsoft.Windows.Compatibility" Version="10.0.10" />
2729
<PackageReference Include="System.Security.Cryptography.Xml" Version="10.0.10" />
2830
</ItemGroup>
29-
<ItemGroup>
31+
32+
<!-- Windows-specific resources -->
33+
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
3034
<Resource Include="Themes\Metro\HowToApplyTheme.txt" />
3135
</ItemGroup>
36+
37+
<!-- Project references (available on all platforms) -->
3238
<ItemGroup>
3339
<ProjectReference Include="..\Microsoft.OpenApi.YamlReader\Microsoft.OpenApi.YamlReader.csproj" />
3440
<ProjectReference Include="..\Microsoft.OpenApi\Microsoft.OpenApi.csproj" />
3541
</ItemGroup>
36-
<ItemGroup>
37-
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
38-
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
42+
43+
<!-- Exclude WPF-specific files on non-Windows platforms -->
44+
<ItemGroup Condition="'$(OS)' != 'Windows_NT'">
45+
<Compile Remove="**/*.xaml.cs" />
46+
<Compile Remove="App.xaml.cs" />
47+
<Compile Remove="MainWindow.xaml.cs" />
48+
<Compile Remove="EnumBindingSourceExtension.cs" />
49+
<Compile Remove="MainModel.cs" />
50+
<Compile Remove="StatsVisitor.cs" />
51+
<Compile Remove="Properties/**" />
52+
<None Remove="**/*.xaml" />
53+
<Page Remove="**/*.xaml" />
3954
</ItemGroup>
40-
<ItemGroup>
55+
56+
<!-- Windows-specific XAML excludes -->
57+
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
4158
<Page Remove="Themes\Metro\Metro.MSControls.Core.Implicit.xaml" />
4259
<Page Remove="Themes\Metro\Metro.MSControls.Toolkit.Implicit.xaml" />
4360
<Page Remove="Themes\Metro\Styles.Shared.xaml" />
4461
<Page Remove="Themes\Metro\Styles.WPF.xaml" />
4562
<Page Remove="Themes\Metro\Theme.Colors.xaml" />
63+
<Compile Remove="NonWindowsPlatformPlaceholder.cs" />
4664
</ItemGroup>
4765
</Project>

0 commit comments

Comments
 (0)