Skip to content

Commit

Permalink
Merge pull request #99 from rido-min/rel/801
Browse files Browse the repository at this point in the history
Update to .NET8
  • Loading branch information
marianan authored Apr 25, 2024
2 parents 08326e5 + 1dfdc91 commit 8b805b2
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 11 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

[![Nuget](https://img.shields.io/nuget/v/Microsoft.Azure.IoT.Edge.Module.svg)](https://www.nuget.org/packages/Microsoft.Azure.IoT.Edge.Module/)


### 8.0.0 (2024-04-22)

* [Updated] Updates template to target dotnet8

### 7.0.1 (2023-12-12)

* [Updated] Updates template to target dotnet7

### 3.2.0 (2022-11-29)
* [Updated] Update template to target dotnet6
* [Updated] Template based on the Worker template, using BackgroundService base class
Expand Down
2 changes: 1 addition & 1 deletion Microsoft.Azure.IoT.Edge.Module.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>Microsoft.Azure.IoT.Edge.Module</id>
<version>7.0.1</version>
<version>8.0.0</version>
<title>Azure IoT Edge Module</title>
<authors>Microsoft</authors>
<owners>microsoft, nugetazureiotedge</owners>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ The template will set up all necessary files for you to focus on functionality p

## Get Started

Make sure you have [.NET 7.0 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) installed.
Make sure you have [.NET 8.0 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) installed.

Run `dotnet` command to install the template:

```
```bash
dotnet new install Microsoft.Azure.IoT.Edge.Module
```
You could find the template with short name *aziotedgemodule* in output:
Expand Down
4 changes: 2 additions & 2 deletions Test/Test.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand All @@ -14,4 +14,4 @@
</PackageReference>
</ItemGroup>

</Project>
</Project>
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ pool:

steps:
- task: UseDotNet@2
displayName: 'Install .NET 7 SDK'
displayName: 'Install .NET 8 SDK'
inputs:
version: 7.x
version: 8.x

- task: UseDotNet@2
displayName: 'Install .NET 6 SDK'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# IoT Edge Module Template for .NET 7
# IoT Edge Module Template for .NET 8

This project leverages the latest dotnet features to create docker images without using a `Dockerfile`. See more details in https://github.com/dotnet/sdk-container-builds

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk.Worker">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Devices.Client" Version="1.42.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="Microsoft.NET.Build.Containers" Version="7.0.401" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
</ItemGroup>
</Project>

0 comments on commit 8b805b2

Please sign in to comment.