net7.0 builds

This commit is contained in:
Peter Freeman Foot
2023-10-04 10:03:20 +01:00
parent 4c20ea6474
commit e60d269298
5 changed files with 25 additions and 26 deletions
+2 -2
View File
@@ -259,5 +259,5 @@ paket-files/
# macOS
.DS_Store
/docfx_project/_site
/docfx_project/api
/docs/_site
/docs/api
+1 -5
View File
@@ -17,11 +17,7 @@ namespace InTheHand.Bluetooth
/// Entry point to all Bluetooth LE functionality.
/// </summary>
/// <remarks>
/// Several platforms require permissions for this functionality to work:-
/// iOS 13 (and above) - Set NSBluetoothAlwaysUsageDescription in your Info.plist to a descriptive message to be displayed to the user
/// iOS (older versions) - Set NSBluetoothPeripheralUsageDescription in your Info.plist to a descriptive message to be displayed to the user
/// Android - Add &lt;uses-permission android:name="android.permission.BLUETOOTH" /&gt; to your android manifest. To enable scanning also add &lt;uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /&gt; and &lt;uses-permission android:name="android.permission.COARSE_LOCATION" /&gt;
/// Windows - Add the Bluetooth permission
/// Several platforms require permissions for this functionality to work. See <see href="https://github.com/inthehand/32feet/wiki/Permissions">Permissions</see> for more details
/// </remarks>
public static partial class Bluetooth
{
@@ -1,7 +1,7 @@
<Project Sdk="MSBuild.Sdk.Extras/3.0.44">
<Sdk Name="DotNet.ReproducibleBuilds.Isolated" Version="1.1.1" />
<PropertyGroup>
<TargetFrameworks>netstandard2.0;monoandroid10.0;xamarinios10;xamarintvos10;xamarin.watchos10;uap10.0;net6.0-windows10.0.19041.0;net6.0;net6.0-android;net6.0-ios;net6.0-maccatalyst;net7.0-windows10.0.19041.0;net7.0-android;net7.0-ios;net7.0-maccatalyst;net461</TargetFrameworks>
<TargetFrameworks>netstandard2.0;monoandroid10.0;xamarinios10;xamarintvos10;xamarin.watchos10;uap10.0;net6.0;net6.0-windows10.0.19041.0;net6.0-android;net6.0-ios;net6.0-maccatalyst;net7.0;net7.0-windows10.0.19041.0;net7.0-android;net7.0-ios;net7.0-maccatalyst;net461</TargetFrameworks>
<Company>In The Hand Ltd</Company>
<Authors>Peter Foot</Authors>
<Product>32feet.NET</Product>
@@ -2,7 +2,7 @@
//
// InTheHand.Net.Bluetooth.BluetoothDevicePicker
//
// Copyright (c) 2018-2022 In The Hand Ltd, All rights reserved.
// Copyright (c) 2018-2023 In The Hand Ltd, All rights reserved.
// This source code is licensed under the MIT License
using InTheHand.Net.Sockets;
@@ -1,7 +1,7 @@
<Project Sdk="MSBuild.Sdk.Extras/3.0.44">
<Sdk Name="DotNet.ReproducibleBuilds.Isolated" Version="1.1.1" />
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net6.0-windows7.0;net6.0-windows10.0.22000.0;net6.0-android;net6.0-ios;net461;monoandroid10.0;xamarinios10;uap10.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net6.0-windows7.0;net6.0-windows10.0.22000.0;net6.0-android;net6.0-ios;net7.0;net7.0-windows7.0;net7.0-windows10.0.22000.0;net7.0-android;net7.0-ios;net461;monoandroid10.0;xamarinios10;uap10.0</TargetFrameworks>
<Company>In The Hand Ltd</Company>
<Authors>Peter Foot</Authors>
<Product>32feet.NET</Product>
@@ -71,16 +71,6 @@
<SupportedOSPlatformVersion>10.0.16299.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
<RuntimeIdentifiers>linux-arm64;linux-x64;linux-x86</RuntimeIdentifiers>
<AppendRuntimeIdentifierToOutputPath>true</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net7.0' ">
<RuntimeIdentifiers>linux-arm64;linux-x64;linux-x86</RuntimeIdentifiers>
<AppendRuntimeIdentifierToOutputPath>true</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0-windows10.0.22000.0' ">
<DefineConstants>WinRT</DefineConstants>
@@ -94,12 +84,8 @@
<TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' ">
<Compile Include="Platforms\Standard\*.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'monoandroid10.0' ">
<PackageReference Include="InTheHand.AndroidActivity" Version="1.0.3" />
<PackageReference Include="InTheHand.AndroidActivity" Version="1.0.4" />
<Reference Include="System.Xml.Linq" />
<Compile Include="Platforms\Android\*.cs" />
</ItemGroup>
@@ -142,16 +128,33 @@
<Compile Include="Platforms\Win32\*.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0-windows7.0' ">
<Compile Include="Platforms\Win32\*.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0-windows10.0.22000.0' ">
<Compile Include="Platforms\Windows\*.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0-windows10.0.22000.0' ">
<Compile Include="Platforms\Windows\*.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0-android' ">
<PackageReference Include="InTheHand.AndroidActivity" Version="1.0.3" />
<PackageReference Include="InTheHand.AndroidActivity" Version="1.0.4" />
<Compile Include="Platforms\Android\*.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0-android' ">
<PackageReference Include="InTheHand.AndroidActivity" Version="1.0.4" />
<Compile Include="Platforms\Android\*.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0-ios' ">
<Compile Include="Platforms\iOS\*.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0-ios' ">
<Compile Include="Platforms\iOS\*.cs" />
</ItemGroup>
</Project>