updated examples and templates

This commit is contained in:
Spyros Garyfallos 2020-01-21 15:47:55 -08:00
Родитель 5ebcbcb180
Коммит 4aae892924
75 изменённых файлов: 73 добавлений и 1285 удалений

Просмотреть файл

@ -29,7 +29,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="1.0.10.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -14,7 +14,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="1.0.10.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -13,7 +13,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="1.0.10.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -13,7 +13,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="1.0.10.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<PackageReference Include="WaveGenerator" Version="1.2.0" />
</ItemGroup>

Просмотреть файл

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp2.2</TargetFramework>
<ApplicationIcon />
<OutputType>Exe</OutputType>
<LangVersion>latest</LangVersion>
@ -15,7 +15,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="1.0.2" />
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="1.0.10.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp2.2</TargetFramework>
<DockerComposeProjectPath>..\..\docker-compose.dcproj</DockerComposeProjectPath>
<UserSecretsId>ab76f0af-b3ab-4686-90f7-1a31d9a8504a</UserSecretsId>
</PropertyGroup>

Просмотреть файл

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp2.2</TargetFramework>
<LangVersion>latest</LangVersion>
<Configurations>Debug;Release</Configurations>
</PropertyGroup>
@ -20,7 +20,7 @@
<ItemGroup>
<PackageReference Include="rocksdb-native-arm" Version="5.4.6" />
<PackageReference Include="RocksDbNative" Version="5.17.2" />
<PackageReference Include="Microsoft.Azure.TypeEdge.Host" Version="0.4.4.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<PackageReference Include="Microsoft.Azure.TypeEdge.Host" Version="1.0.10.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -7,14 +7,15 @@
"type": "docker",
"settings": {
"minDockerVersion": "v1.25",
"loggingOptions": ""
"loggingOptions": "",
"registryCredentials": {}
}
},
"systemModules": {
"edgeAgent": {
"type": "docker",
"settings": {
"image": "typeedge.azurecr.io/edgeAgent:latest",
"image": "mcr.microsoft.com/azureiotedge-agent:1.0",
"createOptions": "{}"
}
},
@ -23,8 +24,8 @@
"status": "running",
"restartPolicy": "always",
"settings": {
"image": "typeedge.azurecr.io/edgeHub:latest",
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"8883/tcp\":[{\"HostPort\":\"8883\"}],\"443/tcp\":[{\"HostPort\":\"443\"}],\"5671/tcp\":[{\"HostPort\":\"5671\"}]}}}"
"image": "mcr.microsoft.com/azureiotedge-hub:1.0",
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"5671/tcp\":[{\"HostPort\":\"5671\"}],\"8883/tcp\":[{\"HostPort\":\"8883\"}],\"443/tcp\":[{\"HostPort\":\"443\"}]}}}"
}
}
},

Просмотреть файл

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp2.2</TargetFramework>
<LangVersion>latest</LangVersion>
<OutputType>Exe</OutputType>
<Configurations>Debug;Release</Configurations>
@ -12,7 +12,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge.Proxy" Version="0.4.4.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<PackageReference Include="Microsoft.Azure.TypeEdge.Proxy" Version="1.0.10.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
</ItemGroup>

Просмотреть файл

@ -10,7 +10,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="1.0.10.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -13,7 +13,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="1.0.10.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<PackageReference Include="WaveGenerator" Version="1.2.0" />
</ItemGroup>

Просмотреть файл

@ -23,17 +23,9 @@
<PackageReference Include="RocksDbNative" Version="5.17.2" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge.Host" Version="0.4.4.*" Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"/>
<PackageReference Include="Microsoft.Azure.TypeEdge.Host" Version="1.0.10.*" Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'" />
<ProjectReference Include="..\..\..\Microsoft.Azure.TypeEdge.Host\Microsoft.Azure.TypeEdge.Host.csproj" Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Devices.Client" Version="1.21.3" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Devices.Shared" Version="1.16.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Modules\TemperatureSensor\TemperatureSensor.csproj" />

Просмотреть файл

@ -12,7 +12,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge.Proxy" Version="0.4.4.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<PackageReference Include="Microsoft.Azure.TypeEdge.Proxy" Version="1.0.10.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
</ItemGroup>

Просмотреть файл

@ -10,7 +10,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="1.0.10.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<ProjectReference Include="..\..\..\Microsoft.Azure.TypeEdge\Microsoft.Azure.TypeEdge.csproj" Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'" />
</ItemGroup>

Просмотреть файл

@ -16,21 +16,20 @@
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<dependencies>
<group targetFramework=".NETCoreApp2.1">
<dependency id="Microsoft.Azure.TypeEdge" version="0.4.4.*" exclude="Build,Analyzers" />
<dependency id="Microsoft.Azure.TypeEdge" version="1.0.10.*" exclude="Build,Analyzers" />
<dependency id="Docker.DotNet" version="3.125.2.0" exclude="Build,Analyzers" />
<dependency id="Serilog.Extensions.Logging" version="1.4.0" exclude="Build,Analyzers" />
<dependency id="Serilog.Extensions.Logging" version="1.4.0" exclude="Build,Analyzers" />
<dependency id="Serilog.Sinks.Console" version="2.1.0" exclude="Build,Analyzers" />
<dependency id="Serilog.Extensions.Logging" version="2.0.2" exclude="Build,Analyzers" />
<dependency id="Serilog.Sinks.Console" version="3.1.1" exclude="Build,Analyzers" />
<dependency id="Microsoft.Extensions.DependencyInjection" version="2.1.1" exclude="Build,Analyzers" />
<dependency id="Microsoft.Azure.Devices" version="1.17.1" exclude="Build,Analyzers" />
<dependency id="Microsoft.Azure.Devices" version="1.18.2" exclude="Build,Analyzers" />
<dependency id="System.IO.FileSystem.Watcher" version="4.3.0" />
<dependency id="System.Reactive" version="3.1.1" />
<dependency id="System.Reactive" version="4.1.3" />
<dependency id="System.Threading.Thread" version="4.3.0" />
<dependency id="Microsoft.Azure.Amqp" version="2.3.5" />
<dependency id="Microsoft.Azure.Amqp" version="2.4.2" />
<dependency id="Stateless" version="4.0.0" />
<dependency id="JetBrains.Annotations" version="11.1.0" />
<dependency id="Microsoft.Azure.Devices.Client" version="1.17.0" />
<dependency id="System.ValueTuple" version="4.4.0" />
<dependency id="JetBrains.Annotations" version="2018.3.0" />
<dependency id="Microsoft.Azure.Devices.Client" version="1.21.3" />
<dependency id="System.ValueTuple" version="4.5.0" />
<dependency id="Microsoft.AspNetCore" version="2.1.1" />
<dependency id="Microsoft.AspNetCore.Hosting" version="2.1.1" />
<dependency id="Microsoft.AspNetCore.Http" version="2.1.1" />
@ -38,25 +37,25 @@
<dependency id="Microsoft.AspNetCore.Http.Features" version="2.1.1" />
<dependency id="Microsoft.AspNetCore.Mvc" version="2.1.1" />
<dependency id="Microsoft.AspNetCore.WebSockets" version="2.1.1" />
<dependency id="Microsoft.Extensions.Configuration" version="2.1.1" />
<dependency id="Microsoft.Extensions.Configuration.Binder" version="2.1.1" />
<dependency id="Autofac" version="4.5.0" />
<dependency id="Microsoft.Extensions.Configuration" version="2.1.1" />
<dependency id="Microsoft.Extensions.Configuration.EnvironmentVariables" version="2.1.1" />
<dependency id="Autofac.Extensions.DependencyInjection" version="4.1.0" />
<dependency id="RocksDbNative" version="5.4.6.10" />
<dependency id="RocksDbSharp" version="5.4.6.10" />
<dependency id="Microsoft.Extensions.Logging" version="2.1.1" />
<dependency id="Portable.BouncyCastle" version="1.8.2" />
<dependency id="Microsoft.Extensions.Configuration.Binder" version="2.2.0" />
<dependency id="Autofac" version="4.9.1" />
<dependency id="Microsoft.Extensions.Configuration" version="2.2.0" />
<dependency id="Microsoft.Extensions.Configuration.EnvironmentVariables" version="2.2.0" />
<dependency id="Autofac.Extensions.DependencyInjection" version="4.3.1" />
<dependency id="RocksDbNative" version="5.17.2" />
<dependency id="RocksDbSharp" version="5.17.2" />
<dependency id="Microsoft.Extensions.Logging" version="2.2.0" />
<dependency id="Portable.BouncyCastle" version="1.8.5" />
<dependency id="System.Runtime.Loader" version="4.3.0" />
<dependency id="System.ValueTuple" version="4.4.0" />
<dependency id="Antlr4" version="4.6.1-beta002" />
<dependency id="Microsoft.Extensions.Logging.Console" version="2.1.1" />
<dependency id="Microsoft.Extensions.Logging.Console" version="2.2.0" />
<dependency id="System.Collections.Immutable" version="1.5.0" />
<dependency id="System.Reflection.Extensions" version="4.3.0" />
<dependency id="System.Reflection.TypeExtensions" version="4.3.0" />
<dependency id="System.Reflection.TypeExtensions" version="4.5.1" />
<dependency id="System.Threading.Tasks.Dataflow" version="4.7.0" />
<dependency id="Microsoft.Azure.Devices.ProtocolGateway.Core" version="2.0.1" />
<dependency id="Nito.AsyncEx.Coordination" version="5.0.0" />
</group>
</dependencies>

Просмотреть файл

@ -6,7 +6,7 @@
<Authors>Microsoft</Authors>
<TargetFramework>netcoreapp2.1</TargetFramework>
<Configurations>Debug;Release</Configurations>
<Version>1.0.10.1</Version>
<Version>1.0.10.38</Version>
<NuspecProperties>version=$(Version)</NuspecProperties>
<NuspecFile>.nuspec</NuspecFile>
<AssemblyName>Microsoft.Azure.TypeEdge.Host</AssemblyName>

Просмотреть файл

@ -4,7 +4,7 @@
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PackageId>Microsoft.Azure.TypeEdge.Proxy</PackageId>
<Authors>Microsoft</Authors>
<Version>1.0.10.1</Version>
<Version>1.0.10.9</Version>
<PackageProjectUrl>https://aka.ms/TypeEdge</PackageProjectUrl>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<PackageLicenseUrl>https://github.com/Azure/TypeEdge/blob/master/LICENSE</PackageLicenseUrl>
@ -32,7 +32,7 @@
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Azure.TypeEdge\Microsoft.Azure.TypeEdge.csproj"/>
<ProjectReference Include="..\Microsoft.Azure.TypeEdge\Microsoft.Azure.TypeEdge.csproj" />
</ItemGroup>
<!--<ItemGroup>
<PackageReference Include="Microsoft.Azure.Devices" Version="1.18.2" Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'" />

Просмотреть файл

@ -26,12 +26,12 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge.Host" Version="0.4.4.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<PackageReference Include="Microsoft.Azure.TypeEdge.Host" Version="1.0.10.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<ProjectReference Include="..\Microsoft.Azure.TypeEdge.Host\Microsoft.Azure.TypeEdge.Host.csproj" Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge.Proxy" Version="0.4.4.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<PackageReference Include="Microsoft.Azure.TypeEdge.Proxy" Version="1.0.10.*" Condition="'$(Configuration)|$(Platform)'!='Debug|AnyCPU'" />
<ProjectReference Include="..\Microsoft.Azure.TypeEdge.Proxy\Microsoft.Azure.TypeEdge.Proxy.csproj" Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'" />
</ItemGroup>

Просмотреть файл

@ -4,7 +4,7 @@
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PackageId>Microsoft.Azure.TypeEdge</PackageId>
<Authors>Microsoft</Authors>
<Version>1.0.10.1</Version>
<Version>1.0.10.35</Version>
<PackageProjectUrl>https://aka.ms/TypeEdge</PackageProjectUrl>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<PackageLicenseUrl>https://github.com/Azure/TypeEdge/blob/master/LICENSE</PackageLicenseUrl>
@ -38,7 +38,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.2.0" />
<PackageReference Include="MSBump" Version="2.3.2">

Просмотреть файл

@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.36" />
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="1.0.10.*" />
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.36" />
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="1.0.10.*" />
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -15,8 +15,8 @@
<ItemGroup>
<PackageReference Include="rocksdb-native-arm" Version="5.4.6" />
<PackageReference Include="RocksDbNative" Version="5.4.6.10" />
<PackageReference Include="Microsoft.Azure.TypeEdge.Host" Version="0.4.4.37" />
<PackageReference Include="RocksDbNative" Version="5.17.2" />
<PackageReference Include="Microsoft.Azure.TypeEdge.Host" Version="1.0.10.*" />
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge.Proxy" Version="0.4.4.36" />
<PackageReference Include="Microsoft.Azure.TypeEdge.Proxy" Version="1.0.10.*" />
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -5,7 +5,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.36" />
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="1.0.10.8" />
</ItemGroup>
</Project>

Просмотреть файл

@ -7,7 +7,9 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge.Host" Version="0.4.4.*" />
<PackageReference Include="rocksdb-native-arm" Version="5.4.6" />
<PackageReference Include="RocksDbNative" Version="5.17.2" />
<PackageReference Include="Microsoft.Azure.TypeEdge.Host" Version="1.0.10.*"/>
</ItemGroup>
</Project>

Просмотреть файл

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Microsoft.Azure.TypeEdge.Templates.ML</id>
<description>Creates a new Azure IoT Edge ML solution for TypeEdge, a strongly typed Azure IoT Edge framework</description>
<version>$version$</version>
<authors>Microsoft</authors>
<projectUrl>https://aka.ms/TypeEdge</projectUrl>
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
<licenseUrl>https://github.com/Azure/TypeEdge/blob/master/LICENSE</licenseUrl>
<tags>Microsoft;Azure;IoT;Edge;TypeEdge</tags>
<iconUrl>https://github.com/Azure/TypeEdge/blob/master/Templates/favicon.ico</iconUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<language>en-US</language>
<packageTypes>
<packageType name="Template" />
</packageTypes>
</metadata>
</package>

Просмотреть файл

@ -1,10 +0,0 @@
.dockerignore
.git
.gitignore
.vs
.vscode
docker-compose.yml
docker-compose.*.yml
*/bin
*/obj
nuget.exe

Просмотреть файл

@ -1 +0,0 @@
DOCKER_REGISTRY=registry/

Просмотреть файл

@ -1,24 +0,0 @@
{
"symbolInfo": {
"module1Name": {
"longName": "module1-name",
"shortName": "m1"
},
"module2Name": {
"longName": "module2-name",
"shortName": "m2"
},
"module3Name": {
"longName": "module3-name",
"shortName": "m3"
},
"connectionString": {
"longName": "connection-string",
"shortName": "cs"
},
"containerRegistry": {
"longName": "container-registry",
"shortName": "cr"
}
}
}

Просмотреть файл

@ -1,84 +0,0 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Microsoft",
"classifications": [ "TypeEdge", "Azure", "IoT", "Edge", "ML" ],
"name": "Type Edge ML",
"identity": "Microsoft.Azure.TypeEdge.Templates.ML.CSharp",
"groupIdentity": "TypeEdgeML",
"shortName": "typeedgeml",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "TypeEdgeML",
"preferNameDirectory": true,
"symbols": {
"appNameLower": {
"type": "generated",
"generator": "casing",
"parameters": {
"source": "name",
"toLower": true
},
"replaces": "emulatorimage"
},
"module1Name": {
"type": "parameter",
"defaultValue": "Module1",
"replaces": "TypeEdgeModule1",
"fileRename": "TypeEdgeModule1",
"description": "The name of the first TypeEdge Module"
},
"module1NameLower": {
"type": "generated",
"generator": "casing",
"parameters": {
"source": "module1Name",
"toLower": true
},
"replaces": "module1image"
},
"module2Name": {
"type": "parameter",
"defaultValue": "Module2",
"replaces": "TypeEdgeModule2",
"fileRename": "TypeEdgeModule2",
"description": "The name of the second TypeEdge Module"
},
"module2NameLower": {
"type": "generated",
"generator": "casing",
"parameters": {
"source": "module2Name",
"toLower": true
},
"replaces": "module2image"
},
"module3Name": {
"type": "parameter",
"defaultValue": "Module3",
"replaces": "TypeEdgeModule3",
"fileRename": "TypeEdgeModule3",
"description": "The name of the third TypeEdge Module"
},
"module3NameLower": {
"type": "generated",
"generator": "casing",
"parameters": {
"source": "module3Name",
"toLower": true
},
"replaces": "module3image"
},
"connectionString": {
"type": "parameter",
"replaces": "CONNECTION_STRING",
"description": "The IoT Hub owner connection string"
},
"containerRegistry": {
"type": "parameter",
"replaces": "registry",
"description": "The container registry login FQN"
}
}
}

28
Templates/TypeEdgeML/.vscode/launch.json поставляемый
Просмотреть файл

@ -1,28 +0,0 @@
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/TypeEdgeML.Emulator/bin/Debug/netcoreapp2.1/TypeEdgeML.Emulator.dll",
"args": [],
"cwd": "${workspaceFolder}/TypeEdgeML.Emulator",
// For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window
"console": "internalConsole",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
,]
}

15
Templates/TypeEdgeML/.vscode/tasks.json поставляемый
Просмотреть файл

@ -1,15 +0,0 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/TypeEdgeML.sln"
],
"problemMatcher": "$msCompile"
}
]
}

Просмотреть файл

@ -1,19 +0,0 @@
ARG base_tag=2.1-runtime-stretch-slim
FROM microsoft/dotnet:${base_tag} AS base
FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /src
COPY Modules/TypeEdgeModule1/TypeEdgeModule1.csproj Modules/TypeEdgeModule1/
COPY TypeEdgeML.Shared/TypeEdgeML.Shared.csproj TypeEdgeML.Shared/
RUN dotnet restore Modules/TypeEdgeModule1/TypeEdgeModule1.csproj
COPY . .
WORKDIR /src/Modules/TypeEdgeModule1
RUN dotnet build TypeEdgeModule1.csproj -c Release -o /app
FROM build AS publish
RUN dotnet publish TypeEdgeModule1.csproj -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "TypeEdgeModule1.dll"]

Просмотреть файл

@ -1,13 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.TypeEdge;
namespace TypeEdgeModule1
{
internal class Program
{
public static async Task Main(string[] args)
{
await Startup.DockerEntryPoint(args);
}
}
}

Просмотреть файл

@ -1,40 +0,0 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Azure.TypeEdge.Enums;
using Microsoft.Azure.TypeEdge.Modules;
using Microsoft.Azure.TypeEdge.Modules.Endpoints;
using Microsoft.Azure.TypeEdge.Twins;
using Microsoft.Extensions.Logging;
using TypeEdgeML.Shared;
using TypeEdgeML.Shared.Messages;
using TypeEdgeML.Shared.Twins;
namespace Modules
{
public class TypeEdgeModule1 : TypeModule, ITypeEdgeModule1
{
public Output<TypeEdgeModule1Output> Output { get; set; }
public ModuleTwin<TypeEdgeModule1Twin> Twin { get; set; }
public bool ResetModule(int sensorThreshold)
{
Logger.LogInformation($"New sensor threshold:{sensorThreshold}");
return true;
}
public override async Task<ExecutionResult> RunAsync(CancellationToken cancellationToken)
{
while (!cancellationToken.IsCancellationRequested)
{
await Output.PublishAsync(new TypeEdgeModule1Output
{Data = new Random().NextDouble().ToString(CultureInfo.InvariantCulture)});
Logger.LogInformation("Generated Message");
await Task.Delay(1000, cancellationToken);
}
return ExecutionResult.Ok;
}
}
}

Просмотреть файл

@ -1,17 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.*" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\TypeEdgeML.Shared\TypeEdgeML.Shared.csproj" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,19 +0,0 @@
ARG base_tag=2.1-runtime-stretch-slim
FROM microsoft/dotnet:${base_tag} AS base
FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /src
COPY Modules/TypeEdgeModule2/TypeEdgeModule2.csproj Modules/TypeEdgeModule2/
COPY TypeEdgeML.Shared/TypeEdgeML.Shared.csproj TypeEdgeML.Shared/
RUN dotnet restore Modules/TypeEdgeModule2/TypeEdgeModule2.csproj
COPY . .
WORKDIR /src/Modules/TypeEdgeModule2
RUN dotnet build TypeEdgeModule2.csproj -c Release -o /app
FROM build AS publish
RUN dotnet publish TypeEdgeModule2.csproj -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "TypeEdgeModule2.dll"]

Просмотреть файл

@ -1,13 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.TypeEdge;
namespace TypeEdgeModule2
{
internal class Program
{
public static async Task Main(string[] args)
{
await Startup.DockerEntryPoint(args);
}
}
}

Просмотреть файл

@ -1,33 +0,0 @@
using System;
using Microsoft.Azure.TypeEdge.Modules;
using Microsoft.Azure.TypeEdge.Modules.Endpoints;
using Microsoft.Azure.TypeEdge.Modules.Messages;
using Microsoft.Azure.TypeEdge.Twins;
using Microsoft.Extensions.Logging;
using TypeEdgeML.Shared;
using TypeEdgeML.Shared.Messages;
using TypeEdgeML.Shared.Twins;
namespace Modules
{
public class TypeEdgeModule2 : TypeModule, ITypeEdgeModule2
{
public TypeEdgeModule2(ITypeEdgeModule1 proxy)
{
proxy.Output.Subscribe(this, async msg =>
{
await Output.PublishAsync(new TypeEdgeModule2Output
{
Data = msg.Data,
Metadata = DateTime.UtcNow.ToShortTimeString()
});
Logger.LogInformation("Generated Message");
return MessageResult.Ok;
});
}
public Output<TypeEdgeModule2Output> Output { get; set; }
public ModuleTwin<TypeEdgeModule2Twin> Twin { get; set; }
}
}

Просмотреть файл

@ -1,17 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.*" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\TypeEdgeML.Shared\TypeEdgeML.Shared.csproj" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,30 +0,0 @@
ARG base_tag=2.1-runtime-stretch-slim
FROM microsoft/dotnet:${base_tag} AS base
RUN apt-get update -y && apt-get install python3 -y && apt-get install python3-pip -y
RUN ldconfig
WORKDIR /app
FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /src
COPY Modules/TypeEdgeModule3/TypeEdgeModule3.csproj Modules/TypeEdgeModule3/
COPY TypeEdgeML.Shared/TypeEdgeML.Shared.csproj TypeEdgeML.Shared/
RUN dotnet restore Modules/TypeEdgeModule3/TypeEdgeModule3.csproj
COPY . .
WORKDIR /src/Modules/TypeEdgeModule3
RUN dotnet build TypeEdgeModule3.csproj -c Release -o /app
FROM build AS publish
RUN dotnet publish TypeEdgeModule3.csproj -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
RUN pip3 install --no-cache-dir -r requirements.txt
ENV LD_LIBRARY_PATH /usr/lib/python3.5/config-3.5m-x86_64-linux-gnu
ENTRYPOINT ["dotnet", "TypeEdgeModule3.dll"]

Просмотреть файл

@ -1,13 +0,0 @@
using System.Threading.Tasks;
using Microsoft.Azure.TypeEdge;
namespace TypeEdgeModule3
{
internal class Program
{
public static async Task Main(string[] args)
{
await Startup.DockerEntryPoint(args);
}
}
}

Просмотреть файл

@ -1,89 +0,0 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace TypeEdgeModule3
{
public sealed class SingleThreadTaskScheduler : TaskScheduler
{
[ThreadStatic] private static bool _isExecuting;
private readonly CancellationToken _cancellationToken;
private readonly BlockingCollection<Task> _taskQueue;
public SingleThreadTaskScheduler(CancellationToken cancellationToken)
{
_cancellationToken = cancellationToken;
_taskQueue = new BlockingCollection<Task>();
}
public void Start()
{
new Thread(RunOnCurrentThread) {Name = "STTS Thread"}.Start();
}
// Just a helper for the sample code
public Task Schedule(Action action)
{
return
Task.Factory.StartNew
(
action,
CancellationToken.None,
TaskCreationOptions.None,
this
);
}
// You can have this public if you want - just make sure to hide it
private void RunOnCurrentThread()
{
_isExecuting = true;
try
{
foreach (var task in _taskQueue.GetConsumingEnumerable(_cancellationToken)) TryExecuteTask(task);
}
catch (OperationCanceledException)
{
}
finally
{
_isExecuting = false;
}
}
// Signaling this allows the task scheduler to finish after all tasks complete
public void Complete()
{
_taskQueue.CompleteAdding();
}
protected override IEnumerable<Task> GetScheduledTasks()
{
return null;
}
protected override void QueueTask(Task task)
{
try
{
_taskQueue.Add(task, _cancellationToken);
}
catch (OperationCanceledException)
{
}
}
protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
{
// We'd need to remove the task from queue if it was already queued.
// That would be too hard.
if (taskWasPreviouslyQueued) return false;
return _isExecuting && TryExecuteTask(task);
}
}
}

Просмотреть файл

@ -1,103 +0,0 @@
using System;
using System.IO;
using System.Reflection;
using System.Threading;
using Microsoft.Azure.TypeEdge.Modules;
using Microsoft.Azure.TypeEdge.Modules.Endpoints;
using Microsoft.Azure.TypeEdge.Modules.Enums;
using Microsoft.Azure.TypeEdge.Modules.Messages;
using Microsoft.Azure.TypeEdge.Twins;
using Microsoft.Extensions.Logging;
using Python.Runtime;
using TypeEdgeML.Shared;
using TypeEdgeML.Shared.Messages;
using TypeEdgeML.Shared.Twins;
using TypeEdgeModule3;
namespace Modules
{
public class TypeEdgeModule3 : TypeModule, ITypeEdgeModule3, IDisposable
{
private string _code;
private dynamic _np;
private SingleThreadTaskScheduler _pythonTaskScheduler;
private Py.GILState _state;
private dynamic _sys;
public TypeEdgeModule3(ITypeEdgeModule2 proxy)
{
proxy.Output.Subscribe(this, async msg =>
{
Logger.LogInformation("Processing new message");
await _pythonTaskScheduler.Schedule(() =>
{
try
{
//TODO: run your python code here.
var sin = _np.sin;
const double fortyFiveDegrees = Math.PI / 4;
var a = sin(fortyFiveDegrees);
var b = sin(fortyFiveDegrees);
PythonEngine.RunSimpleString(_code);
var t = _sys.triangle;
var c = (float) t.Hypotenuse(a, b);
}
catch (Exception ex)
{
Logger.LogError(ex, "");
}
});
await Output.PublishAsync(new TypeEdgeModule3Output
{
Data = msg.Data,
Metadata = DateTime.UtcNow.ToShortTimeString()
});
Logger.LogInformation("Generated Message");
return MessageResult.Ok;
});
}
public new void Dispose()
{
_pythonTaskScheduler?.Schedule(() => { _state?.Dispose(); });
base.Dispose();
}
public Output<TypeEdgeModule3Output> Output { get; set; }
public ModuleTwin<TypeEdgeModule3Twin> Twin { get; set; }
public override InitializationResult Init()
{
var cts = new CancellationTokenSource();
_pythonTaskScheduler = new SingleThreadTaskScheduler(cts.Token);
_pythonTaskScheduler.Schedule(() =>
{
try
{
_state = Py.GIL();
_sys = Py.Import("sys");
_np = Py.Import("numpy");
}
catch (Exception ex)
{
Logger.LogError(ex, "");
}
});
_pythonTaskScheduler.Start();
_code = File.ReadAllText(Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location),
"pythagorean.py"));
return string.IsNullOrEmpty(_code) ? InitializationResult.Error : InitializationResult.Ok;
}
}
}

Просмотреть файл

@ -1,31 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="paloukari.Python.Runtime" Version="2.4.64" />
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.*" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\TypeEdgeML.Shared\TypeEdgeML.Shared.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="pythagorean.py">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="requirements.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,8 +0,0 @@
import sys
from math import sqrt
class Triangle:
def Hypotenuse(self, a, b):
return sqrt(a*a + b*b)
sys.triangle = Triangle()

Просмотреть файл

@ -1 +0,0 @@
numpy

Просмотреть файл

@ -1,49 +0,0 @@
ARG base_tag=2.1-runtime-stretch-slim
FROM microsoft/dotnet:${base_tag} AS base
# Add an unprivileged user account for running Edge Hub
RUN useradd -ms /bin/bash edgehubuser
ENV EdgeHubUser=edgehubuser
ARG EXE_DIR=.
ENV SSL_CERTIFICATE_PATH=/app/certs
ENV SSL_CERTIFICATE_NAME=mqtt-server.pfx
# Install snappy and set up symlinks that are absent from the base image
# Required by RocksDb
RUN apt-get update && \
apt-get install -y libsnappy1v5 libcap2-bin && \
ln -s /lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so && \
ln -s /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so && \
rm -rf /var/lib/apt/lists/*
# add the CAP_NET_BIND_SERVICE capability to the dotnet binary because
# we are starting edge hub as a non-root user
RUN setcap 'cap_net_bind_service=+ep' /usr/share/dotnet/dotnet
# Expose MQTT and HTTPS ports
EXPOSE 8883/tcp
EXPOSE 443/tcp
FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /src
COPY TypeEdgeML.Emulator/TypeEdgeML.Emulator.csproj TypeEdgeML.Emulator/
COPY TypeEdgeML.Shared/TypeEdgeML.Shared.csproj TypeEdgeML.Shared/
COPY Modules/TypeEdgeModule1/TypeEdgeModule1.csproj Modules/TypeEdgeModule1/
COPY Modules/TypeEdgeModule2/TypeEdgeModule2.csproj Modules/TypeEdgeModule2/
COPY Modules/TypeEdgeModule3/TypeEdgeModule3.csproj Modules/TypeEdgeModule3/
RUN dotnet restore TypeEdgeML.Emulator/TypeEdgeML.Emulator.csproj
COPY . .
COPY ./.env Thermostat.Emulator/
WORKDIR /src/TypeEdgeML.Emulator
RUN dotnet build TypeEdgeML.Emulator.csproj -c Release -o /app
FROM build AS publish
RUN dotnet publish TypeEdgeML.Emulator.csproj -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "TypeEdgeML.Emulator.dll"]

Просмотреть файл

@ -1 +0,0 @@
FROM scratch

Просмотреть файл

@ -1,64 +0,0 @@
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.Azure.Devices.Edge.Agent.Docker;
using Microsoft.Azure.TypeEdge;
using Microsoft.Azure.TypeEdge.Host;
using Microsoft.Extensions.Configuration;
using TypeEdgeML.Shared;
using TypeEdgeModule1 = Modules.TypeEdgeModule1;
using TypeEdgeModule2 = Modules.TypeEdgeModule2;
namespace TypeEdgeML
{
internal class Program
{
public static async Task Main(string[] args)
{
Console.WriteLine("Starting Emulator..");
//TODO: Set your IoT Hub iothubowner connection string in appsettings.json
var configuration = new ConfigurationBuilder()
.AddJsonFile("appSettings.json")
.AddEnvironmentVariables()
.AddDotΕnv()
.AddCommandLine(args)
.Build();
var host = new TypeEdgeHost(configuration);
//TODO: Register your TypeEdge Modules here
host.RegisterModule<ITypeEdgeModule1, Modules.TypeEdgeModule1>();
host.RegisterModule<ITypeEdgeModule2, Modules.TypeEdgeModule2>();
host.RegisterModule<ITypeEdgeModule3, Modules.TypeEdgeModule3>();
//TODO: Define all cross-module subscriptions
host.Upstream.Subscribe(host.GetProxy<ITypeEdgeModule3>().Output);
//customize the runtime configuration
var dockerRegistry = configuration.GetValue<string>("DOCKER_REGISTRY") ?? "";
var manifest = host.GenerateDeviceManifest((e, settings) =>
{
//this is the opportunity for the host to change the hosting settings of the module e
if (!settings.IsExternalModule && !settings.IsSystemModule)
settings.Config = new DockerConfig($"{dockerRegistry}{e}:latest", settings.Config.CreateOptions);
return settings;
});
File.WriteAllText("../../../manifest.json", manifest);
//provision a new device with the new manifest
var sasToken = host.ProvisionDevice(manifest);
//build an emulated device in memory
host.BuildEmulatedDevice(sasToken);
//run the emulated device
await host.RunAsync();
await host.RunAsync();
Console.WriteLine("Press <ENTER> to exit..");
Console.ReadLine();
}
}
}

Просмотреть файл

@ -1,10 +0,0 @@
{
"profiles": {
"TypeEdgeML.Emulator": {
"commandName": "Project",
"environmentVariables": {
"__PY_VERSION": "3.6"
}
}
}
}

Просмотреть файл

@ -1,35 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<None Include="..\.env" Link=".env" Visible="false">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="rocksdb-native-arm" Version="5.4.6" />
<PackageReference Include="RocksDbNative" Version="5.4.6.10" />
<PackageReference Include="Microsoft.Azure.TypeEdge.Host" Version="0.4.4.*" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Modules\TypeEdgeModule1\TypeEdgeModule1.csproj" />
<ProjectReference Include="..\Modules\TypeEdgeModule2\TypeEdgeModule2.csproj" />
<ProjectReference Include="..\Modules\TypeEdgeModule3\TypeEdgeModule3.csproj" />
<ProjectReference Include="..\TypeEdgeML.Shared\TypeEdgeML.Shared.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>

Просмотреть файл

@ -1,30 +0,0 @@
using System;
using Microsoft.Azure.TypeEdge.Proxy;
using Microsoft.Extensions.Configuration;
using TypeEdgeML.Shared;
namespace TypeEdgeML.Proxy
{
internal class Program
{
private static void Main(string[] args)
{
Console.WriteLine("Press <ENTER> to start..");
Console.ReadLine();
var configuration = new ConfigurationBuilder()
.AddJsonFile("appSettings.json")
.AddEnvironmentVariables()
.Build();
ProxyFactory.Configure(configuration["IotHubConnectionString"],
configuration["DeviceId"]);
//TODO: Get your module proxies by contract
var proxy = ProxyFactory.GetModuleProxy<ITypeEdgeModule1>();
Console.WriteLine("Press <ENTER> to exit..");
Console.ReadLine();
}
}
}

Просмотреть файл

@ -1,23 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge.Proxy" Version="0.4.4.*" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TypeEdgeML.Shared\TypeEdgeML.Shared.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>

Просмотреть файл

@ -1,17 +0,0 @@
using Microsoft.Azure.TypeEdge.Attributes;
using Microsoft.Azure.TypeEdge.Modules.Endpoints;
using Microsoft.Azure.TypeEdge.Twins;
using TypeEdgeML.Shared.Messages;
using TypeEdgeML.Shared.Twins;
namespace TypeEdgeML.Shared
{
[TypeModule]
public interface ITypeEdgeModule1
{
Output<TypeEdgeModule1Output> Output { get; set; }
ModuleTwin<TypeEdgeModule1Twin> Twin { get; set; }
bool ResetModule(int sensorThreshold);
}
}

Просмотреть файл

@ -1,15 +0,0 @@
using Microsoft.Azure.TypeEdge.Attributes;
using Microsoft.Azure.TypeEdge.Modules.Endpoints;
using Microsoft.Azure.TypeEdge.Twins;
using TypeEdgeML.Shared.Messages;
using TypeEdgeML.Shared.Twins;
namespace TypeEdgeML.Shared
{
[TypeModule]
public interface ITypeEdgeModule2
{
Output<TypeEdgeModule2Output> Output { get; set; }
ModuleTwin<TypeEdgeModule2Twin> Twin { get; set; }
}
}

Просмотреть файл

@ -1,15 +0,0 @@
using Microsoft.Azure.TypeEdge.Attributes;
using Microsoft.Azure.TypeEdge.Modules.Endpoints;
using Microsoft.Azure.TypeEdge.Twins;
using TypeEdgeML.Shared.Messages;
using TypeEdgeML.Shared.Twins;
namespace TypeEdgeML.Shared
{
[TypeModule]
public interface ITypeEdgeModule3
{
Output<TypeEdgeModule3Output> Output { get; set; }
ModuleTwin<TypeEdgeModule3Twin> Twin { get; set; }
}
}

Просмотреть файл

@ -1,26 +0,0 @@
using System.Collections.Generic;
using System.Text;
using Microsoft.Azure.TypeEdge.Modules.Messages;
using Newtonsoft.Json;
namespace TypeEdgeML.Shared.Messages
{
public class TypeEdgeModule1Output : IEdgeMessage
{
public string Data { get; set; }
public IDictionary<string, string> Properties { get; set; }
public byte[] GetBytes()
{
return Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(this));
}
public void SetBytes(byte[] bytes)
{
var obj = JsonConvert.DeserializeObject<TypeEdgeModule1Output>(Encoding.UTF8.GetString(bytes));
Properties = obj.Properties;
Data = obj.Data;
}
}
}

Просмотреть файл

@ -1,27 +0,0 @@
using System.Collections.Generic;
using System.Text;
using Microsoft.Azure.TypeEdge.Modules.Messages;
using Newtonsoft.Json;
namespace TypeEdgeML.Shared.Messages
{
public class TypeEdgeModule2Output : IEdgeMessage
{
public string Data { get; set; }
public string Metadata { get; set; }
public IDictionary<string, string> Properties { get; set; }
public byte[] GetBytes()
{
return Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(this));
}
public void SetBytes(byte[] bytes)
{
var obj = JsonConvert.DeserializeObject<TypeEdgeModule1Output>(Encoding.UTF8.GetString(bytes));
Properties = obj.Properties;
Data = obj.Data;
}
}
}

Просмотреть файл

@ -1,27 +0,0 @@
using System.Collections.Generic;
using System.Text;
using Microsoft.Azure.TypeEdge.Modules.Messages;
using Newtonsoft.Json;
namespace TypeEdgeML.Shared.Messages
{
public class TypeEdgeModule3Output : IEdgeMessage
{
public string Data { get; set; }
public string Metadata { get; set; }
public IDictionary<string, string> Properties { get; set; }
public byte[] GetBytes()
{
return Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(this));
}
public void SetBytes(byte[] bytes)
{
var obj = JsonConvert.DeserializeObject<TypeEdgeModule1Output>(Encoding.UTF8.GetString(bytes));
Properties = obj.Properties;
Data = obj.Data;
}
}
}

Просмотреть файл

@ -1,9 +0,0 @@
using Microsoft.Azure.TypeEdge.Twins;
namespace TypeEdgeML.Shared.Twins
{
public class TypeEdgeModule1Twin : TypeTwin
{
public int Threshold { get; set; }
}
}

Просмотреть файл

@ -1,9 +0,0 @@
using Microsoft.Azure.TypeEdge.Twins;
namespace TypeEdgeML.Shared.Twins
{
public class TypeEdgeModule2Twin : TypeTwin
{
public int Threshold { get; set; }
}
}

Просмотреть файл

@ -1,9 +0,0 @@
using Microsoft.Azure.TypeEdge.Twins;
namespace TypeEdgeML.Shared.Twins
{
public class TypeEdgeModule3Twin : TypeTwin
{
public int Threshold { get; set; }
}
}

Просмотреть файл

@ -1,11 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.*" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,68 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2018
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Modules", "Modules", "{23F98030-B6A3-4ADC-B0BE-A3F476C93E92}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypeEdgeModule1", "Modules\TypeEdgeModule1\TypeEdgeModule1.csproj", "{232F3A40-BC53-463E-A5F8-0A6DBE0C350A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypeEdgeModule2", "Modules\TypeEdgeModule2\TypeEdgeModule2.csproj", "{B50131E0-4249-45FF-9DB4-FFFF49BD7F7E}"
EndProject
Project("{E53339B2-1760-4266-BCC7-CA923CBCF16C}") = "docker-compose", "docker-compose.dcproj", "{6603BB40-94EB-4AFC-83DE-9EF235F45237}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypeEdgeML.Shared", "TypeEdgeML.Shared\TypeEdgeML.Shared.csproj", "{AB453E13-5A04-43CF-9737-CACC2395A9F0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypeEdgeML.Proxy", "TypeEdgeML.Proxy\TypeEdgeML.Proxy.csproj", "{37F663D9-B38F-4A8D-B0D0-C5A8FD61A0F3}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypeEdgeML.Emulator", "TypeEdgeML.Emulator\TypeEdgeML.Emulator.csproj", "{A9356854-EE06-4402-985E-289EDD7B0450}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypeEdgeModule3", "Modules\TypeEdgeModule3\TypeEdgeModule3.csproj", "{845EDC79-D3FD-4C1C-A4D2-B7D897B8AD51}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{232F3A40-BC53-463E-A5F8-0A6DBE0C350A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{232F3A40-BC53-463E-A5F8-0A6DBE0C350A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{232F3A40-BC53-463E-A5F8-0A6DBE0C350A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{232F3A40-BC53-463E-A5F8-0A6DBE0C350A}.Release|Any CPU.Build.0 = Release|Any CPU
{B50131E0-4249-45FF-9DB4-FFFF49BD7F7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B50131E0-4249-45FF-9DB4-FFFF49BD7F7E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B50131E0-4249-45FF-9DB4-FFFF49BD7F7E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B50131E0-4249-45FF-9DB4-FFFF49BD7F7E}.Release|Any CPU.Build.0 = Release|Any CPU
{6603BB40-94EB-4AFC-83DE-9EF235F45237}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6603BB40-94EB-4AFC-83DE-9EF235F45237}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6603BB40-94EB-4AFC-83DE-9EF235F45237}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6603BB40-94EB-4AFC-83DE-9EF235F45237}.Release|Any CPU.Build.0 = Release|Any CPU
{AB453E13-5A04-43CF-9737-CACC2395A9F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AB453E13-5A04-43CF-9737-CACC2395A9F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AB453E13-5A04-43CF-9737-CACC2395A9F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AB453E13-5A04-43CF-9737-CACC2395A9F0}.Release|Any CPU.Build.0 = Release|Any CPU
{37F663D9-B38F-4A8D-B0D0-C5A8FD61A0F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{37F663D9-B38F-4A8D-B0D0-C5A8FD61A0F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{37F663D9-B38F-4A8D-B0D0-C5A8FD61A0F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{37F663D9-B38F-4A8D-B0D0-C5A8FD61A0F3}.Release|Any CPU.Build.0 = Release|Any CPU
{A9356854-EE06-4402-985E-289EDD7B0450}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A9356854-EE06-4402-985E-289EDD7B0450}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A9356854-EE06-4402-985E-289EDD7B0450}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A9356854-EE06-4402-985E-289EDD7B0450}.Release|Any CPU.Build.0 = Release|Any CPU
{845EDC79-D3FD-4C1C-A4D2-B7D897B8AD51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{845EDC79-D3FD-4C1C-A4D2-B7D897B8AD51}.Debug|Any CPU.Build.0 = Debug|Any CPU
{845EDC79-D3FD-4C1C-A4D2-B7D897B8AD51}.Release|Any CPU.ActiveCfg = Release|Any CPU
{845EDC79-D3FD-4C1C-A4D2-B7D897B8AD51}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{232F3A40-BC53-463E-A5F8-0A6DBE0C350A} = {23F98030-B6A3-4ADC-B0BE-A3F476C93E92}
{B50131E0-4249-45FF-9DB4-FFFF49BD7F7E} = {23F98030-B6A3-4ADC-B0BE-A3F476C93E92}
{845EDC79-D3FD-4C1C-A4D2-B7D897B8AD51} = {23F98030-B6A3-4ADC-B0BE-A3F476C93E92}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {EF09051F-8E93-4054-8F11-1BEA1EDEF1A2}
EndGlobalSection
EndGlobal

Просмотреть файл

@ -1,22 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" Sdk="Microsoft.Docker.Sdk">
<PropertyGroup Label="Globals">
<ProjectVersion>2.1</ProjectVersion>
<DockerTargetOS>Linux</DockerTargetOS>
<ProjectGuid>6603bb40-94eb-4afc-83de-9ef235f45237</ProjectGuid>
</PropertyGroup>
<ItemGroup>
<None Include=".env" />
<None Include="docker-compose.override.yml">
<DependentUpon>docker-compose.yml</DependentUpon>
</None>
<None Include="docker-compose.vs.debug.yml">
<DependentUpon>docker-compose.yml</DependentUpon>
</None>
<None Include="docker-compose.vs.release.yml">
<DependentUpon>docker-compose.yml</DependentUpon>
</None>
<None Include="docker-compose.yml" />
<None Include=".dockerignore" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,10 +0,0 @@
version: '3.4'
services:
emulatorimage:
image: ${DOCKER_REGISTRY}emulatorimage
build:
context: .
dockerfile: TypeEdgeML.Emulator/Dockerfile
volumes:
- env:/env

Просмотреть файл

@ -1,2 +0,0 @@
version: '3.4'

Просмотреть файл

@ -1,2 +0,0 @@
version: '3.4'

Просмотреть файл

@ -1,36 +0,0 @@
version: '3.4'
volumes:
env:
services:
emulatorimage:
image: ${DOCKER_REGISTRY}emulatorimage
build:
context: .
dockerfile: TypeEdgeML.Emulator/DockerfileEmpty
volumes:
- env:/env
module1image:
image: ${DOCKER_REGISTRY}module1image
build:
context: .
dockerfile: Modules/TypeEdgeModule1/Dockerfile
volumes:
- env:/env
module2image:
image: ${DOCKER_REGISTRY}module2image
build:
context: .
dockerfile: Modules/TypeEdgeModule2/Dockerfile
volumes:
- env:/env
module3image:
image: ${DOCKER_REGISTRY}module3image
build:
context: .
dockerfile: Modules/TypeEdgeModule3/Dockerfile
volumes:
- env:/env

Просмотреть файл

@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.*" />
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="1.0.10.*" />
</ItemGroup>
</Project>

Просмотреть файл

@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="0.4.4.*" />
<PackageReference Include="Microsoft.Azure.TypeEdge" Version="1.0.10.*" />
</ItemGroup>
</Project>

Просмотреть файл

@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.TypeEdge.Proxy" Version="0.4.4.*" />
<PackageReference Include="Microsoft.Azure.TypeEdge.Proxy" Version="1.0.10.*" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2018
# Visual Studio Version 16
VisualStudioVersion = 16.0.29709.97
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypeEdgeModule", "TypeEdgeModule\TypeEdgeModule.csproj", "{3C276A53-A172-4349-A005-15E3EAE13D1E}"
EndProject
@ -25,21 +25,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypeEdgeServiceProxy", "Typ
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypeEdgeModuleVsCode", "TypeEdgeModuleVsCode\TypeEdgeModuleVsCode.csproj", "{CD8D8642-5093-4434-953C-4EFD56CC521B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "TypeEdgeMLApplication", "TypeEdgeMLApplication", "{0CD1230D-C532-4ED8-B8AE-5DD2E8E2843A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypeEdgeML.Emulator", "TypeEdgeML\TypeEdgeML.Emulator\TypeEdgeML.Emulator.csproj", "{99C14783-3C85-4647-B5BF-6D13F8F74AA0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypeEdgeML.Proxy", "TypeEdgeML\TypeEdgeML.Proxy\TypeEdgeML.Proxy.csproj", "{7AF1CE1A-014B-4DA6-8347-27D186E58405}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypeEdgeML.Shared", "TypeEdgeML\TypeEdgeML.Shared\TypeEdgeML.Shared.csproj", "{A4779BA5-B9B7-448E-AB9C-69682F9F0FC0}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Modules", "Modules", "{D1E74CF1-97C2-4171-98E8-7D73C1816475}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypeEdgeModule1", "TypeEdgeML\Modules\TypeEdgeModule1\TypeEdgeModule1.csproj", "{83B147E6-2BA5-43B3-8064-CC58E0C73060}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypeEdgeModule2", "TypeEdgeML\Modules\TypeEdgeModule2\TypeEdgeModule2.csproj", "{6AC82822-A52F-4748-BD18-A0B5B16512DE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypeEdgeModule3", "TypeEdgeML\Modules\TypeEdgeModule3\TypeEdgeModule3.csproj", "{FF22AC95-0D77-44B1-A487-295C06942CDE}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionFiles", "SolutionFiles", "{D983B6A0-5A95-4332-8214-BFE2A7C3BF37}"
ProjectSection(SolutionItems) = preProject
TypeEdgeApplication.nuspec = TypeEdgeApplication.nuspec
TypeEdgeEmulator.nuspec = TypeEdgeEmulator.nuspec
TypeEdgeModule.nuspec = TypeEdgeModule.nuspec
TypeEdgeModuleVsCode.nuspec = TypeEdgeModuleVsCode.nuspec
TypeEdgeServiceProxy.nuspec = TypeEdgeServiceProxy.nuspec
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -102,42 +95,6 @@ Global
{CD8D8642-5093-4434-953C-4EFD56CC521B}.Release|Any CPU.Build.0 = Release|Any CPU
{CD8D8642-5093-4434-953C-4EFD56CC521B}.TemplateDevelopment|Any CPU.ActiveCfg = Debug|Any CPU
{CD8D8642-5093-4434-953C-4EFD56CC521B}.TemplateDevelopment|Any CPU.Build.0 = Debug|Any CPU
{99C14783-3C85-4647-B5BF-6D13F8F74AA0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{99C14783-3C85-4647-B5BF-6D13F8F74AA0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{99C14783-3C85-4647-B5BF-6D13F8F74AA0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{99C14783-3C85-4647-B5BF-6D13F8F74AA0}.Release|Any CPU.Build.0 = Release|Any CPU
{99C14783-3C85-4647-B5BF-6D13F8F74AA0}.TemplateDevelopment|Any CPU.ActiveCfg = Debug|Any CPU
{99C14783-3C85-4647-B5BF-6D13F8F74AA0}.TemplateDevelopment|Any CPU.Build.0 = Debug|Any CPU
{7AF1CE1A-014B-4DA6-8347-27D186E58405}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7AF1CE1A-014B-4DA6-8347-27D186E58405}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7AF1CE1A-014B-4DA6-8347-27D186E58405}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7AF1CE1A-014B-4DA6-8347-27D186E58405}.Release|Any CPU.Build.0 = Release|Any CPU
{7AF1CE1A-014B-4DA6-8347-27D186E58405}.TemplateDevelopment|Any CPU.ActiveCfg = Debug|Any CPU
{7AF1CE1A-014B-4DA6-8347-27D186E58405}.TemplateDevelopment|Any CPU.Build.0 = Debug|Any CPU
{A4779BA5-B9B7-448E-AB9C-69682F9F0FC0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A4779BA5-B9B7-448E-AB9C-69682F9F0FC0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A4779BA5-B9B7-448E-AB9C-69682F9F0FC0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A4779BA5-B9B7-448E-AB9C-69682F9F0FC0}.Release|Any CPU.Build.0 = Release|Any CPU
{A4779BA5-B9B7-448E-AB9C-69682F9F0FC0}.TemplateDevelopment|Any CPU.ActiveCfg = Debug|Any CPU
{A4779BA5-B9B7-448E-AB9C-69682F9F0FC0}.TemplateDevelopment|Any CPU.Build.0 = Debug|Any CPU
{83B147E6-2BA5-43B3-8064-CC58E0C73060}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{83B147E6-2BA5-43B3-8064-CC58E0C73060}.Debug|Any CPU.Build.0 = Debug|Any CPU
{83B147E6-2BA5-43B3-8064-CC58E0C73060}.Release|Any CPU.ActiveCfg = Release|Any CPU
{83B147E6-2BA5-43B3-8064-CC58E0C73060}.Release|Any CPU.Build.0 = Release|Any CPU
{83B147E6-2BA5-43B3-8064-CC58E0C73060}.TemplateDevelopment|Any CPU.ActiveCfg = Debug|Any CPU
{83B147E6-2BA5-43B3-8064-CC58E0C73060}.TemplateDevelopment|Any CPU.Build.0 = Debug|Any CPU
{6AC82822-A52F-4748-BD18-A0B5B16512DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6AC82822-A52F-4748-BD18-A0B5B16512DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6AC82822-A52F-4748-BD18-A0B5B16512DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6AC82822-A52F-4748-BD18-A0B5B16512DE}.Release|Any CPU.Build.0 = Release|Any CPU
{6AC82822-A52F-4748-BD18-A0B5B16512DE}.TemplateDevelopment|Any CPU.ActiveCfg = Debug|Any CPU
{6AC82822-A52F-4748-BD18-A0B5B16512DE}.TemplateDevelopment|Any CPU.Build.0 = Debug|Any CPU
{FF22AC95-0D77-44B1-A487-295C06942CDE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FF22AC95-0D77-44B1-A487-295C06942CDE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FF22AC95-0D77-44B1-A487-295C06942CDE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FF22AC95-0D77-44B1-A487-295C06942CDE}.Release|Any CPU.Build.0 = Release|Any CPU
{FF22AC95-0D77-44B1-A487-295C06942CDE}.TemplateDevelopment|Any CPU.ActiveCfg = Debug|Any CPU
{FF22AC95-0D77-44B1-A487-295C06942CDE}.TemplateDevelopment|Any CPU.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@ -149,13 +106,6 @@ Global
{6A399CAA-F836-4876-99E3-21D81034C8AE} = {14A7BA51-F099-4309-B7CD-E89D72B0C62E}
{4C96AE19-F50C-4A1D-B83F-986A07DBC711} = {23F98030-B6A3-4ADC-B0BE-A3F476C93E92}
{0AF43558-21E2-4669-BCC1-E4BC5295E64B} = {23F98030-B6A3-4ADC-B0BE-A3F476C93E92}
{99C14783-3C85-4647-B5BF-6D13F8F74AA0} = {0CD1230D-C532-4ED8-B8AE-5DD2E8E2843A}
{7AF1CE1A-014B-4DA6-8347-27D186E58405} = {0CD1230D-C532-4ED8-B8AE-5DD2E8E2843A}
{A4779BA5-B9B7-448E-AB9C-69682F9F0FC0} = {0CD1230D-C532-4ED8-B8AE-5DD2E8E2843A}
{D1E74CF1-97C2-4171-98E8-7D73C1816475} = {0CD1230D-C532-4ED8-B8AE-5DD2E8E2843A}
{83B147E6-2BA5-43B3-8064-CC58E0C73060} = {D1E74CF1-97C2-4171-98E8-7D73C1816475}
{6AC82822-A52F-4748-BD18-A0B5B16512DE} = {D1E74CF1-97C2-4171-98E8-7D73C1816475}
{FF22AC95-0D77-44B1-A487-295C06942CDE} = {D1E74CF1-97C2-4171-98E8-7D73C1816475}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {EF09051F-8E93-4054-8F11-1BEA1EDEF1A2}

Просмотреть файл

@ -15,10 +15,6 @@ mkdir TypeEdgeApplication
cd TypeEdgeApplication
mkdir content
cd ..
mkdir TypeEdgeML
cd TypeEdgeML
mkdir content
cd ..
mkdir TypeEdgeModule
cd TypeEdgeModule
mkdir content
@ -31,14 +27,12 @@ cd ..
copy TypeEdgeEmulator.nuspec build\TypeEdgeEmulator
copy TypeEdgeModuleVsCode.nuspec build\TypeEdgeModuleVsCode
copy TypeEdgeApplication.nuspec build\TypeEdgeApplication
copy TypeEdgeML.nuspec build\TypeEdgeML
copy TypeEdgeModule.nuspec build\TypeEdgeModule
copy TypeEdgeServiceProxy.nuspec build\TypeEdgeServiceProxy
dotnet build TypeEdgeEmulator
dotnet build TypeEdgeModuleVsCode
dotnet build TypeEdgeApplication\TypeEdgeApplication.sln
dotnet build TypeEdgeML\TypeEdgeML.sln
dotnet build TypeEdgeModule
dotnet build TypeEdgeServiceProxy
@ -47,14 +41,12 @@ dotnet new --debug:reinit
dotnet new --install TypeEdgeModule
dotnet new --install TypeEdgeApplication
dotnet new --install TypeEdgeML
dotnet new --install TypeEdgeServiceProxy
dotnet new --install TypeEdgeEmulator
dotnet new --install TypeEdgeModuleVsCode
dotnet clean TypeEdgeModule
dotnet clean TypeEdgeApplication
dotnet clean TypeEdgeML
dotnet clean TypeEdgeServiceProxy
dotnet clean TypeEdgeModuleVsCode
dotnet clean TypeEdgeEmulator
@ -64,14 +56,12 @@ xcopy TypeEdgeEmulator build\TypeEdgeEmulator\content /s /e /EXCLUDE:list-of-exc
xcopy TypeEdgeServiceProxy build\TypeEdgeServiceProxy\content /s /e /EXCLUDE:list-of-excluded-files.txt
xcopy TypeEdgeModule build\TypeEdgeModule\content /s /e /EXCLUDE:list-of-excluded-files.txt
xcopy TypeEdgeApplication build\TypeEdgeApplication\content /s /e /EXCLUDE:list-of-excluded-files.txt
xcopy TypeEdgeML build\TypeEdgeML\content /s /e /EXCLUDE:list-of-excluded-files.txt
nuget.exe pack build\TypeEdgeEmulator -Version %version%
nuget.exe pack build\TypeEdgeModuleVsCode -Version %version%
nuget.exe pack build\TypeEdgeServiceProxy -Version %version%
nuget.exe pack build\TypeEdgeModule -Version %version%
nuget.exe pack build\TypeEdgeApplication -Version %version%
nuget.exe pack build\TypeEdgeML -Version %version%
move /Y *.nupkg ..\..\TypeEdgeNuGets