-
Notifications
You must be signed in to change notification settings - Fork 30
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
Update dependencies and targets #45
base: dev
Are you sure you want to change the base?
Conversation
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '3.1.x' | ||
- uses: actions/checkout@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The base images have net8.0 already installed.
@@ -0,0 +1,16 @@ | |||
<?xml version="1.0" encoding="utf-8"?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Central package management such that version are store in a single place.
<copyright>© Microsoft Corporation. All rights reserved.</copyright> | ||
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks> | ||
<copyright>© Microsoft Corporation. All rights reserved.</copyright> | ||
<TargetFrameworks>net6.0</TargetFrameworks> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means anything higher is fine (net7.0, net8.0, ...). It matters to target other ones only if we have custom code for it.
<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="2.1.1" /> | ||
<PackageReference Include="Microsoft.Net.Http.Headers" Version="2.1.1" /> | ||
<ItemGroup> | ||
<FrameworkReference Include="Microsoft.AspNetCore.App" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These packages are not published anymore (most). Referencing the shared framework is the way to go.
using System.IO; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Text.Json; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed NewtonSoft.Json dependency.
@@ -1,17 +1,11 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
|
|||
<PropertyGroup> | |||
<TargetFrameworks>$(StandardTestTfms)</TargetFrameworks> | |||
<TargetFrameworks>net6.0;net8.0</TargetFrameworks> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are executed on both.
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\Microsoft.Azure.Relay.AspNetCore\Microsoft.Azure.Relay.AspNetCore.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="4.5.4" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed anymore and cross-platform.
Some transitive dependencies have vulnerabilities, and this is an attempt to refresh those and upgrade to supported framework versions.