Skip to content

Commit 4e91c93

Browse files
committed
Fix all ported devices
- Add/update missing Nugets. - Add version file to all projects. - Add missing/update assemblyinfo.
1 parent 2ef90d8 commit 4e91c93

File tree

21 files changed

+158
-100
lines changed

21 files changed

+158
-100
lines changed

devices/Amg88xx/Amg88xx.nfproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,11 @@
6464
<ProjectConfigurationsDeclaredAsItems />
6565
</ProjectCapabilities>
6666
</ProjectExtensions>
67+
<Import Project="packages\Nerdbank.GitVersioning.3.4.194\build\Nerdbank.GitVersioning.targets" Condition="Exists('packages\Nerdbank.GitVersioning.3.4.194\build\Nerdbank.GitVersioning.targets')" />
68+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
69+
<PropertyGroup>
70+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}.</ErrorText>
71+
</PropertyGroup>
72+
<Error Condition="!Exists('packages\Nerdbank.GitVersioning.3.4.194\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Nerdbank.GitVersioning.3.4.194\build\Nerdbank.GitVersioning.targets'))" />
73+
</Target>
6774
</Project>

devices/Amg88xx/packages.config

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="nanoFramework.CoreLibrary" version="1.10.4-preview.11" targetFramework="netnanoframework10" />
4+
<package id="nanoFramework.Runtime.Events" version="1.9.0-preview.26" targetFramework="netnanoframework10" />
5+
<package id="nanoFramework.System.Device.Gpio" version="1.0.0-preview.40" targetFramework="netnanoframework10" />
6+
<package id="nanoFramework.System.Device.I2c" version="1.0.1-preview.33" targetFramework="netnanoframework10" />
7+
<package id="nanoFramework.System.Math" version="1.4.0-preview.5" targetFramework="netnanoframework10" />
8+
<package id="UnitsNet.nanoFramework.Temperature" version="4.91.0" targetFramework="netnanoframework10" />
9+
<package id="Nerdbank.GitVersioning" version="3.4.194" developmentDependency="true" targetFramework="netnanoframework10" />
10+
</packages>

devices/Amg88xx/version.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3+
"version": "1.0",
4+
"assemblyVersion": {
5+
"precision": "minor"
6+
},
7+
"semVer1NumericIdentifierPadding": 3,
8+
"nuGetPackageVersion": {
9+
"semVer": 2.0
10+
},
11+
"publicReleaseRefSpec": [
12+
"^refs/heads/develop$",
13+
"^refs/heads/main$",
14+
"^refs/heads/v\\d+(?:\\.\\d+)?$"
15+
],
16+
"cloudBuild": {
17+
"setAllVariables": true
18+
}
19+
}

devices/Bno055/Bno055.nfproj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
<Compile Include="Properties\AssemblyInfo.cs" />
3737
</ItemGroup>
3838
<ItemGroup>
39-
<None Include="app.config" />
4039
<None Include="packages.config" />
4140
<None Include="README.md" />
4241
</ItemGroup>
@@ -62,7 +61,7 @@
6261
<SpecificVersion>True</SpecificVersion>
6362
</Reference>
6463
<Reference Include="System.Math, Version=1.4.0.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
65-
<HintPath>packages\nanoFramework.System.Math.1.4.0-preview.5\lib\System.Math.dll</HintPath>
64+
<HintPath>packages\nanoFramework.System.Math.1.4.0-preview.7\lib\System.Math.dll</HintPath>
6665
<Private>True</Private>
6766
<SpecificVersion>True</SpecificVersion>
6867
</Reference>
@@ -81,4 +80,11 @@
8180
<ProjectConfigurationsDeclaredAsItems />
8281
</ProjectCapabilities>
8382
</ProjectExtensions>
83+
<Import Project="packages\Nerdbank.GitVersioning.3.4.194\build\Nerdbank.GitVersioning.targets" Condition="Exists('packages\Nerdbank.GitVersioning.3.4.194\build\Nerdbank.GitVersioning.targets')" />
84+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
85+
<PropertyGroup>
86+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}.</ErrorText>
87+
</PropertyGroup>
88+
<Error Condition="!Exists('packages\Nerdbank.GitVersioning.3.4.194\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Nerdbank.GitVersioning.3.4.194\build\Nerdbank.GitVersioning.targets'))" />
89+
</Target>
8490
</Project>

devices/Bno055/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,9 @@
22
using System.Runtime.CompilerServices;
33
using System.Runtime.InteropServices;
44

5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
8-
[assembly: AssemblyTitle("CSharp.BlankApplication")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("CSharp.BlankApplication")]
13-
[assembly: AssemblyCopyright("Copyright © ")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
5+
[assembly: AssemblyTitle("Iot.Device.Bno055")]
6+
[assembly: AssemblyCompany("nanoFramework Contributors")]
7+
[assembly: AssemblyCopyright("Copyright(c).NET Foundation and Contributors")]
168

17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
19-
// COM, set the ComVisible attribute to true on that type.
209
[assembly: ComVisible(false)]
2110

22-
// Version information for an assembly consists of the following four values:
23-
//
24-
// Major Version
25-
// Minor Version
26-
// Build Number
27-
// Revision
28-
//
29-
// You can specify all the values or you can default the Build and Revision Numbers
30-
// by using the '*' as shown below:
31-
// [assembly: AssemblyVersion("1.0.*")]
32-
[assembly: AssemblyVersion("1.0.0.0")]
33-
[assembly: AssemblyFileVersion("1.0.0.0")]

devices/Bno055/app.config

Lines changed: 0 additions & 11 deletions
This file was deleted.

devices/Bno055/packages.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<package id="nanoFramework.Runtime.Events" version="1.9.0-preview.26" targetFramework="netnanoframework10" />
55
<package id="nanoFramework.System.Device.Gpio" version="1.0.0-preview.40" targetFramework="netnanoframework10" />
66
<package id="nanoFramework.System.Device.I2c" version="1.0.1-preview.33" targetFramework="netnanoframework10" />
7-
<package id="nanoFramework.System.Math" version="1.4.0-preview.5" targetFramework="netnanoframework10" />
7+
<package id="nanoFramework.System.Math" version="1.4.0-preview.7" targetFramework="netnanoframework10" />
8+
<package id="Nerdbank.GitVersioning" version="3.4.194" developmentDependency="true" targetFramework="netnanoframework10" />
89
<package id="UnitsNet.nanoFramework.Temperature" version="4.91.0" targetFramework="netnanoframework10" />
910
</packages>

devices/Bno055/version.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3+
"version": "1.0",
4+
"assemblyVersion": {
5+
"precision": "minor"
6+
},
7+
"semVer1NumericIdentifierPadding": 3,
8+
"nuGetPackageVersion": {
9+
"semVer": 2.0
10+
},
11+
"publicReleaseRefSpec": [
12+
"^refs/heads/develop$",
13+
"^refs/heads/main$",
14+
"^refs/heads/v\\d+(?:\\.\\d+)?$"
15+
],
16+
"cloudBuild": {
17+
"setAllVariables": true
18+
}
19+
}

devices/Dhtxx/Dhtxx.nfproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
</Reference>
6464
</ItemGroup>
6565
<ItemGroup>
66-
<None Include="app.config" />
6766
<None Include="packages.config" />
6867
</ItemGroup>
6968
<Import Project="..\..\src\Stopwatch\Stopwatch.projitems" Label="Shared" />
@@ -74,4 +73,11 @@
7473
<ProjectConfigurationsDeclaredAsItems />
7574
</ProjectCapabilities>
7675
</ProjectExtensions>
76+
<Import Project="packages\Nerdbank.GitVersioning.3.4.194\build\Nerdbank.GitVersioning.targets" Condition="Exists('packages\Nerdbank.GitVersioning.3.4.194\build\Nerdbank.GitVersioning.targets')" />
77+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
78+
<PropertyGroup>
79+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}.</ErrorText>
80+
</PropertyGroup>
81+
<Error Condition="!Exists('packages\Nerdbank.GitVersioning.3.4.194\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Nerdbank.GitVersioning.3.4.194\build\Nerdbank.GitVersioning.targets'))" />
82+
</Target>
7783
</Project>

devices/Dhtxx/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,9 @@
22
using System.Runtime.CompilerServices;
33
using System.Runtime.InteropServices;
44

5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
8-
[assembly: AssemblyTitle("CSharp.BlankApplication")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("CSharp.BlankApplication")]
13-
[assembly: AssemblyCopyright("Copyright © ")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
5+
[assembly: AssemblyTitle("Iot.Device.Dhtxxx")]
6+
[assembly: AssemblyCompany("nanoFramework Contributors")]
7+
[assembly: AssemblyCopyright("Copyright(c).NET Foundation and Contributors")]
168

17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
19-
// COM, set the ComVisible attribute to true on that type.
209
[assembly: ComVisible(false)]
2110

22-
// Version information for an assembly consists of the following four values:
23-
//
24-
// Major Version
25-
// Minor Version
26-
// Build Number
27-
// Revision
28-
//
29-
// You can specify all the values or you can default the Build and Revision Numbers
30-
// by using the '*' as shown below:
31-
// [assembly: AssemblyVersion("1.0.*")]
32-
[assembly: AssemblyVersion("1.0.0.0")]
33-
[assembly: AssemblyFileVersion("1.0.0.0")]
34-
35-
/////////////////////////////////////////////////////////////////
36-
// This attribute is mandatory when building Interop libraries //
37-
// update this whenever the native assembly signature changes //
38-
[assembly: AssemblyNativeVersion("1.0.0.0")]
39-
/////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)