-
Notifications
You must be signed in to change notification settings - Fork 475
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
Add support for .NET 8 to Lambda Annotations #1658
Conversation
"test\\TestExecutableServerlessApp\\TestExecutableServerlessApp.csproj", | ||
"test\\TestServerlessApp.IntegrationTests\\TestServerlessApp.IntegrationTests.csproj", | ||
"test\\TestServerlessApp.NET8\\TestServerlessApp.NET8.csproj", |
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.
fyi: I was only adding line 14, my VS sorted the list.
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
@@ -1,6 +1,16 @@ | |||
; Shipped analyzer releases | |||
; https://github.com/dotnet/roslyn-analyzers/blob/master/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md | |||
|
|||
## Release 1.1.0 |
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.
Unrelated to this change, just moving the errors we added in 1.1.0 to the shipped file.
Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/ProjectFileHandler.cs
Outdated
Show resolved
Hide resolved
Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/ProjectFileHandler.cs
Outdated
Show resolved
Hide resolved
Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/ProjectFileHandler.cs
Outdated
Show resolved
Hide resolved
Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/ProjectFileHandler.cs
Outdated
Show resolved
Hide resolved
envValue.Append($"{Environment.GetEnvironmentVariable(envName)}_"); | ||
} | ||
|
||
envValue.Append("amazon-lambda-annotations_1.1.0.0"); |
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.
Should we just increment the version to the one we intend to release this PR in? (and do it for all the other snaphsot files)
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.
Given the churn we've had with .NET 8, I didn't want to tie this to a version yet so would just do the separate versioning PR.
...test/Amazon.Lambda.Annotations.SourceGenerators.Tests/WriterTests/ProjectFileHandlerTests.cs
Outdated
Show resolved
Hide resolved
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.
Can you update the following comment block to include dotnet8
.
Summarizing today's commits from internal discussion: I had seen prior art for the following:
But when I initially tried it out, e6ec280 now pivots to this approach and removes the |
Fixed in a1aac5a, thanks. |
Issue #, if available: DOTNET-7321
Description of changes: This adds support for the upcoming .NET 8 managed runtime to Lambda Annotations.
dotnet6
was the only managed runtime when annotations launched we hardcodeddotnet6
when generating the CloudFormation for azip
package typedotnet8
in either theLambdaGlobalProperties
attribute or by detecting it in the user's csproj.On Detection
<TargetFramework>
since that leaves us susceptible to issues like Directory.build.props heirarchy is not respected aws-extensions-for-dotnet-cli#211GeneratorExecutionContext
)Micorosft.Build
andMicrosoft.Build.Locator
, but those don't target .NET Standard so I don't think we can use them from a source generator.Norm suggested the newEdit: see Add support for .NET 8 to Lambda Annotations #1658dotnet msbuild -getProperty
which is available with 17.8 (8.0.1)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.