|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 | <PropertyGroup> |
3 | | - <TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks> |
4 | | - <TargetFrameworks Condition="$(NETCoreSdkRuntimeIdentifier.StartsWith('win'))">$(TargetFrameworks);net6.0-windows10.0.17763.0</TargetFrameworks> |
| 3 | + <TargetFrameworks>net6.0;</TargetFrameworks> |
5 | 4 | <LangVersion>10</LangVersion> |
6 | 5 | <Nullable>enable</Nullable> |
7 | 6 | <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
|
10 | 9 | </PropertyGroup> |
11 | 10 |
|
12 | 11 | <ItemGroup> |
13 | | - <Compile Remove="winmd\**" /> |
14 | | - <EmbeddedResource Remove="winmd\**" /> |
15 | | - <None Remove="winmd\**" /> |
16 | | - <None Include="buildTransitive\net5.0\System.Device.Gpio.targets" Pack="true" PackagePath="\buildTransitive\net5.0" /> |
17 | 12 | <PackageReference Include="Microsoft.DotNet.GenAPI" Version="$(MicrosoftDotNetGenApiPackageVersion)"> |
18 | 13 | <PrivateAssets>all</PrivateAssets> |
19 | 14 | </PackageReference> |
20 | 15 | <Content Include="$(RepoRoot)README-nuget.md" Pack="true" Visible="false" PackagePath="\README.md" /> |
21 | 16 | </ItemGroup> |
22 | 17 |
|
23 | | - <ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'"> |
24 | | - <PackageReference Include="Microsoft.Win32.Registry" Version="$(MicrosoftWin32RegistryPackageVersion)" /> <!-- This is Windows specific --> |
25 | | - <PackageReference Include="System.Memory" Version="$(SystemMemoryPackageVersion)" /> |
26 | | - <PackageReference Include="System.Runtime.WindowsRuntime" Version="$(SystemRuntimeWindowsRuntimePackageVersion)" /> |
27 | | - <PackageReference Include="System.Runtime.InteropServices.WindowsRuntime" Version="$(SystemRuntimeInteropServicesWindowsRuntimePackageVersion)" /> |
28 | | - <PackageReference Include="System.Threading.Tasks.Extensions" Version="$(SystemThreadingTasksExtensionsPackageVersion)" /> |
29 | | - |
30 | | - <Reference Include="Windows.Devices.DevicesLowLevelContract"> |
31 | | - <HintPath>winmd\Windows.Devices.DevicesLowLevelContract.winmd</HintPath> |
32 | | - <IsWinMDFile>true</IsWinMDFile> |
33 | | - </Reference> |
34 | | - <Reference Include="Windows.Foundation.FoundationContract"> |
35 | | - <HintPath>winmd\Windows.Foundation.FoundationContract.winmd</HintPath> |
36 | | - <IsWinMDFile>true</IsWinMDFile> |
37 | | - </Reference> |
38 | | - <Reference Include="Windows.Foundation.UniversalApiContract"> |
39 | | - <HintPath>winmd\Windows.Foundation.UniversalApiContract.winmd</HintPath> |
40 | | - <IsWinMDFile>true</IsWinMDFile> |
41 | | - </Reference> |
42 | | - </ItemGroup> |
43 | | - |
44 | | - <ItemGroup Condition="'$(TargetFramework)' != 'net6.0'"> |
45 | | - <!--Remove the Linux-specific code--> |
46 | | - <Compile Remove="System\Device\Gpio\Drivers\Windows10Driver.notSupported.cs" /> |
47 | | - <Compile Remove="System\Device\I2c\I2cDevice.nonWindows.cs" /> |
48 | | - <Compile Remove="System\Device\I2c\I2cBus.nonWindows.cs" /> |
49 | | - <Compile Remove="System\Device\Pwm\PwmChannel.nonWindows.cs" /> |
50 | | - <Compile Remove="System\Device\Spi\SpiDevice.nonWindows.cs" /> |
51 | | - <Compile Remove="System\Device\CommonHelpers.cs" /> |
52 | | - </ItemGroup> |
53 | | - |
54 | | - <ItemGroup Condition="'$(TargetFramework)' == 'net6.0'"> |
55 | | - <!--Remove Windows Code--> |
56 | | - <Compile Remove="Interop\Windows\WinRT\*.cs" /> |
57 | | - <Compile Remove="System\Device\Gpio\Drivers\Windows10DriverPin.cs" /> |
58 | | - <Compile Remove="System\Device\Gpio\Drivers\Windows10Driver.cs" /> |
59 | | - <Compile Remove="System\Device\I2c\Devices\Windows10I2cBus.cs" /> |
60 | | - <Compile Remove="System\Device\I2c\Devices\Windows10I2cDevice.cs" /> |
61 | | - <Compile Remove="System\Device\I2c\Devices\Windows10I2cBusDevice.cs" /> |
62 | | - <Compile Remove="System\Device\Pwm\Channels\Windows10PwmChannel.cs" /> |
63 | | - <Compile Remove="System\Device\Spi\Devices\Windows10SpiDevice.cs" /> |
64 | | - <Compile Remove="System\Device\I2c\I2cDevice.Windows.cs" /> |
65 | | - <Compile Remove="System\Device\I2c\I2cBus.Windows.cs" /> |
66 | | - <Compile Remove="System\Device\Pwm\PwmChannel.Windows.cs" /> |
67 | | - <Compile Remove="System\Device\Spi\SpiDevice.Windows.cs" /> |
68 | | - |
69 | | - </ItemGroup> |
70 | | - <ItemGroup Condition="'$(TargetFramework)' == 'net6.0'"> |
71 | | - <!-- Need this for record support in older runtimes --> |
72 | | - <Compile Remove="System\Device\IsExternalInit.cs" /> |
73 | | - </ItemGroup> |
74 | | - |
75 | 18 | </Project> |
0 commit comments