Skip to content

Commit d056bb2

Browse files
authored
Maintenance on several samples (#409)
1 parent 8bdc94c commit d056bb2

40 files changed

+86
-141
lines changed

samples/AzureSDK/AzureEdgeOta/AzureEdgeOTAEngine/AzureEdgeOTAEngine.nfproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@
8282
<HintPath>..\packages\nanoFramework.System.Collections.1.5.59\lib\nanoFramework.System.Collections.dll</HintPath>
8383
<Private>True</Private>
8484
</Reference>
85-
<Reference Include="nanoFramework.System.Runtime, Version=1.0.28.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
86-
<HintPath>..\packages\nanoFramework.System.Runtime.1.0.28\lib\nanoFramework.System.Runtime.dll</HintPath>
87-
<Private>True</Private>
88-
</Reference>
8985
<Reference Include="nanoFramework.System.Text, Version=1.3.16.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
9086
<HintPath>..\packages\nanoFramework.System.Text.1.3.16\lib\nanoFramework.System.Text.dll</HintPath>
9187
<Private>True</Private>

samples/AzureSDK/AzureEdgeOta/AzureEdgeOTAEngine/Program.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
// Copyright (c) .NET Foundation and Contributors
22
// See LICENSE file in the project root for full license information.
33

4-
using AzureEdgeOTAEngine;
5-
using nanoFramework.Azure.Devices.Client;
6-
using nanoFramework.Azure.Devices.Shared;
7-
using nanoFramework.Hardware.Esp32;
8-
using nanoFramework.Json;
9-
using nanoFramework.M2Mqtt.Messages;
10-
using nanoFramework.Networking;
114
using System;
125
using System.Buffers.Binary;
136
using System.Collections;
@@ -18,6 +11,13 @@
1811
using System.Security.Cryptography;
1912
using System.Security.Cryptography.X509Certificates;
2013
using System.Threading;
14+
using AzureEdgeOTAEngine;
15+
using nanoFramework.Azure.Devices.Client;
16+
using nanoFramework.Azure.Devices.Shared;
17+
using nanoFramework.Hardware.Esp32;
18+
using nanoFramework.Json;
19+
using nanoFramework.M2Mqtt.Messages;
20+
using nanoFramework.Networking;
2121

2222
const string RootPath = "I:\\";
2323
const string Version = RootPath + "version";

samples/AzureSDK/AzureEdgeOta/AzureEdgeOTAEngine/packages.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<package id="nanoFramework.System.Net" version="1.11.27" targetFramework="netnano1.0" />
2020
<package id="nanoFramework.System.Net.Http" version="1.5.175" targetFramework="netnano1.0" />
2121
<package id="nanoFramework.System.Net.Http.Client" version="1.5.175" targetFramework="netnano1.0" />
22-
<package id="nanoFramework.System.Runtime" version="1.0.28" targetFramework="netnano1.0" />
2322
<package id="nanoFramework.System.Text" version="1.3.16" targetFramework="netnano1.0" />
2423
<package id="nanoFramework.System.Threading" version="1.1.46" targetFramework="netnano1.0" />
2524
</packages>

samples/AzureSDK/AzureEdgeOta/CountMeasurement/CountMeasurement.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright (c) .NET Foundation and Contributors
22
// See LICENSE file in the project root for full license information.
33

4-
using nanoFramework.Azure.Devices.Client;
5-
using nanoFramework.Azure.Devices.Shared;
64
using System.Diagnostics;
75
using System.Threading;
6+
using nanoFramework.Azure.Devices.Client;
7+
using nanoFramework.Azure.Devices.Shared;
88

99
namespace CountMeasurement
1010
{

samples/AzureSDK/AzureEdgeOta/FindPeFiles/FindPeFiles.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Azure.Storage.Blobs" Version="12.17.0" />
12+
<PackageReference Include="Azure.Storage.Blobs" Version="12.23.0" />
1313
<PackageReference Include="CommandLineParser" Version="2.9.1" />
1414
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
1515
</ItemGroup>

samples/AzureSDK/AzureEdgeOta/FindPeFiles/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Copyright (c) .NET Foundation and Contributors
22
// See LICENSE file in the project root for full license information.
33

4+
using System.Data;
5+
using System.Security.Cryptography;
46
using Azure;
57
using Azure.Storage.Blobs;
68
using AzureEdgeOTAEngine;
79
using CommandLine;
810
using FindPeFiles;
911
using Newtonsoft.Json;
10-
using System.Data;
11-
using System.Security.Cryptography;
1212

1313
Parser.Default.ParseArguments<CommandOptions>(args).WithParsed<CommandOptions>(o =>
1414
{
@@ -47,7 +47,7 @@
4747
fs.Read(buff, 0, buff.Length);
4848
var sah256Computed = sha256.ComputeHash(buff);
4949
var signature = BitConverter.ToString(sah256Computed);
50-
Console.WriteLine($" sha256: {signature }");
50+
Console.WriteLine($" sha256: {signature}");
5151
BlobClient blobClient = containerClient.GetBlobClient(fileName);
5252
blobClient.DeleteIfExists();
5353
var res = blobClient.Upload(file);
@@ -59,4 +59,4 @@
5959
Console.WriteLine();
6060
Console.WriteLine("Twin for the device:");
6161
Console.WriteLine(JsonConvert.SerializeObject(fileSettings));
62-
});
62+
});

samples/AzureSDK/AzureSDKBasicFullyManaged/AzureSDKBasic.nfproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
99
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
1010
<ProjectTypeGuids>{11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
11-
<ProjectGuid>eff73131-09b6-4451-8390-3c6ddb225acd</ProjectGuid>
11+
<ProjectGuid>d6fac34f-230e-4b57-9fca-831a60f5a03a</ProjectGuid>
1212
<OutputType>Exe</OutputType>
1313
<AppDesignerFolder>Properties</AppDesignerFolder>
1414
<FileAlignment>512</FileAlignment>

samples/AzureSDK/AzureSDKBasicFullyManaged/AzureSDKBasic.sln

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.3.32929.385
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "AzureSDKBasic", "AzureSDKBasic.nfproj", "{EFF73131-09B6-4451-8390-3C6DDB225ACD}"
6+
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "AzureSDKBasic", "AzureSDKBasic.nfproj", "{d6fac34f-230e-4b57-9fca-831a60f5a03a}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|Any CPU = Debug|Any CPU
1111
Release|Any CPU = Release|Any CPU
1212
EndGlobalSection
1313
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{EFF73131-09B6-4451-8390-3C6DDB225ACD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{EFF73131-09B6-4451-8390-3C6DDB225ACD}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{EFF73131-09B6-4451-8390-3C6DDB225ACD}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
17-
{EFF73131-09B6-4451-8390-3C6DDB225ACD}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{EFF73131-09B6-4451-8390-3C6DDB225ACD}.Release|Any CPU.Build.0 = Release|Any CPU
19-
{EFF73131-09B6-4451-8390-3C6DDB225ACD}.Release|Any CPU.Deploy.0 = Release|Any CPU
14+
{d6fac34f-230e-4b57-9fca-831a60f5a03a}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{d6fac34f-230e-4b57-9fca-831a60f5a03a}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{d6fac34f-230e-4b57-9fca-831a60f5a03a}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
17+
{d6fac34f-230e-4b57-9fca-831a60f5a03a}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{d6fac34f-230e-4b57-9fca-831a60f5a03a}.Release|Any CPU.Build.0 = Release|Any CPU
19+
{d6fac34f-230e-4b57-9fca-831a60f5a03a}.Release|Any CPU.Deploy.0 = Release|Any CPU
2020
{9EDF2863-99AC-4CA1-93FE-F48ED3C6D45F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2121
{9EDF2863-99AC-4CA1-93FE-F48ED3C6D45F}.Debug|Any CPU.Build.0 = Debug|Any CPU
2222
{9EDF2863-99AC-4CA1-93FE-F48ED3C6D45F}.Debug|Any CPU.Deploy.0 = Debug|Any CPU

samples/AzureSDK/AzureSDKBasicFullyManaged/Program.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
// See LICENSE file in the project root for full license information.
44
//
55

6-
using nanoFramework.Azure.Devices.Client;
7-
using nanoFramework.Azure.Devices.Shared;
86
using System;
97
using System.Collections;
10-
using System.Threading;
118
using System.Diagnostics;
12-
using nanoFramework.Json;
13-
using nanoFramework.Hardware.Esp32;
14-
using AzureSDKBasic;
15-
using IoT.Device.AtModem.Modem;
169
using System.IO.Ports;
17-
using IoT.Device.AtModem;
18-
using IoT.Device.AtModem.DTOs;
19-
using IoT.Device.AtModem.Events;
10+
using System.Threading;
11+
using AzureSDKBasic;
12+
using Iot.Device.AtModem;
13+
using Iot.Device.AtModem.DTOs;
14+
using Iot.Device.AtModem.Events;
15+
using Iot.Device.AtModem.Modem;
16+
using nanoFramework.Azure.Devices.Client;
17+
using nanoFramework.Azure.Devices.Shared;
18+
using nanoFramework.Hardware.Esp32;
19+
using nanoFramework.Json;
2020
using nanoFramework.Runtime.Native;
2121

2222
const string DeviceID = "devicename";

samples/I2S/Input/MicrophoneIn.nfproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@
3838
<HintPath>packages\nanoFramework.Runtime.Events.1.11.29\lib\nanoFramework.Runtime.Events.dll</HintPath>
3939
<Private>True</Private>
4040
</Reference>
41-
<Reference Include="nanoFramework.System.Runtime, Version=1.0.28.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
42-
<HintPath>packages\nanoFramework.System.Runtime.1.0.28\lib\nanoFramework.System.Runtime.dll</HintPath>
43-
<Private>True</Private>
44-
</Reference>
4541
<Reference Include="nanoFramework.System.Text, Version=1.3.16.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
4642
<HintPath>packages\nanoFramework.System.Text.1.3.16\lib\nanoFramework.System.Text.dll</HintPath>
4743
<Private>True</Private>

0 commit comments

Comments
 (0)