Scaffolding tool for Azure IoT Edge C# module
Перейти к файлу
Mariana Mihova 8b805b2b38
Merge pull request #99 from rido-min/rel/801
Update to .NET8
2024-04-25 13:55:59 -07:00
Test Update Test.csproj 2024-04-25 12:29:58 -07:00
content/dotnet-template-azure-iot-edge-module/CSharp Update to .NET8 2024-04-19 16:03:42 -07:00
.gitignore Update Changelog 2022-11-29 08:05:52 -08:00
CHANGELOG.md Update to .NET8 2024-04-19 16:03:42 -07:00
CONTRIBUTING.md add changlog.md and contributing.md (#15) 2017-12-22 15:36:22 +08:00
IotEdgeModuleTemplate.sln simplify tests 2023-09-27 09:29:17 -07:00
LICENSE add LICENSE file and update nuspec to meet official nuget pacakge requirements 2017-10-25 14:17:40 +08:00
Microsoft.Azure.IoT.Edge.Module.nuspec Update to .NET8 2024-04-19 16:03:42 -07:00
README.md Update to .NET8 2024-04-19 16:03:42 -07:00
SECURITY.md Microsoft mandatory file 2022-07-28 16:57:36 +00:00
azure-pipelines.yml Update to .NET8 2024-04-19 16:03:42 -07:00

README.md

dotnet-template-azure-iot-edge-module

Nuget

dotnet template to do scaffolding for Azure IoT Edge module development.

This README will introduce how to install the dotnet template and then create Azure IoT Edge module with the template step by step. The template will set up all necessary files for you to focus on functionality programming.

Get Started

Make sure you have .NET 8.0 SDK installed.

Run dotnet command to install the template:

dotnet new install Microsoft.Azure.IoT.Edge.Module

You could find the template with short name aziotedgemodule in output:

Templates                                         Short Name              Language          Tags
---------------------------------------------------------------------------------------------------------------
Console Application                               console                 [C#], F#, VB      Common/Console
Class library                                     classlib                [C#], F#, VB      Common/Library
Azure IoT Edge Module                             aziotedgemodule         [C#]              Console
Contoso Sample 06                                 sample06                [C#], F#          Console
Unit Test Project                                 mstest                  [C#], F#, VB      Test/MSTest
xUnit Test Project                                xunit                   [C#], F#, VB      Test/xUnit
ASP.NET Core Empty                                web                     [C#]              Web/Empty
ASP.NET Core Web App (Model-View-Controller)      mvc                     [C#], F#          Web/MVC
ASP.NET Core Web App (Razor Pages)                razor                   [C#]              Web/MVC/Razor Pages
ASP.NET Core with Angular                         angular                 [C#]              Web/MVC/SPA
ASP.NET Core with React.js                        react                   [C#]              Web/MVC/SPA
ASP.NET Core with React.js and Redux              reactredux              [C#]              Web/MVC/SPA
ASP.NET Core Web API                              webapi                  [C#]              Web/WebAPI
Nuget Config                                      nugetconfig                               Config
Web Config                                        webconfig                                 Config
Solution File                                     sln                                       Solution
Razor Page                                        page                                      Web/ASP.NET
MVC ViewImports                                   viewimports                               Web/ASP.NET
MVC ViewStart                                     viewstart                                 Web/ASP.NET

Check out the template details:

PS C:\> dotnet new aziotedgemodule --help
Azure IoT Edge Module (C#)
Author: Microsoft

Usage:
  dotnet new aziotedgemodule [options] [template options]

Options:
  -n, --name <name>       The name for the output being created. If no name is specified, the name of the output
                          directory is used.
  -o, --output <output>   Location to place the generated output.
  --dry-run               Displays a summary of what would happen if the given command line were run if it would result
                          in a template creation.
  --force                 Forces content to be generated even if it would change existing files.
  --no-update-check       Disables checking for the template package updates when instantiating a template.
  --project <project>     The project that should be used for context evaluation.
  -lang, --language <C#>  Specifies the template language to instantiate.
  --type <project>        Specifies the template type to instantiate.

Template options:
  -s, --skipRestore              Type: bool
                                 Default: false
  -r, --repository <repository>  Type: string
                                 Default: <registry>/<repo-name>

dotnet new aziotedgemodule -o <your_module_name>

Support

The team monitors the issue section on regular basis and will try to assist with troubleshooting or questions related IoT Edge tools on a best effort basis.

A few tips before opening an issue. Try to generalize the problem as much as possible. Examples include

  • Removing 3rd party components
  • Reproduce the issue with provided deployment manifest used
  • Specify whether issue is reproducible on physical device or simulated device or both Also, Consider consulting on the docker docs channel for general docker questions.