Skip to content

Commit

Permalink
fix: add NET 9 to fix Lambda custom runtime image (#1890)
Browse files Browse the repository at this point in the history
* fix: add NET 9 to fix Lambda custom runtime image

* chore: add License URL to projects that don't have it
  • Loading branch information
philasmar authored Nov 29, 2024
1 parent 6732523 commit c7f0759
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .autover/autover.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@
{
"Name": "Amazon.Lambda.Templates",
"Path": "Blueprints/BlueprintDefinitions/vs2022/Templates.csproj"
},
{
"Name": "SnapshotRestore.Registry",
"Path": "Libraries/src/SnapshotRestore.Registry/SnapshotRestore.Registry.csproj"
}
],
"UseCommitsForChangelog": false,
Expand Down
11 changes: 11 additions & 0 deletions .autover/changes/2685eba0-7e2e-4bb7-aa6c-4a237434d388.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"Projects": [
{
"Name": "SnapshotRestore.Registry",
"Type": "Patch",
"ChangelogMessages": [
"Added License URL to project"
]
}
]
}
11 changes: 11 additions & 0 deletions .autover/changes/27878e75-1d65-4334-b3cc-fb79a84f9456.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"Projects": [
{
"Name": "Amazon.Lambda.RuntimeSupport",
"Type": "Patch",
"ChangelogMessages": [
"Updated project to support building the .NET 9 Lambda custom runtime image"
]
}
]
}
11 changes: 11 additions & 0 deletions .autover/changes/40379e2a-29d6-4e86-a7c8-af98eacf5dd9.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"Projects": [
{
"Name": "Amazon.Lambda.Annotations",
"Type": "Patch",
"ChangelogMessages": [
"Added License URL to project"
]
}
]
}
11 changes: 11 additions & 0 deletions .autover/changes/b9c57497-1ab4-4d26-8cc6-6aa945f7ac96.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"Projects": [
{
"Name": "SnapshotRestore.Registry",
"Type": "Patch",
"ChangelogMessages": [
"Updated project to support building the .NET 9 Lambda custom runtime image"
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<PackageProjectUrl>https://github.com/aws/aws-lambda-dotnet</PackageProjectUrl>
<PackageIcon>images\icon.png</PackageIcon>
<PackageReadmeFile>docs\README.md</PackageReadmeFile>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>

<!--This assembly needs to access internal methods inside the Amazon.Lambda.Annotations assembly.
Both these assemblies need to be strongly signed for the InternalsVisibleTo attribute to take effect.-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="..\..\..\buildtools\common.props" />

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net5.0;net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net6.0;net8.0;net9.0</TargetFrameworks>
<Version>1.12.1</Version>
<Description>Provides a bootstrap and Lambda Runtime API Client to help you to develop custom .NET Core Lambda Runtimes.</Description>
<AssemblyTitle>Amazon.Lambda.RuntimeSupport</AssemblyTitle>
Expand All @@ -20,7 +20,7 @@
<OutputType>Exe</OutputType>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0' or '$(TargetFramework)' == 'net9.0'">
<WarningsAsErrors>IL2026,IL2067,IL2075</WarningsAsErrors>
<IsTrimmable>true</IsTrimmable>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
Expand All @@ -41,7 +41,7 @@
<ItemGroup>
<ProjectReference Include="..\Amazon.Lambda.Core\Amazon.Lambda.Core.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0' or '$(TargetFramework)' == 'net9.0'">
<ProjectReference Include="..\SnapshotRestore.Registry\SnapshotRestore.Registry.csproj" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\buildtools\common.props" />

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<VersionPrefix>1.0.0</VersionPrefix>
<Description>Provides a Restore Hooks library to help you register before snapshot and after restore hooks.</Description>
<AssemblyTitle>SnapshotRestore.Registry</AssemblyTitle>
Expand Down
2 changes: 1 addition & 1 deletion buildtools/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<PackageIconUrl>https://sdk-for-net.amazonwebservices.com/images/AWSLogo128x128.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/aws/aws-lambda-dotnet</PackageProjectUrl>
<PackageLicenseUrl>http://aws.amazon.com/apache2.0/</PackageLicenseUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>


<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
Expand Down

0 comments on commit c7f0759

Please sign in to comment.