Skip to content
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 AOT flag to worker template #47721

Merged
merged 2 commits into from
Apr 19, 2023
Merged

Conversation

eerhardt
Copy link
Member

@eerhardt eerhardt commented Apr 14, 2023

The -aot flag is available in the api, grpc, and soon to be in the console templates. The worker template is compatible with NativeAOT, so it should have the option as well.

Fix #46541

@ghost ghost added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Apr 14, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Apr 14, 2023
@JamesNK
Copy link
Member

JamesNK commented Apr 15, 2023

Are there template tests for worker? Should add aot publish

Fix Api template tests for NativeAOT to pass locally.
@eerhardt
Copy link
Member Author

Are there template tests for worker? Should add aot publish

Done. I left them skipped for now until #47247 is fixed.

@eerhardt
Copy link
Member Author

Anyone have any feedback here?

@@ -35,7 +35,7 @@ public async Task ApiTemplateCSharp()
await ApiTemplateCore(languageOverride: null);
}

[ConditionalFact(Skip = "Unskip when there are no more build or publish warnings for native AOT.")]
[ConditionalFact(Skip = "Unskip when Helix supports native AOT. https://github.com/dotnet/aspnetcore/pull/47247/")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Should we update the tests in the gRPC templates with an issue reference as well?

https://github.com/dotnet/aspnetcore/blob/main/src/ProjectTemplates/test/Templates.Tests/GrpcTemplateTest.cs

Copy link
Member Author

@eerhardt eerhardt Apr 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Grpc template tests are getting updated in that PR already. We can just wait for that PR to get clean.

@eerhardt eerhardt merged commit cd711c2 into dotnet:main Apr 19, 2023
@eerhardt eerhardt deleted the AotWorkerTemplate branch April 19, 2023 18:05
@ghost ghost added this to the 8.0-preview4 milestone Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add AOT flag to worker template
3 participants