Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Function: add support for dotnet 8 runtime (#3734)
Co-authored-by: Nick Blair <blair.nicholas@gmail.com>
- Loading branch information
Showing
13 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"sst": patch | ||
--- | ||
|
||
Function: add support for dotnet 8 runtime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Build results | ||
[Bb]in/ | ||
[Oo]bj/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System.Reflection; | ||
using System.Threading.Tasks; | ||
using Amazon.Lambda.RuntimeSupport; | ||
|
||
namespace dotnet_bootstrap | ||
{ | ||
class Program | ||
{ | ||
static async Task Main(string[] args) | ||
{ | ||
Assembly asm = Assembly.LoadFrom(args[0]); | ||
var r = new RuntimeSupportInitializer(args[1]); | ||
await r.RunLambdaBootstrap(); | ||
} | ||
} | ||
} | ||
|
12 changes: 12 additions & 0 deletions
12
packages/sst/support/dotnet8-bootstrap/dotnet-bootstrap.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<RootNamespace>dotnet_bootstrap</RootNamespace> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Amazon.Lambda.RuntimeSupport" Version="1.10.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Binary file added
BIN
+19.6 KB
packages/sst/support/dotnet8-bootstrap/release/Amazon.Lambda.Core.dll
Binary file not shown.
Binary file added
BIN
+163 KB
packages/sst/support/dotnet8-bootstrap/release/Amazon.Lambda.RuntimeSupport.dll
Binary file not shown.
Binary file not shown.
59 changes: 59 additions & 0 deletions
59
packages/sst/support/dotnet8-bootstrap/release/dotnet-bootstrap.deps.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"runtimeTarget": { | ||
"name": ".NETCoreApp,Version=v8.0", | ||
"signature": "" | ||
}, | ||
"compilationOptions": {}, | ||
"targets": { | ||
".NETCoreApp,Version=v8.0": { | ||
"dotnet-bootstrap/1.0.0": { | ||
"dependencies": { | ||
"Amazon.Lambda.RuntimeSupport": "1.10.0" | ||
}, | ||
"runtime": { | ||
"dotnet-bootstrap.dll": {} | ||
} | ||
}, | ||
"Amazon.Lambda.Core/2.2.0": { | ||
"runtime": { | ||
"lib/net8.0/Amazon.Lambda.Core.dll": { | ||
"assemblyVersion": "1.0.0.0", | ||
"fileVersion": "1.0.0.0" | ||
} | ||
} | ||
}, | ||
"Amazon.Lambda.RuntimeSupport/1.10.0": { | ||
"dependencies": { | ||
"Amazon.Lambda.Core": "2.2.0" | ||
}, | ||
"runtime": { | ||
"lib/net8.0/Amazon.Lambda.RuntimeSupport.dll": { | ||
"assemblyVersion": "1.10.0.0", | ||
"fileVersion": "1.10.0.0" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"libraries": { | ||
"dotnet-bootstrap/1.0.0": { | ||
"type": "project", | ||
"serviceable": false, | ||
"sha512": "" | ||
}, | ||
"Amazon.Lambda.Core/2.2.0": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-DHqKeD1CYocP0t1dJC/NaXfu+5k6AoqnQ1Hlu/J2mXpLpCyeJfY+tIqT5fpruDarUlU0NtdIH8zSkCjeinyb1A==", | ||
"path": "amazon.lambda.core/2.2.0", | ||
"hashPath": "amazon.lambda.core.2.2.0.nupkg.sha512" | ||
}, | ||
"Amazon.Lambda.RuntimeSupport/1.10.0": { | ||
"type": "package", | ||
"serviceable": true, | ||
"sha512": "sha512-J1NdaUV24sWALmCjzJJ6vezskeeH2NxJU7ao86rgdzW+AcgnhYjIULuKQNAx6fTl8AP/8acFsq7Jp7k156hh4A==", | ||
"path": "amazon.lambda.runtimesupport/1.10.0", | ||
"hashPath": "amazon.lambda.runtimesupport.1.10.0.nupkg.sha512" | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
13 changes: 13 additions & 0 deletions
13
packages/sst/support/dotnet8-bootstrap/release/dotnet-bootstrap.runtimeconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"runtimeOptions": { | ||
"tfm": "net8.0", | ||
"framework": { | ||
"name": "Microsoft.NETCore.App", | ||
"version": "8.0.0" | ||
}, | ||
"configProperties": { | ||
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false, | ||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false | ||
} | ||
} | ||
} |