Azure / Azure/iotedgedev

[BUG] C# solution generation broken

Open
#621 12 comments 2 reactions 0 assignees View on GitHub
bug triage
Dominant language
Python
Stars
166
Forks
76
PR merge metrics
No merged PRs in 30d

Description

### Description

When I generate a new C# module, there is no module.json generated. This seems to cause problems in the build stage, meaning that the placeholder is not populated in the generated deployment file as follows.

`"image": "${MODULES.SampleModule}",`

This happens when you add a new #C module, or when you start from scratch with `iotedgedev new`.

### Expected behavior

Basic project generation works - I can build and deploy the new module

### Actual behavior

Basic project generation doesn't work - I can't build and deploy the new module.

### Steps to Reproduce

```
mkdir test-solution
cd test-solution
iotedgedev new TestSolution # defaults to #C
```
The generated filtermodule has no module.json file.

When you build with `iotedgedev build` you get a `deployment.amd64.json` in the `config` directory with the following:

`"image": "${MODULES.filtermodule}",` - This is invalid and won't deploy correctly.

I think the generation and deployment of C# modules needs to be tested to make sure the build steps work. It just seems broken right now.

### Environment

iotedgedev, version 2.1.0
Python 3.11.4
pip 23.1.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.