-
Notifications
You must be signed in to change notification settings - Fork 275
Expand file tree
/
Copy pathMicrosoft.OpenApi.Workbench.csproj
More file actions
64 lines (57 loc) · 2.58 KB
/
Microsoft.OpenApi.Workbench.csproj
File metadata and controls
64 lines (57 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<Project Sdk="Microsoft.NET.Sdk">
<!-- Windows-specific configuration -->
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
<TargetFramework>net8.0-windows</TargetFramework>
<OutputType>WinExe</OutputType>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<UseWPF>true</UseWPF>
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<NoWarn>NU1903</NoWarn>
</PropertyGroup>
<!-- Non-Windows configuration - create an empty library -->
<PropertyGroup Condition="'$(OS)' != 'Windows_NT'">
<TargetFramework>net8.0</TargetFramework>
<OutputType>Library</OutputType>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<NoWarn>NU1903</NoWarn>
</PropertyGroup>
<!-- Windows-specific dependencies -->
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.14.15">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.Windows.Compatibility" Version="10.0.5" />
</ItemGroup>
<!-- Windows-specific resources -->
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
<Resource Include="Themes\Metro\HowToApplyTheme.txt" />
</ItemGroup>
<!-- Project references (available on all platforms) -->
<ItemGroup>
<ProjectReference Include="..\Microsoft.OpenApi.YamlReader\Microsoft.OpenApi.YamlReader.csproj" />
<ProjectReference Include="..\Microsoft.OpenApi\Microsoft.OpenApi.csproj" />
</ItemGroup>
<!-- Exclude WPF-specific files on non-Windows platforms -->
<ItemGroup Condition="'$(OS)' != 'Windows_NT'">
<Compile Remove="**/*.xaml.cs" />
<Compile Remove="App.xaml.cs" />
<Compile Remove="MainWindow.xaml.cs" />
<Compile Remove="EnumBindingSourceExtension.cs" />
<Compile Remove="MainModel.cs" />
<Compile Remove="StatsVisitor.cs" />
<Compile Remove="Properties/**" />
<None Remove="**/*.xaml" />
<Page Remove="**/*.xaml" />
</ItemGroup>
<!-- Windows-specific XAML excludes -->
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
<Page Remove="Themes\Metro\Metro.MSControls.Core.Implicit.xaml" />
<Page Remove="Themes\Metro\Metro.MSControls.Toolkit.Implicit.xaml" />
<Page Remove="Themes\Metro\Styles.Shared.xaml" />
<Page Remove="Themes\Metro\Styles.WPF.xaml" />
<Page Remove="Themes\Metro\Theme.Colors.xaml" />
<Compile Remove="NonWindowsPlatformPlaceholder.cs" />
</ItemGroup>
</Project>