11<Project Sdk =" MSBuild.Sdk.Extras" >
22 <PropertyGroup >
33 <TargetFrameworks >netcoreapp3.0;netstandard2.0;net46;uap10.0;uap10.0.16299</TargetFrameworks >
4- <CopyLocalLockFileAssemblies >false</CopyLocalLockFileAssemblies >
4+ <CopyLocalLockFileAssemblies >false</CopyLocalLockFileAssemblies >
55 <PackageTags >Rx;Reactive;Extensions;Observable;LINQ;Events</PackageTags >
6- <Description >Reactive Extensions (Rx) for .NET</Description >
6+ <Description >Reactive Extensions (Rx) for .NET</Description >
77 </PropertyGroup >
88
99 <PropertyGroup Condition =" '$(TargetFramework)' == 'netcoreapp3.0'" >
1212 <IncludeBuildOutput >false</IncludeBuildOutput >
1313 </PropertyGroup >
1414
15+ <ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp3.0'" >
16+ <FrameworkReference Update =" Microsoft.WindowsDesktop.App" PrivateAssets =" all" />
17+ </ItemGroup >
18+
1519
16- <ItemGroup >
20+ <ItemGroup >
1721 <Compile Remove =" Platforms\**\*.*" />
1822 <EmbeddedResource Remove =" Platforms\**\*.*" />
1923 <!-- Workaround so the files appear in VS -->
2024 <None Include =" Platforms\**\*.*" />
21- <Compile Include =" ..\AssemblyInfo.cs" Link =" Properties\AssemblyInfo.cs" />
22- <None Update =" Platforms\Windows\Strings_WindowsThreading.Designer.cs" DesignTime =" True" AutoGen =" True" DependentUpon =" Strings_WindowsThreading.resx" />
23- <None Update =" Platforms\Windows\Strings_WindowsThreading.resx" CustomToolNamespace =" System.Reactive" Generator =" ResXFileCodeGenerator" LastGenOutput =" Strings_WindowsThreading.Designer.cs" />
25+ <Compile Include =" ..\AssemblyInfo.cs" Link =" Properties\AssemblyInfo.cs" />
26+ <None Update =" Platforms\Windows\Strings_WindowsThreading.Designer.cs" DesignTime =" True" AutoGen =" True" DependentUpon =" Strings_WindowsThreading.resx" />
27+ <None Update =" Platforms\Windows\Strings_WindowsThreading.resx" CustomToolNamespace =" System.Reactive" Generator =" ResXFileCodeGenerator" LastGenOutput =" Strings_WindowsThreading.Designer.cs" />
2428 </ItemGroup >
2529
26-
30+
2731 <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0' " >
2832 <PackageReference Include =" System.Runtime.InteropServices.WindowsRuntime" Version =" 4.3.0" />
2933 </ItemGroup >
30-
34+
3135 <!-- UWP -->
32- <ItemGroup Condition =" '$(TargetFramework)' == 'uap10.0' " >
36+ <ItemGroup Condition =" '$(TargetFramework)' == 'uap10.0' " >
3337 <PackageReference Include =" System.ValueTuple" Version =" 4.5.0" />
3438 <PackageReference Include =" System.ComponentModel" Version =" 4.0.1" />
3539 <PackageReference Include =" System.Dynamic.Runtime" Version =" 4.0.11" />
36- <PackageReference Include =" System.Linq.Queryable" Version =" 4.0.1" />
40+ <PackageReference Include =" System.Linq.Queryable" Version =" 4.0.1" />
3741 </ItemGroup >
3842 <ItemGroup Condition =" $(TargetFramework.StartsWith('uap10.0')) " >
3943 <Compile Include =" Platforms\UWP\**\*.cs" />
4044 </ItemGroup >
41-
45+
4246 <!-- Windows includes for Desktop and UWP -->
4347 <ItemGroup Condition =" '$(TargetFramework)' == 'net46' or $(TargetFramework.StartsWith('uap10.0')) or '$(TargetFramework)' == 'netcoreapp3.0'" >
4448 <Compile Include =" Platforms\Windows\**\*.cs" />
45- <EmbeddedResource Include =" Platforms\Windows\**\*.resx" />
49+ <EmbeddedResource Include =" Platforms\Windows\**\*.resx" />
4650 </ItemGroup >
47-
51+
4852 <!-- Desktop -->
4953 <ItemGroup Condition =" '$(TargetFramework)' == 'net46'" >
5054 <PackageReference Include =" System.ValueTuple" Version =" 4.5.0" />
5660 <ItemGroup Condition =" '$(TargetFramework)' == 'net46' or '$(TargetFramework)' == 'netcoreapp3.0'" >
5761 <Compile Include =" Platforms\Desktop\**\*.cs" />
5862 </ItemGroup >
59-
63+
6064 <!-- Designer support -->
6165 <ItemGroup >
6266 <None Update =" Linq\Observable\CombineLatest.Generated.tt" Generator =" TextTemplatingFileGenerator" LastGenOutput =" CombineLatest.Generated.cs" />
6367 <Compile Update =" Linq\Observable\CombineLatest.Generated.cs" DesignTime =" True" AutoGen =" True" DependentUpon =" CombineLatest.Generated.tt" />
6468 <None Update =" Linq\Observable\Zip.Generated.tt" Generator =" TextTemplatingFileGenerator" LastGenOutput =" Zip.Generated.cs" />
65- <Compile Update =" Linq\Observable\Zip.Generated.cs" DesignTime =" True" AutoGen =" True" DependentUpon =" Zip.Generated.tt" />
69+ <Compile Update =" Linq\Observable\Zip.Generated.cs" DesignTime =" True" AutoGen =" True" DependentUpon =" Zip.Generated.tt" />
6670 </ItemGroup >
6771
6872 <PropertyGroup >
69- <TargetsForTfmSpecificBuildOutput >$(TargetsForTfmSpecificBuildOutput);RemoveNetCoreApp3FromNuGet</TargetsForTfmSpecificBuildOutput >
70- <TargetsForTfmSpecificContentInPackage >$(TargetsForTfmSpecificContentInPackage);AddNetCore3ToNuGet</TargetsForTfmSpecificContentInPackage >
73+ <TargetsForTfmSpecificBuildOutput >$(TargetsForTfmSpecificBuildOutput);RemoveNetCoreApp3FromNuGet</TargetsForTfmSpecificBuildOutput >
74+ <TargetsForTfmSpecificContentInPackage >$(TargetsForTfmSpecificContentInPackage);AddNetCore3ToNuGet</TargetsForTfmSpecificContentInPackage >
7175 </PropertyGroup >
7276
7377 <!-- We remove the output from the nuget so it doesn't wind up in the \lib folder -->
7478 <Target Name =" RemoveNetCoreApp3FromNuGet" DependsOnTargets =" BuiltProjectOutputGroup;DocumentationProjectOutputGroup" Condition =" '$(TargetFramework)' == 'netcoreapp3.0'" >
75- <ItemGroup >
79+ <ItemGroup >
7680 <!-- Before clearing the output groups, add them to None for packing -->
77- <ItemsToAddToNuGet Include =" @(BuiltProjectOutputGroupOutput);@(DocumentationProjectOutputGroupOutput)" PackagePath =" build\netcoreapp3.0" />
78-
81+ <ItemsToAddToNuGet Include =" @(BuiltProjectOutputGroupOutput);@(DocumentationProjectOutputGroupOutput)" PackagePath =" build\netcoreapp3.0" />
82+
7983 <BuiltProjectOutputGroupOutput Remove =" @(BuiltProjectOutputGroupOutput)" />
80- <DocumentationProjectOutputGroupOutput Remove =" @(DocumentationProjectOutputGroupOutput)" />
84+ <DocumentationProjectOutputGroupOutput Remove =" @(DocumentationProjectOutputGroupOutput)" />
8185 </ItemGroup >
8286 </Target >
83-
87+
8488 <Target Name =" AddNetCore3ToNuGet" Condition =" '$(TargetFramework)' == 'netcoreapp3.0'" >
85- <ItemGroup >
89+ <ItemGroup >
8690 <!-- Add the removed build output to the build\netcoreapp3.0 folder -->
87- <TfmSpecificPackageFileWithRecursiveDir Include =" @(ItemsToAddToNuGet)" PackagePath =" build\netcoreapp3.0" />
91+ <TfmSpecificPackageFileWithRecursiveDir Include =" @(ItemsToAddToNuGet)" PackagePath =" build\netcoreapp3.0" />
8892 </ItemGroup >
8993 </Target >
90-
94+
9195 <ItemGroup >
9296 <None Include =" build\_._" PackagePath =" lib\netcoreapp3.0" Pack =" true" />
9397 <None Include =" build\System.Reactive.targets" PackagePath =" buildTransitive\netcoreapp3.0" Pack =" true" />
9498 <None Include =" build\System.Reactive.targets" PackagePath =" build\netcoreapp3.0" Pack =" true" />
9599 </ItemGroup >
96-
100+
97101</Project >
0 commit comments