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

-4
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

+7-7
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

-1
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

+2-2
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

+1-1
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

+4-4
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

+1-1
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

+7-7
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

+10-10
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

-4
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>

samples/I2S/Input/Program.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
using System;
77
using System.Device.I2s;
8-
using System.Diagnostics;using System.IO;
8+
using System.Diagnostics;
9+
using System.IO;
910
using System.Threading;
1011
using MicrophoneIn;
1112
using nanoFramework.Hardware.Esp32;
@@ -22,7 +23,7 @@
2223
Configuration.SetPinFunction(23, DeviceFunction.SPI1_MOSI);
2324
Configuration.SetPinFunction(18, DeviceFunction.SPI1_CLOCK);
2425
Configuration.SetPinFunction(19, DeviceFunction.SPI1_MISO);
25-
var sdCard = new SDCard(new SDCard.SDCardSpiParameters { spiBus = 1, chipSelectPin = cs });
26+
var sdCard = new SDCard(new SDCardSpiParameters { spiBus = 1, chipSelectPin = cs });
2627
sdCard.Mount();
2728

2829
// configure I2s for recording:

samples/I2S/Input/packages.config

-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
<package id="nanoFramework.System.Device.I2s" version="1.0.25" targetFramework="netnano1.0" />
77
<package id="nanoFramework.System.IO.FileSystem" version="1.1.78" targetFramework="netnano1.0" />
88
<package id="nanoFramework.System.IO.Streams" version="1.1.86" targetFramework="netnano1.0" />
9-
<package id="nanoFramework.System.Runtime" version="1.0.28" targetFramework="netnano1.0" />
109
<package id="nanoFramework.System.Text" version="1.3.16" targetFramework="netnano1.0" />
1110
</packages>

samples/I2S/Output/AudioPlayer.nfproj

-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@
3939
<HintPath>packages\nanoFramework.Runtime.Events.1.11.29\lib\nanoFramework.Runtime.Events.dll</HintPath>
4040
<Private>True</Private>
4141
</Reference>
42-
<Reference Include="nanoFramework.System.Runtime, Version=1.0.28.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
43-
<HintPath>packages\nanoFramework.System.Runtime.1.0.28\lib\nanoFramework.System.Runtime.dll</HintPath>
44-
<Private>True</Private>
45-
</Reference>
4642
<Reference Include="nanoFramework.System.Text, Version=1.3.16.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
4743
<HintPath>packages\nanoFramework.System.Text.1.3.16\lib\nanoFramework.System.Text.dll</HintPath>
4844
<Private>True</Private>

samples/I2S/Output/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
Configuration.SetPinFunction(18, DeviceFunction.SPI1_CLOCK);
3636
Configuration.SetPinFunction(19, DeviceFunction.SPI1_MISO);
3737

38-
var sdCard = new SDCard(new SDCard.SDCardSpiParameters { spiBus = 1, chipSelectPin = cs });
38+
var sdCard = new SDCard(new SDCardSpiParameters { spiBus = 1, chipSelectPin = cs });
3939
sdCard.Mount();
4040

4141
// NOTE: If the audio has low quality and lots of static you may need to update

samples/I2S/Output/packages.config

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<package id="nanoFramework.System.IO.FileSystem" version="1.1.78" targetFramework="netnano1.0" />
88
<package id="nanoFramework.System.IO.Streams" version="1.1.86" targetFramework="netnano1.0" />
99
<package id="nanoFramework.System.Math" version="1.5.90" targetFramework="netnano1.0" />
10-
<package id="nanoFramework.System.Runtime" version="1.0.28" targetFramework="netnano1.0" />
1110
<package id="nanoFramework.System.Text" version="1.3.16" targetFramework="netnano1.0" />
1211
<package id="nanoFramework.System.Threading" version="1.1.46" targetFramework="netnano1.0" />
1312
</packages>

samples/Json/JsonConfigurationStore/JsonConfigurationStore.nfproj

-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@
4343
<HintPath>..\packages\nanoFramework.System.Collections.1.5.59\lib\nanoFramework.System.Collections.dll</HintPath>
4444
<Private>True</Private>
4545
</Reference>
46-
<Reference Include="nanoFramework.System.Runtime, Version=1.0.28.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
47-
<HintPath>..\packages\nanoFramework.System.Runtime.1.0.28\lib\nanoFramework.System.Runtime.dll</HintPath>
48-
<Private>True</Private>
49-
</Reference>
5046
<Reference Include="nanoFramework.System.Text, Version=1.3.16.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
5147
<HintPath>..\packages\nanoFramework.System.Text.1.3.16\lib\nanoFramework.System.Text.dll</HintPath>
5248
<Private>True</Private>

samples/Json/JsonConfigurationStore/packages.config

-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
<package id="nanoFramework.System.Collections" version="1.5.59" targetFramework="netnano1.0" />
77
<package id="nanoFramework.System.IO.FileSystem" version="1.1.78" targetFramework="netnano1.0" />
88
<package id="nanoFramework.System.IO.Streams" version="1.1.86" targetFramework="netnano1.0" />
9-
<package id="nanoFramework.System.Runtime" version="1.0.28" targetFramework="netnano1.0" />
109
<package id="nanoFramework.System.Text" version="1.3.16" targetFramework="netnano1.0" />
1110
</packages>

samples/Logging/Logging.nfproj

-4
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@
5454
<HintPath>packages\nanoFramework.System.Collections.1.5.59\lib\nanoFramework.System.Collections.dll</HintPath>
5555
<Private>True</Private>
5656
</Reference>
57-
<Reference Include="nanoFramework.System.Runtime, Version=1.0.28.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
58-
<HintPath>packages\nanoFramework.System.Runtime.1.0.28\lib\nanoFramework.System.Runtime.dll</HintPath>
59-
<Private>True</Private>
60-
</Reference>
6157
<Reference Include="nanoFramework.System.Text, Version=1.3.16.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
6258
<HintPath>packages\nanoFramework.System.Text.1.3.16\lib\nanoFramework.System.Text.dll</HintPath>
6359
<Private>True</Private>

samples/Logging/Logging.sln

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
21
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.31105.61
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.12.35707.178 d17.12
54
MinimumVisualStudioVersion = 10.0.40219.1
65
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "Logging", "Logging.nfproj", "{3DFEB045-AEC1-4C16-B6ED-6CC585C98C40}"
76
EndProject

samples/Logging/MyTestComponent.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// See LICENSE file in the project root for full license information.
44
//
55

6+
using System;
67
using Microsoft.Extensions.Logging;
78
using nanoFramework.Logging;
8-
using System;
99

1010
namespace Logging
1111
{
@@ -25,4 +25,4 @@ public void DoSomeLogging()
2525
_logger.LogWarning(new Exception("Something is not supported"), "With exception context");
2626
}
2727
}
28-
}
28+
}

samples/Logging/Program.cs

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
//
1+
//
22
// Copyright (c) .NET Foundation and Contributors
33
// See LICENSE file in the project root for full license information.
44
//
55

6+
using System;
67
using Microsoft.Extensions.Logging;
78
using nanoFramework.Logging;
89
using nanoFramework.Logging.Debug;
910
using nanoFramework.Logging.Serial;
1011
using nanoFramework.Logging.Stream;
11-
using System;
12-
using System.Diagnostics;
13-
using System.Threading;
14-
using System.IO.Ports;
1512
#if BUIID_FOR_ESP32
1613
using nanoFramework.Hardware.Esp32;
1714
#endif
@@ -23,7 +20,7 @@ public class Program
2320
private static DebugLogger _logger;
2421

2522
public static void Main()
26-
{
23+
{
2724
_logger = new DebugLogger("Example");
2825
_logger.MinLogLevel = LogLevel.Trace;
2926
_logger.LogInformation("Hello from nanoFramework!");

samples/Logging/packages.config

-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
<package id="nanoFramework.System.IO.FileSystem" version="1.1.78" targetFramework="netnano1.0" />
1111
<package id="nanoFramework.System.IO.Ports" version="1.1.119" targetFramework="netnano1.0" />
1212
<package id="nanoFramework.System.IO.Streams" version="1.1.86" targetFramework="netnano1.0" />
13-
<package id="nanoFramework.System.Runtime" version="1.0.28" targetFramework="netnano1.0" />
1413
<package id="nanoFramework.System.Text" version="1.3.16" targetFramework="netnano1.0" />
1514
</packages>

samples/System.IO.FileSystem/BasicFileSystemExample/BasicFileSystemExample.nfproj

-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@
3333
<HintPath>packages\nanoFramework.Runtime.Events.1.11.29\lib\nanoFramework.Runtime.Events.dll</HintPath>
3434
<Private>True</Private>
3535
</Reference>
36-
<Reference Include="nanoFramework.System.Runtime, Version=1.0.28.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
37-
<HintPath>packages\nanoFramework.System.Runtime.1.0.28\lib\nanoFramework.System.Runtime.dll</HintPath>
38-
<Private>True</Private>
39-
</Reference>
4036
<Reference Include="nanoFramework.System.Text, Version=1.3.16.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
4137
<HintPath>packages\nanoFramework.System.Text.1.3.16\lib\nanoFramework.System.Text.dll</HintPath>
4238
<Private>True</Private>

samples/System.IO.FileSystem/BasicFileSystemExample/Program.cs

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
//
2+
// Copyright (c) .NET Foundation and Contributors
3+
// See LICENSE file in the project root for full license information.
4+
//
5+
26
using System.Diagnostics;
37
using System.IO;
48
using System.Text;
@@ -27,8 +31,8 @@ public static void Main()
2731
// Wait until the Storage Devices are mounted (SD Card & USB).
2832
// This usally takes some seconds after startup.
2933
// Not required for Internal drive or drives mounted from managed code. See mount sample.
30-
Thread.Sleep(3000);
31-
34+
Thread.Sleep(3000);
35+
3236
// D: is SD Card
3337
// E: is USB drive
3438
// I: is Internal flash drive
@@ -38,13 +42,13 @@ public static void Main()
3842
Debug.WriteLine("+++++ System.IO.FileSystem examples +++++");
3943

4044
Debug.WriteLine("+++++ Creating a sample file +++++");
41-
var fs=File.Create(sampleFilePath);
45+
var fs = File.Create(sampleFilePath);
4246

4347
byte[] sampleBuffer = Encoding.UTF8.GetBytes(sampleText);
4448

4549
fs.Write(sampleBuffer, 0, sampleBuffer.Length);
4650

47-
if(fs.CanSeek)
51+
if (fs.CanSeek)
4852
{
4953
Debug.WriteLine("+++++ Modify sample file +++++");
5054
// Seek to beginning of the file and write something there

samples/System.IO.FileSystem/BasicFileSystemExample/packages.config

-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
<package id="nanoFramework.Runtime.Events" version="1.11.29" targetFramework="netnano1.0" />
55
<package id="nanoFramework.System.IO.FileSystem" version="1.1.78" targetFramework="netnano1.0" />
66
<package id="nanoFramework.System.IO.Streams" version="1.1.86" targetFramework="netnano1.0" />
7-
<package id="nanoFramework.System.Runtime" version="1.0.28" targetFramework="netnano1.0" />
87
<package id="nanoFramework.System.Text" version="1.3.16" targetFramework="netnano1.0" />
98
</packages>

samples/System.IO.FileSystem/MountExample/MountExample.nfproj

-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@
3333
<HintPath>packages\nanoFramework.Runtime.Events.1.11.29\lib\nanoFramework.Runtime.Events.dll</HintPath>
3434
<Private>True</Private>
3535
</Reference>
36-
<Reference Include="nanoFramework.System.Runtime, Version=1.0.28.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
37-
<HintPath>packages\nanoFramework.System.Runtime.1.0.28\lib\nanoFramework.System.Runtime.dll</HintPath>
38-
<Private>True</Private>
39-
</Reference>
4036
<Reference Include="nanoFramework.System.Text, Version=1.3.16.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
4137
<HintPath>packages\nanoFramework.System.Text.1.3.16\lib\nanoFramework.System.Text.dll</HintPath>
4238
<Private>True</Private>

0 commit comments

Comments
 (0)