Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<PropertyGroup>
<Language>C#</Language>
<LangVersion>9</LangVersion>
<LangVersion>12</LangVersion>
<IncludeSymbols>true</IncludeSymbols>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion eng/ArduinoCsCI.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ REM Second argument is either "Debug" or "Release"
if %1!==! goto :usage

REM Defines the revision to check out in the ExtendedConfigurableFirmata repo
set FIRMATA_SIMULATOR_CHECKOUT_REVISION=a354343cebc35964450dfa01dba2cd996065fd5c
set FIRMATA_SIMULATOR_CHECKOUT_REVISION=f70a361765adedd5752a7578d5bb77e55f268e38
set RUN_COMPILER_TESTS=FALSE

choco install -y --no-progress arduino-cli
Expand Down
2 changes: 1 addition & 1 deletion samples/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<MainLibraryPath>$(MSBuildThisFileDirectory)../src/System.Device.Gpio/</MainLibraryPath>
<IotBindingsLibraryPath>$(MSBuildThisFileDirectory)../src/Iot.Device.Bindings/</IotBindingsLibraryPath>
<Nullable>enable</Nullable>
<LangVersion>9</LangVersion>
<LangVersion>12</LangVersion>
</PropertyGroup>

<!--
Expand Down
6 changes: 3 additions & 3 deletions samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ The following samples demonstrate various scenarios:

## Requirements

The .NET IoT APIs require using at least .NET Core 2.1. [.NET Core 3.1](https://dotnet.microsoft.com/download/dotnet-core/3.1) or higher is recommended, and is required for ARM64.
The .NET IoT APIs require using at least .NET 8.0.

Many of these samples use the [Raspberry Pi](https://www.raspberrypi.org/), however, .NET Core can be used with other devices. .NET Core is supported on Raspberry Pi 2B as well as 3 and 4 models (ARMv7/v8). .NET Core is not supported on Raspberry Pi Zero or Arduino.
Many of these samples use the [Raspberry Pi](https://www.raspberrypi.org/), however, .NET Core can be used with other devices. .NET is supported on Raspberry Pi 2B as well as 3 and 4 models (ARMv7/v8). .NET is not supported on Raspberry Pi Zero or Arduino. For the later ones, there are alternatives like NanoFramework or our own Arduino Compiler.

We primarily test the IoT APIs on Debian Linux, although we expect them to work on most Linux distros. We do not test on Windows.
We primarily test the IoT APIs on Debian Linux, although we expect them to work on most Linux distros. On Windows, we test using USB devices, such as FT-4222 or Arduino interfaces.

## Resources

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<EnableDefaultItems>true</EnableDefaultItems>
Expand Down
1 change: 0 additions & 1 deletion src/Iot.Device.Bindings/Iot.Device.Bindings.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
<DefineConstants>$(DefineConstants);BUILDING_IOT_DEVICE_BINDINGS</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>10</LangVersion>
<IsPackable>false</IsPackable>
<!-- Keep quiet about duplicate package references from props files -->
<NoWarn>$(NoWarn);NETSDK1023</NoWarn>
Expand Down
1 change: 0 additions & 1 deletion src/System.Device.Gpio/System.Device.Gpio.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<IsPackable>true</IsPackable>
Expand Down
1 change: 0 additions & 1 deletion src/devices/Arduino/tests/Arduino.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<PropertyGroup>
<TargetFrameworks>$(DefaultSampleTfms)</TargetFrameworks>
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<!-- We don't want to run hardware test by default -->
<VSTestTestCaseFilter Condition="'$(VSTestTestCaseFilter)'==''">requires!=hardware</VSTestTestCaseFilter>
Expand Down
1 change: 0 additions & 1 deletion src/devices/Blinkt/Blinkt.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<TargetFrameworks>$(DefaultBindingTfms)</TargetFrameworks>
<!--Disabling default items so samples source won't get build by the main library-->
<EnableDefaultItems>false</EnableDefaultItems>
<LangVersion>9</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion src/devices/Bmm150/tests/Bmm150.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(DefaultTestTfms)</TargetFrameworks>
<LangVersion>9</LangVersion>
<IsPackable>false</IsPackable>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
</PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion src/devices/Bmxx80/tests/Bmxx80.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(DefaultTestTfms)</TargetFrameworks>
<LangVersion>9</LangVersion>
<IsPackable>false</IsPackable>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
</PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion src/devices/Board/Board.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<PropertyGroup>
<TargetFrameworks>$(DefaultBindingTfms)</TargetFrameworks>
<EnableDefaultItems>false</EnableDefaultItems>
<LangVersion>preview</LangVersion>
<RootNamespace>Iot.Device.Board</RootNamespace>
</PropertyGroup>
<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion src/devices/Board/tests/Board.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<PropertyGroup>
<TargetFramework>$(DefaultTestTfms)</TargetFramework>
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<RootNamespace>Iot.Device.Board.Tests</RootNamespace>
</PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion src/devices/Button/tests/Button.tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<TargetFramework>$(DefaultTestTfms)</TargetFramework>
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<RootNamespace>Iot.Device.Button.Tests</RootNamespace>
</PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion src/devices/Camera/Camera/Camera.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<TargetFrameworks>$(DefaultBindingTfms)</TargetFrameworks>
<Nullable>enable</Nullable>
<LangVersion>Latest</LangVersion>
<RootNamespace>Iot.Device.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<TargetFramework>$(DefaultSampleTfms)</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>Latest</LangVersion>
<OutputType>Exe</OutputType>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<TargetFramework>$(DefaultSampleTfms)</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>Latest</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion src/devices/Camera/tests/TestCamera/TestCamera.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<TargetFramework>$(DefaultTestTfms)</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>Latest</LangVersion>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion src/devices/CharacterLcd/tests/CharacterLcd.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFrameworks>$(DefaultTestTfms)</TargetFrameworks>
<LangVersion>9</LangVersion>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
1 change: 0 additions & 1 deletion src/devices/Charlieplex/tests/Charlieplex.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>$(DefaultTestTfms)</TargetFramework>
<LangVersion>9</LangVersion>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
1 change: 1 addition & 0 deletions src/devices/Common/Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<ItemGroup>
<Compile Include="ClassVisibility.cs" />
<Compile Include="MathExtensions.cs" />
<Compile Include="System\Device\I2c\I2cSimulatedDeviceBase.cs" />
<Compile Include="Iot/Device/Common/*.cs" />
<Compile Include="Iot/Device/Graphics/*.cs" />
<Compile Include="Iot/Device/Multiplexing/*.cs" />
Expand Down
Loading
Loading