Skip to content

Commit ad1ee3b

Browse files
committed
Update
1 parent 6997cbd commit ad1ee3b

3 files changed

Lines changed: 68 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using System;
2+
using System.Runtime.InteropServices;
3+
4+
namespace dotnet_iot_fastiot_test
5+
{
6+
class Program
7+
{
8+
static void Main(string[] args)
9+
{
10+
//FastIot Test
11+
Console.WriteLine("Test .NET console application!");
12+
var framework=RuntimeInformation.FrameworkDescription;
13+
var osArch=RuntimeInformation.OSArchitecture;
14+
var osDesc= RuntimeInformation.OSDescription;
15+
var osIdent=RuntimeInformation.RuntimeIdentifier;
16+
var userName = Environment.UserName;
17+
var enFastiot=Environment.GetEnvironmentVariable("FASTIOT");
18+
//output
19+
Console.WriteLine($".NET version: {framework}");
20+
Console.WriteLine($"OS architecture: {osArch}");
21+
Console.WriteLine($"OS version: {osDesc}");
22+
Console.WriteLine($"OS Id: {osIdent}");
23+
Console.WriteLine($"RunAs: {userName}");
24+
Console.WriteLine($"FASTIOT: {enFastiot}");
25+
//
26+
Console.WriteLine("Successfully!");
27+
}
28+
}
29+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net5.0</TargetFramework>
6+
<RootNamespace>dotnet_iot_fastiot_test</RootNamespace>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Iot.Device.Bindings" Version="1.5.0" />
11+
<PackageReference Include="System.Device.Gpio" Version="1.5.0" />
12+
</ItemGroup>
13+
14+
</Project>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.31702.278
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnet-iot-fastiot-test", "dotnet-iot-fastiot-test.csproj", "{3ED4301F-D588-43C8-A27B-3A90C49BEB1F}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{3ED4301F-D588-43C8-A27B-3A90C49BEB1F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{3ED4301F-D588-43C8-A27B-3A90C49BEB1F}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{3ED4301F-D588-43C8-A27B-3A90C49BEB1F}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{3ED4301F-D588-43C8-A27B-3A90C49BEB1F}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {1EA079B1-D0BA-42B5-95AE-CE2DAA8EF318}
24+
EndGlobalSection
25+
EndGlobal

0 commit comments

Comments
 (0)