Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies/20241206 #144

Merged
merged 10 commits into from
Dec 6, 2024
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.191.1/containers/dotnet/.devcontainer/base.Dockerfile

# [Choice] .NET version: 6.0, 5.0, 3.1, 6.0-bullseye, 5.0-bullseye, 3.1-bullseye, 6.0-focal, 5.0-focal, 3.1-focal
ARG VARIANT="6.0-focal"
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:0-${VARIANT}
ARG VARIANT="8.0-noble"
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:${VARIANT}

# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
ARG NODE_VERSION="none"
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"args": {
// Update 'VARIANT' to pick a .NET Core version: 3.1, 5.0, 6.0
// Append -bullseye or -focal to pin to an OS version.
"VARIANT": "6.0-focal",
"VARIANT": "8.0-noble",
// Options
"NODE_VERSION": "lts/*",
"INSTALL_AZURE_CLI": "true"
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/DeviceClient/AbeckDev.DoorController.DeviceClient/AbeckDev.DoorController.DeviceClient/bin/Debug/netcoreapp3.1/AbeckDev.DoorController.DeviceClient.dll",
"program": "${workspaceFolder}/DeviceClient/AbeckDev.DoorController.DeviceClient/AbeckDev.DoorController.DeviceClient/bin/Debug/net8.0/AbeckDev.DoorController.DeviceClient.dll",
"args": [],
"cwd": "${workspaceFolder}/DeviceClient/AbeckDev.DoorController.DeviceClient/AbeckDev.DoorController.DeviceClient",
"console": "internalConsole",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<Version>1.0.3</Version>
<TargetFramework>net8.0</TargetFramework>
<Version>1.0.4</Version>
<Authors>AbeckDev</Authors>
<Company />
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand All @@ -13,15 +13,15 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Devices.Client" Version="1.42.2" />
<PackageReference Include="Microsoft.Azure.Devices.Provisioning.Client" Version="1.19.3" />
<PackageReference Include="Microsoft.Azure.Devices.Provisioning.Transport.Mqtt" Version="1.17.3" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="7.0.4" />
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Azure.Devices.Client" Version="1.42.3" />
<PackageReference Include="Microsoft.Azure.Devices.Provisioning.Client" Version="1.19.4" />
<PackageReference Include="Microsoft.Azure.Devices.Provisioning.Transport.Mqtt" Version="1.17.5" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

# Copy csproj and restore as distinct layers
Expand All @@ -10,7 +10,7 @@ COPY . ./
RUN dotnet publish -c Release -o out

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:6.0
FROM mcr.microsoft.com/dotnet/aspnet:8.0.11
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "AbeckDev.DoorController.DeviceClient.dll"]
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ ToDo: Add a Intoduction to project and explaint setup process.
* Azure managed Identities - To connect Azure Functions and Azure IoT Central
* Azure IoT Central - IoT AllIn One suite for Communication with the IoT End Devices
* RaspberryPi - As Test Hardware
* .NET 6 as the current LTS version as Client App Framework
* .NET 8 as the current LTS version as Client App Framework



### Prerequisites

You need the following prerequisites to operate the doorcontroller:
Expand Down Expand Up @@ -59,7 +58,7 @@ curl https://raw.githubusercontent.com/abeckDev/IoTDoorController/master/DeviceC

* [Azure Functions](https://azure.microsoft.com/en-us/services/functions/) - Serverless Framework which receive signals from the end devices and forwarding them securely to Azure IoT Central
* [Azure IoT Central](https://azure.microsoft.com/en-us/services/iot-central/) - Central IoT App Plattform
* [.NET 6](https://dotnet.microsoft.com/learn/dotnet/what-is-dotnet) - The Framework used to build the Device Client software
* [.NET 8](https://dotnet.microsoft.com/learn/dotnet/what-is-dotnet) - The Framework used to build the Device Client software

## Contributing

Expand All @@ -82,7 +81,3 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
## Acknowledgments

* Thanks to the Microsoft Learn Plattform Module [Create your first iot central app](https://docs.microsoft.com/en-us/learn/modules/create-your-first-iot-central-app/) for a great introduction to IoT Central and a sample Application code.




Loading