Skip to content

Commit f65ffa6

Browse files
committed
chore: Remove WinUI building on linux/macos
1 parent 1b13eef commit f65ffa6

File tree

2 files changed

+108
-24
lines changed

2 files changed

+108
-24
lines changed

.gitignore

Lines changed: 99 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
## Ignore Visual Studio temporary files, build results, and
22
## files generated by popular Visual Studio add-ons.
33
##
4-
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
4+
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
55

66
# User-specific files
77
*.rsuser
88
*.suo
99
*.user
1010
*.userosscache
1111
*.sln.docstates
12+
*.env
1213

1314
# User-specific files (MonoDevelop/Xamarin Studio)
1415
*.userprefs
@@ -21,14 +22,36 @@ mono_crash.*
2122
[Dd]ebugPublic/
2223
[Rr]elease/
2324
[Rr]eleases/
24-
x64/
25-
x86/
25+
26+
[Dd]ebug/x64/
27+
[Dd]ebugPublic/x64/
28+
[Rr]elease/x64/
29+
[Rr]eleases/x64/
30+
bin/x64/
31+
obj/x64/
32+
33+
[Dd]ebug/x86/
34+
[Dd]ebugPublic/x86/
35+
[Rr]elease/x86/
36+
[Rr]eleases/x86/
37+
bin/x86/
38+
obj/x86/
39+
40+
[Ww][Ii][Nn]32/
2641
[Aa][Rr][Mm]/
2742
[Aa][Rr][Mm]64/
43+
[Aa][Rr][Mm]64[Ee][Cc]/
2844
bld/
29-
[Bb]in/
3045
[Oo]bj/
46+
[Oo]ut/
3147
[Ll]og/
48+
[Ll]ogs/
49+
50+
# Build results on 'Bin' directories
51+
**/[Bb]in/*
52+
# Uncomment if you have tasks that rely on *.refresh files to move binaries
53+
# (https://github.com/github/gitignore/pull/3736)
54+
#!**/[Bb]in/*.refresh
3255

3356
# Visual Studio 2015/2017 cache/options directory
3457
.vs/
@@ -41,12 +64,16 @@ Generated\ Files/
4164
# MSTest test Results
4265
[Tt]est[Rr]esult*/
4366
[Bb]uild[Ll]og.*
67+
*.trx
4468

45-
# NUNIT
69+
# NUnit
4670
*.VisualState.xml
4771
TestResult.xml
4872
nunit-*.xml
4973

74+
# Approval Tests result files
75+
*.received.*
76+
5077
# Build Results of an ATL Project
5178
[Dd]ebugPS/
5279
[Rr]eleasePS/
@@ -60,6 +87,9 @@ project.lock.json
6087
project.fragment.lock.json
6188
artifacts/
6289

90+
# ASP.NET Scaffolding
91+
ScaffoldingReadMe.txt
92+
6393
# StyleCop
6494
StyleCopReport.xml
6595

@@ -70,13 +100,16 @@ StyleCopReport.xml
70100
*.ilk
71101
*.meta
72102
*.obj
103+
*.idb
73104
*.iobj
74105
*.pch
75106
*.pdb
76107
*.ipdb
77108
*.pgc
78109
*.pgd
79110
*.rsp
111+
# but not Directory.Build.rsp, as it configures directory-level build defaults
112+
!Directory.Build.rsp
80113
*.sbr
81114
*.tlb
82115
*.tli
@@ -85,6 +118,7 @@ StyleCopReport.xml
85118
*.tmp_proj
86119
*_wpftmp.csproj
87120
*.log
121+
*.tlog
88122
*.vspscc
89123
*.vssscc
90124
.builds
@@ -126,9 +160,6 @@ _ReSharper*/
126160
*.[Rr]e[Ss]harper
127161
*.DotSettings.user
128162

129-
# JustCode is a .NET coding add-in
130-
.JustCode
131-
132163
# TeamCity is a build add-in
133164
_TeamCity*
134165

@@ -139,12 +170,18 @@ _TeamCity*
139170
.axoCover/*
140171
!.axoCover/settings.json
141172

173+
# Coverlet is a free, cross platform Code Coverage Tool
174+
coverage*.json
175+
coverage*.xml
176+
coverage*.info
177+
142178
# Visual Studio code coverage results
143179
*.coverage
144180
*.coveragexml
145181

146182
# NCrunch
147183
_NCrunch_*
184+
.NCrunch_*
148185
.*crunch*.local.xml
149186
nCrunchTemp_*
150187

@@ -286,6 +323,14 @@ node_modules/
286323
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
287324
*.vbw
288325

326+
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
327+
*.dsw
328+
*.dsp
329+
330+
# Visual Studio 6 technical files
331+
*.ncb
332+
*.aps
333+
289334
# Visual Studio LightSwitch build output
290335
**/*.HTMLClient/GeneratedArtifacts
291336
**/*.DesktopClient/GeneratedArtifacts
@@ -295,22 +340,22 @@ node_modules/
295340
_Pvt_Extensions
296341

297342
# Paket dependency manager
298-
.paket/paket.exe
343+
**/.paket/paket.exe
299344
paket-files/
300345

301346
# FAKE - F# Make
302-
.fake/
347+
**/.fake/
303348

304349
# CodeRush personal settings
305-
.cr/personal
350+
**/.cr/personal
306351

307352
# Python Tools for Visual Studio (PTVS)
308-
__pycache__/
353+
**/__pycache__/
309354
*.pyc
310355

311356
# Cake - Uncomment if you are using it
312-
tools/**
313-
!tools/packages.config
357+
#tools/**
358+
#!tools/packages.config
314359

315360
# Tabs Studio
316361
*.tss
@@ -332,32 +377,65 @@ ASALocalRun/
332377

333378
# MSBuild Binary and Structured Log
334379
*.binlog
380+
MSBuild_Logs/
381+
382+
# AWS SAM Build and Temporary Artifacts folder
383+
.aws-sam
335384

336385
# NVidia Nsight GPU debugger configuration file
337386
*.nvuser
338387

339388
# MFractors (Xamarin productivity tool) working folder
340-
.mfractor/
389+
**/.mfractor/
341390

342391
# Local History for Visual Studio
343-
.localhistory/
392+
**/.localhistory/
393+
394+
# Visual Studio History (VSHistory) files
395+
.vshistory/
344396

345397
# BeatPulse healthcheck temp database
346398
healthchecksdb
347399

348400
# Backup folder for Package Reference Convert tool in Visual Studio 2017
349401
MigrationBackup/
350402

351-
# ReactiveUI
352-
artifacts/
353-
src/ReactiveUI.Events*/Events_*.cs
403+
# Ionide (cross platform F# VS Code tools) working folder
404+
**/.ionide/
405+
406+
# Fody - auto-generated XML schema
407+
FodyWeavers.xsd
408+
409+
# VS Code files for those working on multiple tools
410+
.vscode/*
411+
!.vscode/settings.json
412+
!.vscode/tasks.json
413+
!.vscode/launch.json
414+
!.vscode/extensions.json
415+
!.vscode/*.code-snippets
354416

355-
# macOS
356-
.DS_Store
417+
# Local History for Visual Studio Code
418+
.history/
357419

420+
# Built Visual Studio Code Extensions
421+
*.vsix
422+
423+
# Windows Installer files from build outputs
424+
*.cab
425+
*.msi
426+
*.msix
427+
*.msm
428+
*.msp
429+
430+
# Received files
358431
src/*.Tests/**/*ApiApprovalTests*.received.txt
432+
433+
# IntelliJ/Rider files
359434
.idea/
360435

436+
# Mono Files
437+
.mono/
438+
361439
# Fody Weavers (for tests)
362440
src/Tools/
363441

src/ReactiveUI.WinUI/ReactiveUI.WinUI.csproj

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,24 @@
1414
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.19041.0</SupportedOSPlatformVersion>
1515
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.19041.0</TargetPlatformMinVersion>
1616
</PropertyGroup>
17-
<ItemGroup>
18-
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" />
17+
<!-- Packages only on Windows -->
18+
<ItemGroup Condition="$([MSBuild]::IsOsPlatform('Windows'))">
1919
<PackageReference Include="Microsoft.WindowsAppSDK" />
20+
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" />
2021
<PackageReference Include="System.Reactive" />
2122
</ItemGroup>
2223
<ItemGroup>
2324
<ProjectReference Include="..\ReactiveUI\ReactiveUI.csproj" />
2425
</ItemGroup>
25-
<ItemGroup>
26+
<ItemGroup Condition="$([MSBuild]::IsOsPlatform('Windows'))">
2627
<Compile Include="..\ReactiveUI.Maui\Common\**\*.cs" LinkBase="common" />
2728
<Compile Include="..\ReactiveUI.Maui\WinUI\**\*.cs" />
2829
<Compile Include="..\ReactiveUI.Maui\ActivationForViewFetcher.cs" />
2930
<Compile Include="..\ReactiveUI.Maui\Registrations.cs" />
3031
</ItemGroup>
32+
33+
<!-- Strip all sources off Windows so the fallback TFM builds an empty assembly -->
34+
<ItemGroup Condition="$([MSBuild]::IsOsPlatform('Windows')) != 'true'">
35+
<Compile Remove="**\*.cs" />
36+
</ItemGroup>
3137
</Project>

0 commit comments

Comments
 (0)