-
Notifications
You must be signed in to change notification settings - Fork 23
Restore compatibility with .NET 9.0 #208
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ help: | |
|
|
||
| .PHONY: build | ||
| build: ## Build project | ||
| dotnet build -f=net10.0 | ||
| dotnet build | ||
|
|
||
| .PHONY: format | ||
| format: | ||
|
|
@@ -22,15 +22,15 @@ test: single-test | |
|
|
||
| .PHONY: single-test | ||
| single-test: build ## run a single test. usage: "make single-test test=[test name]" | ||
| dotnet test ./src/GovukNotify.Tests/GovukNotify.Tests.csproj -f=net10.0 --no-build -v=n --filter $(test) | ||
| dotnet test ./src/GovukNotify.Tests/GovukNotify.Tests.csproj --no-build -v=n --filter $(test) | ||
|
|
||
| .PHONY: build-release | ||
| build-release: ## Build release version | ||
| dotnet build -c=Release -f=net10.0 | ||
| dotnet build -c=Release | ||
|
|
||
| .PHONY: build-package | ||
| build-package: build-release ## Build and package NuGet | ||
| dotnet pack -c=Release ./src/GovukNotify/GovukNotify.csproj /p:TargetFrameworks=net8,net9,net10 -o=publish | ||
| dotnet pack -c=Release ./src/GovukNotify/GovukNotify.csproj -o=publish | ||
|
Comment on lines
28
to
+33
|
||
|
|
||
| .PHONY: bootstrap-with-docker | ||
| bootstrap-with-docker: ## Prepare the Docker builder image | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,8 +1,8 @@ | ||||
| <Project Sdk="Microsoft.NET.Sdk"> | ||||
|
|
||||
| <PropertyGroup> | ||||
| <TargetFrameworks>net10.0</TargetFrameworks> | ||||
|
|
||||
| <TargetFrameworks>net10.0;net9.0</TargetFrameworks> | ||||
| <LangVersion>14.0</LangVersion> | ||||
|
||||
| <LangVersion>14.0</LangVersion> |
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.
It’s fine, this is test code so we’re not shipping it to consumers
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,8 +2,8 @@ | |
|
|
||
| <PropertyGroup> | ||
| <RestoreProjectStyle>PackageReference</RestoreProjectStyle> | ||
| <TargetFrameworks>net10.0</TargetFrameworks> | ||
| <Version>8.0.0</Version> | ||
| <TargetFrameworks>net10.0;net9.0</TargetFrameworks> | ||
| <Version>9.0.0</Version> | ||
|
Comment on lines
+5
to
+6
|
||
| <Authors>GOV.UK Notify</Authors> | ||
| <Description>GOV.UK .NET Notify Client</Description> | ||
| <PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> | ||
|
|
@@ -20,8 +20,4 @@ | |
| <PackageReference Include="Newtonsoft.Json" Version="[13.0.4,14]" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup Condition=" '$(TargetFramework)' == 'net462' "> | ||
| <PackageReference Include="System.Net.Http" Version="4.3.4" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> | ||
Uh oh!
There was an error while loading. Please reload this page.