Skip to content

Commit

Permalink
Fix projects with double S.D.G imports (dotnet#1654)
Browse files Browse the repository at this point in the history
  • Loading branch information
joperezr authored Sep 3, 2021
1 parent a2217e8 commit dbfa2fa
Show file tree
Hide file tree
Showing 198 changed files with 247 additions and 1,188 deletions.
10 changes: 1 addition & 9 deletions src/devices/AD5328/AD5328.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(DefaultBindingTfms)</TargetFrameworks>
<EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>

<ItemGroup>
<Compile Include="*.cs" />
</ItemGroup>

<ItemGroup>
<None Include="README.md" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
</ItemGroup>

</Project>
</Project>
6 changes: 1 addition & 5 deletions src/devices/AD5328/samples/AD5328.Samples.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\AD5328.csproj" />
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
</ItemGroup>

</Project>
</Project>
7 changes: 1 addition & 6 deletions src/devices/Ads1115/Ads1115.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(DefaultBindingTfms)</TargetFrameworks>
<EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
<Compile Include="..\Common\System\Device\DelayHelper.cs" Link="DelayHelper.cs" />
<Compile Include="I2cAddress.cs" />
<Compile Include="ComparatorLatching.cs" />
Expand All @@ -20,10 +17,8 @@
<Compile Include="Register.cs" />
<Compile Include="Ads1115.cs" />
</ItemGroup>

<ItemGroup>
<None Remove="README.md" />
<None Remove="sensor.jpg" />
</ItemGroup>

</Project>
</Project>
9 changes: 2 additions & 7 deletions src/devices/Ads1115/samples/Ads1115.Samples.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ItemGroup>
<None Remove="ADS1115_circuit.fzz" />
<None Remove="ADS1115_circuit_bb.png" />
<None Remove="README.md" />
<None Remove="res.jpg" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Ads1115.csproj" />
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
</ItemGroup>

</Project>
</Project>
7 changes: 1 addition & 6 deletions src/devices/Adxl345/Adxl345.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(DefaultBindingTfms)</TargetFrameworks>
<EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
<Compile Include="GravityRange.cs" />
<Compile Include="Register.cs" />
<Compile Include="Adxl345.cs" />
</ItemGroup>

<ItemGroup>
<None Remove="README.md" />
<None Remove="sensor.jpg" />
</ItemGroup>

</Project>
</Project>
7 changes: 1 addition & 6 deletions src/devices/Adxl345/samples/Adxl345.Samples.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Adxl345.csproj" />
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
</ItemGroup>

<ItemGroup>
<None Remove="ADXL345_circuit.fzz" />
<None Remove="ADXL345_circuit_bb.png" />
<None Remove="README.md" />
<None Remove="res.jpg" />
</ItemGroup>

</Project>
</Project>
7 changes: 1 addition & 6 deletions src/devices/Adxl357/Adxl357.csproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(DefaultBindingTfms)</TargetFrameworks>
<EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
<Compile Include="AccelerometerRange.cs" />
<Compile Include="Adxl357.cs" />
<Compile Include="Register.cs" />
</ItemGroup>

<ItemGroup>
<None Include="README.md" />
</ItemGroup>

</Project>
</Project>
6 changes: 1 addition & 5 deletions src/devices/Adxl357/samples/Adxl357.Samples.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Adxl357.csproj" />
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
</ItemGroup>

</Project>
</Project>
7 changes: 1 addition & 6 deletions src/devices/Ags01db/Ags01db.csproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(DefaultBindingTfms)</TargetFrameworks>
<EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
<Compile Include="Register.cs" />
<Compile Include="Ags01db.cs" />
</ItemGroup>

<ItemGroup>
<None Remove="README.md" />
<None Remove="sensor.jpg" />
</ItemGroup>

</Project>
</Project>
7 changes: 1 addition & 6 deletions src/devices/Ags01db/samples/Ags01db.Samples.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Ags01db.csproj" />
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
</ItemGroup>

<ItemGroup>
<None Remove="AGS01DB_circuit.fzz" />
<None Remove="AGS01DB_circuit_bb.png" />
<None Remove="README.md" />
<None Remove="RunningResult.jpg" />
</ItemGroup>

</Project>
</Project>
6 changes: 1 addition & 5 deletions src/devices/Ahtxx/Ahtxx.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(DefaultBindingTfms)</TargetFrameworks>
<!--Disabling default items so samples source won't get build by the main library-->
<EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>

<ItemGroup>
<Compile Include="*.cs" />
<None Include="README.md" />
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
</ItemGroup>

</Project>
</Project>
6 changes: 1 addition & 5 deletions src/devices/Ahtxx/samples/Ahtxx.Samples.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="../Ahtxx.csproj" />
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
</ItemGroup>

</Project>
</Project>
6 changes: 1 addition & 5 deletions src/devices/Ak8963/Ak8963.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(DefaultBindingTfms)</TargetFrameworks>
<EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>

<ItemGroup>
<Compile Include="*.cs" />
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
<PackageReference Include="System.Memory" Version="$(SystemMemoryPackageVersion)" />
<None Include="README.md" />
</ItemGroup>

</Project>
</Project>
6 changes: 1 addition & 5 deletions src/devices/Ak8963/samples/ak8963.sample.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Ak8963.csproj" />
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
</ItemGroup>

</Project>
</Project>
8 changes: 2 additions & 6 deletions src/devices/Amg88xx/Amg88xx.csproj
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(DefaultBindingTfms)</TargetFrameworks>
<!--Disabling default items so samples source won't get build by the main library-->
<EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>

<ItemGroup>
<Compile Include="*.cs" />
<None Include="README.md" />
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
</ItemGroup>

<!-- Make the internal classes visible to the unit test assembly -->
<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>$(AssemblyName).Tests</_Parameter1>
<_Parameter1>$(AssemblyName).Tests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>
</Project>
6 changes: 1 addition & 5 deletions src/devices/Amg88xx/samples/Amg88xx.Samples.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="../Amg88xx.csproj" />
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
</ItemGroup>

</Project>
</Project>
4 changes: 0 additions & 4 deletions src/devices/Apa102/Apa102.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(DefaultBindingTfms)</TargetFrameworks>
<EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>

<ItemGroup>
<Compile Include="*.cs" />
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
<None Include="README.md" />
</ItemGroup>

</Project>
8 changes: 2 additions & 6 deletions src/devices/Arduino/Arduino.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(DefaultBindingTfms)</TargetFrameworks>
<EnableDefaultItems>false</EnableDefaultItems>
<RootNamespace>Iot.Device.Arduino</RootNamespace>
</PropertyGroup>

<ItemGroup>
<ItemGroup>
<Compile Include="*.cs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="$(MainLibraryPath)System.Device.Gpio.csproj" />
<ProjectReference Include="..\Board\Board.csproj" />
<ProjectReference Include="..\Common\CommonHelpers.csproj" />
<PackageReference Include="System.IO.Ports" Version="$(SystemIOPortsPackageVersion)" />
Expand All @@ -22,4 +18,4 @@
<_Parameter1>$(AssemblyName).Tests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>
</Project>
Loading

0 comments on commit dbfa2fa

Please sign in to comment.