|
19 | 19 | <RepositoryType>git</RepositoryType>
|
20 | 20 | <NoWarn>$(NoWarn);IDE0060;IDE1006;IDE0130;VSSpell001;CA1510</NoWarn>
|
21 | 21 | <!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
|
| 22 | + |
22 | 23 | <PublishRepositoryUrl>true</PublishRepositoryUrl>
|
23 | 24 | <!-- Embed source files that are not tracked by the source control manager in the PDB -->
|
24 | 25 | <EmbedUntrackedSources>true</EmbedUntrackedSources>
|
| 26 | + |
25 | 27 | <!-- Include PDB in the built .nupkg -->
|
26 | 28 | <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
27 | 29 | <Nullable>enable</Nullable>
|
|
32 | 34 | <EmbedUntrackedSources>true</EmbedUntrackedSources>
|
33 | 35 | <IncludePackageReferencesDuringMarkupCompilation>true</IncludePackageReferencesDuringMarkupCompilation>
|
34 | 36 | <PublishRepositoryUrl>true</PublishRepositoryUrl>
|
35 |
| - <!-- Legacy properties maintained for compatibility --> |
36 |
| - <WindowsTargetFrameworks>net462;net472;net8.0-windows10.0.17763.0;net9.0-windows10.0.17763.0;net8.0-windows10.0.19041.0;net9.0-windows10.0.19041.0</WindowsTargetFrameworks> |
37 |
| - <MobileTargetFrameworks>net9.0-android;net9.0-ios;net9.0-tvos;net9.0-macos;net9.0-maccatalyst</MobileTargetFrameworks> |
38 |
| - <BaseTargetFrameworks>netstandard2.0;net8.0;net9.0</BaseTargetFrameworks> |
39 |
| - |
40 |
| - <!-- Granular Target Framework definitions for cross-platform builds --> |
41 |
| - <ReactiveUICoreTargets>netstandard2.0;net8.0;net9.0</ReactiveUICoreTargets> |
42 |
| - <ReactiveUIAndroidTargets>net9.0-android</ReactiveUIAndroidTargets> |
43 |
| - |
44 |
| - <!-- Platform-specific targets - always defined but only used on supported platforms --> |
45 |
| - <ReactiveUIFrameworkTargets>net462;net472</ReactiveUIFrameworkTargets> |
46 |
| - <ReactiveUIWindowsTargets>net8.0-windows10.0.17763.0;net9.0-windows10.0.17763.0;net8.0-windows10.0.19041.0;net9.0-windows10.0.19041.0</ReactiveUIWindowsTargets> |
47 |
| - <ReactiveUIWinUITargets>net8.0-windows10.0.19041.0;net9.0-windows10.0.19041.0</ReactiveUIWinUITargets> |
48 |
| - <ReactiveUIAppleTargets>net9.0-ios;net9.0-tvos;net9.0-macos;net9.0-maccatalyst</ReactiveUIAppleTargets> |
49 |
| - |
50 |
| - <!-- Windows-only targets (combines Framework + Windows targets) - conditioned --> |
51 |
| - <ReactiveUIWindowsOnlyTargets Condition="'$(IsWindows)' == 'true'">$(ReactiveUIFrameworkTargets);$(ReactiveUIWindowsTargets)</ReactiveUIWindowsOnlyTargets> |
52 |
| - <ReactiveUIWindowsOnlyTargets Condition="'$(IsWindows)' != 'true'">$(ReactiveUIWindowsTargets)</ReactiveUIWindowsOnlyTargets> |
53 |
| - |
54 |
| - <!-- Cross-platform platform detection properties for project-level conditional building --> |
55 |
| - <IsWindows>$([MSBuild]::IsOsPlatform('Windows'))</IsWindows> |
56 |
| - <IsMacOS>$([MSBuild]::IsOsPlatform('OSX'))</IsMacOS> |
57 |
| - <IsLinux>$([MSBuild]::IsOsPlatform('Linux'))</IsLinux> |
58 |
| - |
59 |
| - <!-- Modern targets for tests and benchmarks (no netstandard) --> |
60 |
| - <ReactiveUIModernTargets>net8.0;net9.0</ReactiveUIModernTargets> |
61 |
| - |
| 37 | + |
62 | 38 | <!-- Enable building Windows-specific targets on non-Windows platforms -->
|
63 | 39 | <EnableWindowsTargeting>true</EnableWindowsTargeting>
|
64 | 40 | </PropertyGroup>
|
65 | 41 |
|
66 |
| - <!-- Build final target framework list based on operating system --> |
67 | 42 | <PropertyGroup>
|
| 43 | + <!-- Granular Target Framework definitions for cross-platform builds --> |
| 44 | + <ReactiveUICoreTargets>net8.0;net9.0;net10.0</ReactiveUICoreTargets> |
| 45 | + |
| 46 | + <!-- Platform-specific targets - always defined but only used on supported platforms --> |
| 47 | + <ReactiveUIFrameworkTargets Condition="$([MSBuild]::IsOsPlatform('Windows'))">net462;net472</ReactiveUIFrameworkTargets> |
| 48 | + <ReactiveUIMauiWindowsTargets>net9.0-windows10.0.19041.0;net10.0-windows10.0.19041.0</ReactiveUIMauiWindowsTargets> |
| 49 | + <ReactiveUIWindowsTargets>net9.0-windows10.0.19041.0;net10.0-windows10.0.19041.0</ReactiveUIWindowsTargets> |
| 50 | + <ReactiveUIWinUITargets>net9.0-windows10.0.19041.0;net10.0-windows10.0.19041.0</ReactiveUIWinUITargets> |
| 51 | + <ReactiveUIAppleTargets>net9.0-ios;net9.0-tvos;net9.0-macos;net9.0-maccatalyst;net10.0-ios;net10.0-tvos;net10.0-macos;net10.0-maccatalyst</ReactiveUIAppleTargets> |
| 52 | + <ReactiveUIAndroidTargets>net9.0-android;net10.0-android</ReactiveUIAndroidTargets> |
| 53 | + |
| 54 | + <!-- Windows-only targets (combines Framework + Windows targets) - conditioned --> |
| 55 | + <ReactiveUIWindowsOnlyTargets>$(ReactiveUIWindowsTargets)</ReactiveUIWindowsOnlyTargets> |
| 56 | + <ReactiveUIWindowsOnlyTargets Condition="$([MSBuild]::IsOsPlatform('Windows'))">$(ReactiveUIFrameworkTargets);$(ReactiveUIWindowsTargets)</ReactiveUIWindowsOnlyTargets> |
| 57 | + |
| 58 | + <ReactiveUITestTargets>net9.0;net10.0</ReactiveUITestTargets> |
| 59 | + <ReactiveUITestTargets Condition="$([MSBuild]::IsOsPlatform('Windows'))">net9.0-windows10.0.19041.0;net10.0-windows10.0.19041.0</ReactiveUITestTargets> |
| 60 | + |
| 61 | + <ReactiveUIMauiTestTargets>net9.0;net10.0</ReactiveUIMauiTestTargets> |
| 62 | + <ReactiveUIMauiTestTargets Condition="$([MSBuild]::IsOsPlatform('Windows'))">net9.0-windows10.0.19041.0;net10.0-windows10.0.19041.0</ReactiveUIMauiTestTargets> |
| 63 | + |
| 64 | + <ReactiveMauiTargets>net9.0;net10.0;$(ReactiveUIAndroidTargets)</ReactiveMauiTargets> |
| 65 | + <ReactiveMauiTargets Condition="$([MSBuild]::IsOsPlatform('Windows')) or $([MSBuild]::IsOsPlatform('OSX'))">$(ReactiveMauiTargets);$(ReactiveUIAppleTargets)</ReactiveMauiTargets> |
| 66 | + |
| 67 | + <!-- Modern targets for tests and benchmarks (no netstandard) --> |
| 68 | + <ReactiveUIModernTargets>net8.0;net9.0;net10.0</ReactiveUIModernTargets> |
| 69 | + |
68 | 70 | <!-- Start with core targets available on all platforms -->
|
69 |
| - <ReactiveUIFinalTargetFrameworks>$(ReactiveUICoreTargets)</ReactiveUIFinalTargetFrameworks> |
70 |
| - |
| 71 | + <ReactiveUIFinalTargetFrameworks>netstandard2.0;$(ReactiveUICoreTargets)</ReactiveUIFinalTargetFrameworks> |
| 72 | + |
71 | 73 | <!-- Add Android targets (available on all platforms with Android SDK) -->
|
72 | 74 | <ReactiveUIFinalTargetFrameworks>$(ReactiveUIFinalTargetFrameworks);$(ReactiveUIAndroidTargets)</ReactiveUIFinalTargetFrameworks>
|
73 |
| - |
| 75 | + |
74 | 76 | <!-- Add Windows-specific targets (.NET Framework and Windows-specific TFMs) on Windows -->
|
75 | 77 | <ReactiveUIFinalTargetFrameworks Condition="$([MSBuild]::IsOsPlatform('Windows'))">$(ReactiveUIFinalTargetFrameworks);$(ReactiveUIFrameworkTargets);$(ReactiveUIWindowsTargets)</ReactiveUIFinalTargetFrameworks>
|
76 |
| - |
| 78 | + |
77 | 79 | <!-- Add Apple targets on macOS and Windows -->
|
78 | 80 | <ReactiveUIFinalTargetFrameworks Condition="$([MSBuild]::IsOsPlatform('Windows')) or $([MSBuild]::IsOsPlatform('OSX'))">$(ReactiveUIFinalTargetFrameworks);$(ReactiveUIAppleTargets)</ReactiveUIFinalTargetFrameworks>
|
79 |
| - |
| 81 | + |
80 | 82 | <!-- Final target frameworks for tests/benchmarks (modern .NET only, with platform-specific additions) -->
|
81 | 83 | <ReactiveUIFinalModernTargetFrameworks>$(ReactiveUIModernTargets)</ReactiveUIFinalModernTargetFrameworks>
|
82 |
| - <ReactiveUIFinalModernTargetFrameworks Condition="$([MSBuild]::IsOsPlatform('Windows'))">$(ReactiveUIFinalModernTargetFrameworks);net472;$(ReactiveUIWindowsTargets)</ReactiveUIFinalModernTargetFrameworks> |
| 84 | + <ReactiveUIFinalModernTargetFrameworks Condition="$([MSBuild]::IsOsPlatform('Windows'))">$(ReactiveUIFrameworkTargets);$(ReactiveUIWindowsTargets)</ReactiveUIFinalModernTargetFrameworks> |
| 85 | + </PropertyGroup> |
| 86 | + |
| 87 | + <PropertyGroup> |
83 | 88 | <!-- Ensure all test runs use our runsettings to control cross-assembly parallelism -->
|
84 | 89 | <RunSettingsFilePath>$(MSBuildThisFileDirectory)tests.runsettings</RunSettingsFilePath>
|
85 |
| - </PropertyGroup> |
86 |
| - <PropertyGroup Condition="'$(IsTestProject)' != 'true' and ($(TargetFramework.StartsWith('net8.0')) or $(TargetFramework.StartsWith('net9.0')))"> |
| 90 | + </PropertyGroup> |
| 91 | + |
| 92 | + <PropertyGroup Condition="$(MSBuildProjectName.Contains('WPF')) != 'true' and '$(IsTestProject)' != 'true' and ($(TargetFramework.StartsWith('net8.0')) or $(TargetFramework.StartsWith('net9.0')) or $(TargetFramework.StartsWith('net10.0')))"> |
87 | 93 | <IsAotCompatible>true</IsAotCompatible>
|
88 | 94 | </PropertyGroup>
|
| 95 | + |
89 | 96 | <PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
|
90 | 97 | <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
|
91 | 98 | </PropertyGroup>
|
| 99 | + |
92 | 100 | <ItemGroup Condition="$(IsTestProject)">
|
93 |
| - <PackageReference Include="NUnit" /> |
94 |
| - <PackageReference Include="NUnit3TestAdapter" /> |
95 |
| - <PackageReference Include="NUnit.Analyzers" /> |
96 |
| - <PackageReference Include="Microsoft.NET.Test.Sdk" /> |
97 |
| - <PackageReference Include="Microsoft.Reactive.Testing" /> |
98 |
| - <PackageReference Include="PublicApiGenerator" /> |
99 |
| - <PackageReference Include="coverlet.msbuild" PrivateAssets="All" /> |
100 |
| - <PackageReference Include="Verify.NUnit" /> |
| 101 | + <PackageReference Include="NUnit"/> |
| 102 | + <PackageReference Include="NUnit3TestAdapter"/> |
| 103 | + <PackageReference Include="NUnit.Analyzers"/> |
| 104 | + <PackageReference Include="Microsoft.NET.Test.Sdk"/> |
| 105 | + <PackageReference Include="Microsoft.Reactive.Testing"/> |
| 106 | + <PackageReference Include="PublicApiGenerator"/> |
| 107 | + <PackageReference Include="coverlet.msbuild" PrivateAssets="All"/> |
| 108 | + <PackageReference Include="Verify.NUnit"/> |
101 | 109 | </ItemGroup>
|
| 110 | + |
102 | 111 | <ItemGroup Condition="'$(IsTestProject)' != 'true'">
|
103 |
| - <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" /> |
| 112 | + <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All"/> |
104 | 113 | </ItemGroup>
|
105 | 114 | <PropertyGroup>
|
106 | 115 | <SolutionDir Condition="'$(SolutionDir)' == ''">$(MSBuildThisFileDirectory)</SolutionDir>
|
107 | 116 | </PropertyGroup>
|
108 | 117 | <ItemGroup>
|
109 |
| - <None Include="$(MSBuildThisFileDirectory)..\images\logo.png" Pack="true" PackagePath="\" /> |
110 |
| - <None Include="$(MSBuildThisFileDirectory)..\LICENSE" Pack="true" PackagePath="LICENSE" /> |
111 |
| - <None Include="$(MSBuildThisFileDirectory)..\README.md" Pack="true" PackagePath="\" /> |
| 118 | + <None Include="$(MSBuildThisFileDirectory)..\images\logo.png" Pack="true" PackagePath="\"/> |
| 119 | + <None Include="$(MSBuildThisFileDirectory)..\LICENSE" Pack="true" PackagePath="LICENSE"/> |
| 120 | + <None Include="$(MSBuildThisFileDirectory)..\README.md" Pack="true" PackagePath="\"/> |
112 | 121 | </ItemGroup>
|
113 | 122 | <ItemGroup>
|
114 |
| - <PackageReference Include="Nerdbank.GitVersioning" PrivateAssets="all" /> |
115 |
| - <PackageReference Include="stylecop.analyzers" PrivateAssets="all" /> |
116 |
| - <PackageReference Include="Roslynator.Analyzers" PrivateAssets="All" /> |
| 123 | + <PackageReference Include="Nerdbank.GitVersioning" PrivateAssets="all"/> |
| 124 | + <PackageReference Include="stylecop.analyzers" PrivateAssets="all"/> |
| 125 | + <PackageReference Include="Roslynator.Analyzers" PrivateAssets="All"/> |
117 | 126 | </ItemGroup>
|
118 | 127 | <ItemGroup>
|
119 |
| - <AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" Link="stylecop.json" /> |
| 128 | + <AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" Link="stylecop.json"/> |
120 | 129 | </ItemGroup>
|
121 | 130 | </Project>
|
0 commit comments