-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Add new "api" project template that supports native AOT #46064
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
03ea0a9
Initial draft of API project template
DamianEdwards dcd6740
Added "api" project template
DamianEdwards 4b06b87
Add script for running "dotnet new api -aot" locally
DamianEdwards 4d5c25e
Fixes to api project template
DamianEdwards 90dc1d1
api project template native AOT fixes
DamianEdwards 87c9ed5
Fix casing
DamianEdwards ddec1b6
Update Test-Template.ps1 to handle RID-specific publish output
DamianEdwards 6fbe795
Use minimal APIs in api template for native AOT
DamianEdwards edd2573
Add explicit call to add console logging in api template
DamianEdwards 7abf696
Add more local run scripts for api project template
DamianEdwards 5715313
Hide the api project template in VS
DamianEdwards 1f6e0c7
Disable IIS settings in api project template when native AOT
DamianEdwards 1cbd2c0
Move TrimmerSingleWarn to test infrastructure scripts
DamianEdwards 82de5c7
Fix namespace in api project template
DamianEdwards db91d0a
Add initial api template tests
DamianEdwards 761e476
Update ApiTemplateTest.cs
DamianEdwards 2800c2d
Rename api project template IDE icon
DamianEdwards 837a60a
Actually publish native aot in api template
DamianEdwards efd0206
Change api template to todos
DamianEdwards 697bdc0
PR feedback
DamianEdwards 0d6c670
Update api template baseline & launchsettings
DamianEdwards File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
17 changes: 17 additions & 0 deletions
17
src/ProjectTemplates/Web.ProjectTemplates/Api-CSharp.csproj.in
This file contains hidden or 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 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>${DefaultNetCoreTargetFramework}</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<NoDefaultLaunchSettingsFile Condition="'$(ExcludeLaunchSettings)' == 'True'">true</NoDefaultLaunchSettingsFile> | ||
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">Company.WebApplication1</RootNamespace> | ||
<ServerGarbageCollection>False</ServerGarbageCollection> | ||
<!--#if (NativeAot) --> | ||
<PublishAot>true</PublishAot> | ||
<TrimMode>full</TrimMode> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI - I opened https://github.com/dotnet/aspnetcore/issues/46084 to see if we can remove this from the template and just add it to the SDK. |
||
<PublishIISAssets>false</PublishIISAssets> | ||
DamianEdwards marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<!--#endif --> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains hidden or 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
33 changes: 33 additions & 0 deletions
33
...ectTemplates/Web.ProjectTemplates/content/Api-CSharp/.template.config/dotnetcli.host.json
This file contains hidden or 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,33 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/dotnetcli.host", | ||
"symbolInfo": { | ||
"Framework": { | ||
"longName": "framework" | ||
}, | ||
"skipRestore": { | ||
"longName": "no-restore", | ||
"shortName": "" | ||
}, | ||
"kestrelHttpPort": { | ||
"isHidden": true | ||
}, | ||
"iisHttpPort": { | ||
"isHidden": true | ||
}, | ||
"ExcludeLaunchSettings": { | ||
"longName": "exclude-launch-settings", | ||
"shortName": "" | ||
}, | ||
"UseProgramMain": { | ||
"longName": "use-program-main", | ||
"shortName": "" | ||
}, | ||
"NativeAot": { | ||
"longName": "publish-native-aot", | ||
"shortName": "aot" | ||
} | ||
}, | ||
"usageExamples": [ | ||
"" | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
src/ProjectTemplates/Web.ProjectTemplates/content/Api-CSharp/.template.config/ide.host.json
This file contains hidden or 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,23 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/ide.host", | ||
"order": 100, | ||
"icon": "ide/API.png", | ||
"supportsDocker": true, | ||
"symbolInfo": [ | ||
{ | ||
"id": "UseProgramMain", | ||
"isVisible": true, | ||
"persistenceScope": "shared", | ||
"persistenceScopeName": "Microsoft" | ||
}, | ||
{ | ||
"id": "NativeAot", | ||
"isVisible": true | ||
} | ||
], | ||
"unsupportedHosts": [ | ||
{ | ||
"id": "vs" | ||
} | ||
] | ||
} |
Binary file added
BIN
+602 Bytes
...tTemplates/Web.ProjectTemplates/content/Api-CSharp/.template.config/ide/API.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions
17
...Web.ProjectTemplates/content/Api-CSharp/.template.config/localize/templatestrings.cs.json
This file contains hidden or 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 @@ | ||
{ | ||
"author": "Microsoft", | ||
"name": "ASP.NET Core API", | ||
"description": "A project template for creating an ASP.NET Core API application.", | ||
"symbols/ExcludeLaunchSettings/description": "Whether to exclude launchSettings.json from the generated template.", | ||
"symbols/kestrelHttpPort/description": "Port number to use for the HTTP endpoint in launchSettings.json.", | ||
"symbols/iisHttpPort/description": "Port number to use for the IIS Express HTTP endpoint in launchSettings.json.", | ||
"symbols/Framework/description": "The target framework for the project.", | ||
"symbols/Framework/choices/net8.0/description": "Target net8.0", | ||
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.", | ||
"symbols/UseProgramMain/displayName": "Do not use _top-level statements", | ||
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.", | ||
"symbols/NativeAot/displayName": "Enable _native AOT publish", | ||
"symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.", | ||
"postActions/restore/description": "Restore NuGet packages required by this project.", | ||
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'" | ||
} |
17 changes: 17 additions & 0 deletions
17
...Web.ProjectTemplates/content/Api-CSharp/.template.config/localize/templatestrings.de.json
This file contains hidden or 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 @@ | ||
{ | ||
"author": "Microsoft", | ||
"name": "ASP.NET Core API", | ||
"description": "A project template for creating an ASP.NET Core API application.", | ||
"symbols/ExcludeLaunchSettings/description": "Whether to exclude launchSettings.json from the generated template.", | ||
"symbols/kestrelHttpPort/description": "Port number to use for the HTTP endpoint in launchSettings.json.", | ||
"symbols/iisHttpPort/description": "Port number to use for the IIS Express HTTP endpoint in launchSettings.json.", | ||
"symbols/Framework/description": "The target framework for the project.", | ||
"symbols/Framework/choices/net8.0/description": "Target net8.0", | ||
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.", | ||
"symbols/UseProgramMain/displayName": "Do not use _top-level statements", | ||
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.", | ||
"symbols/NativeAot/displayName": "Enable _native AOT publish", | ||
"symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.", | ||
"postActions/restore/description": "Restore NuGet packages required by this project.", | ||
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'" | ||
} |
17 changes: 17 additions & 0 deletions
17
...Web.ProjectTemplates/content/Api-CSharp/.template.config/localize/templatestrings.en.json
This file contains hidden or 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 @@ | ||
{ | ||
"author": "Microsoft", | ||
"name": "ASP.NET Core API", | ||
"description": "A project template for creating an ASP.NET Core API application.", | ||
"symbols/ExcludeLaunchSettings/description": "Whether to exclude launchSettings.json from the generated template.", | ||
"symbols/kestrelHttpPort/description": "Port number to use for the HTTP endpoint in launchSettings.json.", | ||
"symbols/iisHttpPort/description": "Port number to use for the IIS Express HTTP endpoint in launchSettings.json.", | ||
"symbols/Framework/description": "The target framework for the project.", | ||
"symbols/Framework/choices/net8.0/description": "Target net8.0", | ||
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.", | ||
"symbols/UseProgramMain/displayName": "Do not use _top-level statements", | ||
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.", | ||
"symbols/NativeAot/displayName": "Enable _native AOT publish", | ||
"symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.", | ||
"postActions/restore/description": "Restore NuGet packages required by this project.", | ||
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'" | ||
} |
17 changes: 17 additions & 0 deletions
17
...Web.ProjectTemplates/content/Api-CSharp/.template.config/localize/templatestrings.es.json
This file contains hidden or 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 @@ | ||
{ | ||
"author": "Microsoft", | ||
"name": "ASP.NET Core API", | ||
"description": "A project template for creating an ASP.NET Core API application.", | ||
"symbols/ExcludeLaunchSettings/description": "Whether to exclude launchSettings.json from the generated template.", | ||
"symbols/kestrelHttpPort/description": "Port number to use for the HTTP endpoint in launchSettings.json.", | ||
"symbols/iisHttpPort/description": "Port number to use for the IIS Express HTTP endpoint in launchSettings.json.", | ||
"symbols/Framework/description": "The target framework for the project.", | ||
"symbols/Framework/choices/net8.0/description": "Target net8.0", | ||
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.", | ||
"symbols/UseProgramMain/displayName": "Do not use _top-level statements", | ||
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.", | ||
"symbols/NativeAot/displayName": "Enable _native AOT publish", | ||
"symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.", | ||
"postActions/restore/description": "Restore NuGet packages required by this project.", | ||
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'" | ||
} |
17 changes: 17 additions & 0 deletions
17
...Web.ProjectTemplates/content/Api-CSharp/.template.config/localize/templatestrings.fr.json
This file contains hidden or 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 @@ | ||
{ | ||
"author": "Microsoft", | ||
"name": "ASP.NET Core API", | ||
"description": "A project template for creating an ASP.NET Core API application.", | ||
"symbols/ExcludeLaunchSettings/description": "Whether to exclude launchSettings.json from the generated template.", | ||
"symbols/kestrelHttpPort/description": "Port number to use for the HTTP endpoint in launchSettings.json.", | ||
"symbols/iisHttpPort/description": "Port number to use for the IIS Express HTTP endpoint in launchSettings.json.", | ||
"symbols/Framework/description": "The target framework for the project.", | ||
"symbols/Framework/choices/net8.0/description": "Target net8.0", | ||
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.", | ||
"symbols/UseProgramMain/displayName": "Do not use _top-level statements", | ||
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.", | ||
"symbols/NativeAot/displayName": "Enable _native AOT publish", | ||
"symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.", | ||
"postActions/restore/description": "Restore NuGet packages required by this project.", | ||
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'" | ||
} |
17 changes: 17 additions & 0 deletions
17
...Web.ProjectTemplates/content/Api-CSharp/.template.config/localize/templatestrings.it.json
This file contains hidden or 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 @@ | ||
{ | ||
"author": "Microsoft", | ||
"name": "ASP.NET Core API", | ||
"description": "A project template for creating an ASP.NET Core API application.", | ||
"symbols/ExcludeLaunchSettings/description": "Whether to exclude launchSettings.json from the generated template.", | ||
"symbols/kestrelHttpPort/description": "Port number to use for the HTTP endpoint in launchSettings.json.", | ||
"symbols/iisHttpPort/description": "Port number to use for the IIS Express HTTP endpoint in launchSettings.json.", | ||
"symbols/Framework/description": "The target framework for the project.", | ||
"symbols/Framework/choices/net8.0/description": "Target net8.0", | ||
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.", | ||
"symbols/UseProgramMain/displayName": "Do not use _top-level statements", | ||
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.", | ||
"symbols/NativeAot/displayName": "Enable _native AOT publish", | ||
"symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.", | ||
"postActions/restore/description": "Restore NuGet packages required by this project.", | ||
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'" | ||
} |
17 changes: 17 additions & 0 deletions
17
...Web.ProjectTemplates/content/Api-CSharp/.template.config/localize/templatestrings.ja.json
This file contains hidden or 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 @@ | ||
{ | ||
"author": "Microsoft", | ||
"name": "ASP.NET Core API", | ||
"description": "A project template for creating an ASP.NET Core API application.", | ||
"symbols/ExcludeLaunchSettings/description": "Whether to exclude launchSettings.json from the generated template.", | ||
"symbols/kestrelHttpPort/description": "Port number to use for the HTTP endpoint in launchSettings.json.", | ||
"symbols/iisHttpPort/description": "Port number to use for the IIS Express HTTP endpoint in launchSettings.json.", | ||
"symbols/Framework/description": "The target framework for the project.", | ||
"symbols/Framework/choices/net8.0/description": "Target net8.0", | ||
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.", | ||
"symbols/UseProgramMain/displayName": "Do not use _top-level statements", | ||
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.", | ||
"symbols/NativeAot/displayName": "Enable _native AOT publish", | ||
"symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.", | ||
"postActions/restore/description": "Restore NuGet packages required by this project.", | ||
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'" | ||
} |
17 changes: 17 additions & 0 deletions
17
...Web.ProjectTemplates/content/Api-CSharp/.template.config/localize/templatestrings.ko.json
This file contains hidden or 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 @@ | ||
{ | ||
"author": "Microsoft", | ||
"name": "ASP.NET Core API", | ||
"description": "A project template for creating an ASP.NET Core API application.", | ||
"symbols/ExcludeLaunchSettings/description": "Whether to exclude launchSettings.json from the generated template.", | ||
"symbols/kestrelHttpPort/description": "Port number to use for the HTTP endpoint in launchSettings.json.", | ||
"symbols/iisHttpPort/description": "Port number to use for the IIS Express HTTP endpoint in launchSettings.json.", | ||
"symbols/Framework/description": "The target framework for the project.", | ||
"symbols/Framework/choices/net8.0/description": "Target net8.0", | ||
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.", | ||
"symbols/UseProgramMain/displayName": "Do not use _top-level statements", | ||
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.", | ||
"symbols/NativeAot/displayName": "Enable _native AOT publish", | ||
"symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.", | ||
"postActions/restore/description": "Restore NuGet packages required by this project.", | ||
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'" | ||
} |
17 changes: 17 additions & 0 deletions
17
...Web.ProjectTemplates/content/Api-CSharp/.template.config/localize/templatestrings.pl.json
This file contains hidden or 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 @@ | ||
{ | ||
"author": "Microsoft", | ||
"name": "ASP.NET Core API", | ||
"description": "A project template for creating an ASP.NET Core API application.", | ||
"symbols/ExcludeLaunchSettings/description": "Whether to exclude launchSettings.json from the generated template.", | ||
"symbols/kestrelHttpPort/description": "Port number to use for the HTTP endpoint in launchSettings.json.", | ||
"symbols/iisHttpPort/description": "Port number to use for the IIS Express HTTP endpoint in launchSettings.json.", | ||
"symbols/Framework/description": "The target framework for the project.", | ||
"symbols/Framework/choices/net8.0/description": "Target net8.0", | ||
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.", | ||
"symbols/UseProgramMain/displayName": "Do not use _top-level statements", | ||
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.", | ||
"symbols/NativeAot/displayName": "Enable _native AOT publish", | ||
"symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.", | ||
"postActions/restore/description": "Restore NuGet packages required by this project.", | ||
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'" | ||
} |
17 changes: 17 additions & 0 deletions
17
....ProjectTemplates/content/Api-CSharp/.template.config/localize/templatestrings.pt-BR.json
This file contains hidden or 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 @@ | ||
{ | ||
"author": "Microsoft", | ||
"name": "ASP.NET Core API", | ||
"description": "A project template for creating an ASP.NET Core API application.", | ||
"symbols/ExcludeLaunchSettings/description": "Whether to exclude launchSettings.json from the generated template.", | ||
"symbols/kestrelHttpPort/description": "Port number to use for the HTTP endpoint in launchSettings.json.", | ||
"symbols/iisHttpPort/description": "Port number to use for the IIS Express HTTP endpoint in launchSettings.json.", | ||
"symbols/Framework/description": "The target framework for the project.", | ||
"symbols/Framework/choices/net8.0/description": "Target net8.0", | ||
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.", | ||
"symbols/UseProgramMain/displayName": "Do not use _top-level statements", | ||
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.", | ||
"symbols/NativeAot/displayName": "Enable _native AOT publish", | ||
"symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.", | ||
"postActions/restore/description": "Restore NuGet packages required by this project.", | ||
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'" | ||
} |
17 changes: 17 additions & 0 deletions
17
...Web.ProjectTemplates/content/Api-CSharp/.template.config/localize/templatestrings.ru.json
This file contains hidden or 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 @@ | ||
{ | ||
"author": "Microsoft", | ||
"name": "ASP.NET Core API", | ||
"description": "A project template for creating an ASP.NET Core API application.", | ||
"symbols/ExcludeLaunchSettings/description": "Whether to exclude launchSettings.json from the generated template.", | ||
"symbols/kestrelHttpPort/description": "Port number to use for the HTTP endpoint in launchSettings.json.", | ||
"symbols/iisHttpPort/description": "Port number to use for the IIS Express HTTP endpoint in launchSettings.json.", | ||
"symbols/Framework/description": "The target framework for the project.", | ||
"symbols/Framework/choices/net8.0/description": "Target net8.0", | ||
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.", | ||
"symbols/UseProgramMain/displayName": "Do not use _top-level statements", | ||
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.", | ||
"symbols/NativeAot/displayName": "Enable _native AOT publish", | ||
"symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.", | ||
"postActions/restore/description": "Restore NuGet packages required by this project.", | ||
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'" | ||
} |
17 changes: 17 additions & 0 deletions
17
...Web.ProjectTemplates/content/Api-CSharp/.template.config/localize/templatestrings.tr.json
This file contains hidden or 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 @@ | ||
{ | ||
"author": "Microsoft", | ||
"name": "ASP.NET Core API", | ||
"description": "A project template for creating an ASP.NET Core API application.", | ||
"symbols/ExcludeLaunchSettings/description": "Whether to exclude launchSettings.json from the generated template.", | ||
"symbols/kestrelHttpPort/description": "Port number to use for the HTTP endpoint in launchSettings.json.", | ||
"symbols/iisHttpPort/description": "Port number to use for the IIS Express HTTP endpoint in launchSettings.json.", | ||
"symbols/Framework/description": "The target framework for the project.", | ||
"symbols/Framework/choices/net8.0/description": "Target net8.0", | ||
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.", | ||
"symbols/UseProgramMain/displayName": "Do not use _top-level statements", | ||
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.", | ||
"symbols/NativeAot/displayName": "Enable _native AOT publish", | ||
"symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.", | ||
"postActions/restore/description": "Restore NuGet packages required by this project.", | ||
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'" | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.