Azure / iotedgedev

The Azure IoT Edge Dev Tool greatly simplifies your Azure IoT Edge development process. It has everything you need to get started and helps with your day-to-day Edge development.
https://aka.ms/iotedgedev
Other
160 stars 69 forks source link

[BUG] Running "iotedgedev solution init --template csharp" does not generate module.json or dockerfiles for the example module #623

Open RollsChris opened 4 months ago

RollsChris commented 4 months ago

Description

Running "iotedgedev solution init --template csharp" does not generate module.json or Dockerfiles for the example filtermodule.

Expected behavior

I expect to see:

Actual behavior

None of the above exist in the module folder

Steps to Reproduce

Run "iotedgedev solution init --template csharp"

Environment

Default from "iotedgedev "container image

RollsChris commented 4 months ago

even the documentation has this for the expected project output:

│  .env
│  .gitignore
│  deployment.debug.template.json
│  deployment.template.json
│
├─.vscode
│      launch.json
│
└─modules
    └─filtermodule
        │  .gitignore
        │  Dockerfile.amd64
        │  Dockerfile.amd64.debug
        │  Dockerfile.arm32v7
        │  Dockerfile.windows-amd64
        │  filtermodule.csproj
        │  module.json
        │  Program.cs
Clockwork-Muse commented 4 months ago

The short answer is that they're trying to remove the need for (at minimum) the various Dockerfiles, since that's an extra maintenance burden for customers that's rarely customized and can usually be provided by built-in or other tools (eg, buildpaks). The problem is that the deployment templating tools don't recognize it yet, so the module just isn't included/built.

RollsChris commented 4 months ago

ahh ok, a bit annoying. Not sure i like that feature of dotnet publish hiding the Dockerfiles etc. But is what it is

RollsChris commented 2 months ago

Any news on this? whats the work around?

Clockwork-Muse commented 2 months ago

@RollsChris - In an un-released version of the tool done recently they pinned an old version of the template that performs the generation

RollsChris commented 1 week ago

Hey, do you know when its being released?