I solved it
first updated to 3.1.1:
dotnet new --install Microsoft.Azure.IoT.Edge.Module::3.1.1
vscode restart
dotnet new aziotedgemodule -n "YourModuleName" -r localhost:5000/YourModuleName
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
When I try to create a C# module in vscode using ctrl+shift+p and 'Azure IoT Edge: Add IoT Edge Module', I get the following error message:
Running Docker version
Client:
Cloud Integration: v1.0.23
Version: 20.10.14
API version: 1.41
Go version: go1.16.15
Git commit: a224086
Built: Thu Mar 24 01:53:11 2022
Operating system/Arch: windows/amd64
Context: standard
Experimental: true
Server: Docker Desktop 4.7.1 (77678)
Engine:
Version: 20.10.14
API version: 1.41 (minimum version 1.12)
Go version: go1.16.15
Git commit: 87a90dc
Built: Thu Mar 24 01:46:14 2022
Operating system/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.5.11
GitCommit: 3df54a852345ae127d1fa3092b95168e4a88e2f8
runc:
Version: 1.0.3
GitCommit: v1.0.3-0-gf46b6ba
docker-init:
Version: 0.19.0
GitCommit: de40ad0
The specified iotedgehubdev version is: 0.14.14
azure-iot-edge.buildAndRunSolution:
azure-iot-edge.setupIotedgehubdev:
azure-iot-edge.buildAndRunSolution: azure-iot-edge.buildAndRunSolution:
azure-iot-edge.addModule:
Running dotnet new -i Microsoft.Azure.IoT.Edge.Module::3.0.0-alpha
The following template packages will be installed:
Microsoft.Azure.IoT.Edge.Module::3.0.0-alpha
"Microsoft.Azure.IoT.Edge.Module::3.0.0-alpha" is already installed.
Error: Please make sure that the prerequisites for the C# module are installed. Error: command failed with exit code 2147614729. Detail: "Microsoft.Azure.IoT.Edge.Module::3.0.0-alpha" is already installed.
azure-iot-edge.addModule:
Run dotnet new -i Microsoft.Azure.IoT.Edge.Module::3.0.0-alpha.
The following template packages are installed:
Microsoft.Azure.IoT.Edge.Module::3.0.0-alpha
"Microsoft.Azure.IoT.Edge.Module::3.0.0-alpha" is already installed.
Error: Please make sure that the prerequisites for the C# module are installed. Error: command failed with exit code 2147614729. Detail: "Microsoft.Azure.IoT.Edge.Module::3.0.0-alpha" is already installed.
I checked again to make sure all the prerequisites are installed correctly. According to Azure IoT Edge for Visual Studio code documentation, the following must be met.
.Net Core 2.1 SDK >
C# for Visual Studio Code
Docker
Python and Pip
iotedgehubdev
Can anybody help?
I solved it
first updated to 3.1.1:
dotnet new --install Microsoft.Azure.IoT.Edge.Module::3.1.1
vscode restart
dotnet new aziotedgemodule -n "YourModuleName" -r localhost:5000/YourModuleName