diff --git a/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/Approvals/TabCompletionTests.TemplateCommand_GetAllSuggestions.verified.txt b/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/Approvals/TabCompletionTests.TemplateCommand_GetAllSuggestions.verified.txt
index 05d4dd797761..3defcd948a99 100644
--- a/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/Approvals/TabCompletionTests.TemplateCommand_GetAllSuggestions.verified.txt
+++ b/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/Approvals/TabCompletionTests.TemplateCommand_GetAllSuggestions.verified.txt
@@ -81,6 +81,17 @@ Default: false
InsertText: --output,
Detail: Location to place the generated output.
},
+ {
+ Label: --publish-native-aot,
+ Kind: Keyword,
+ SortText: --publish-native-aot,
+ InsertText: --publish-native-aot,
+ Detail:
+Whether to enable the project for publishing as native AOT.
+Type: bool
+Default: false
+
+ },
{
Label: --type,
Kind: Keyword,
@@ -106,6 +117,17 @@ Default: false
InsertText: -?,
Detail: Show help and usage information
},
+ {
+ Label: -aot,
+ Kind: Keyword,
+ SortText: -aot,
+ InsertText: -aot,
+ Detail:
+Whether to enable the project for publishing as native AOT.
+Type: bool
+Default: false
+
+ },
{
Label: -f,
Kind: Keyword,
diff --git a/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.cs.verified/MyProject/Program.cs b/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.cs.verified/MyProject/Program.cs
new file mode 100644
index 000000000000..3751555cbd32
--- /dev/null
+++ b/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.cs.verified/MyProject/Program.cs
@@ -0,0 +1,2 @@
+// See https://aka.ms/new-console-template for more information
+Console.WriteLine("Hello, World!");
diff --git a/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.cs.verified/MyProject/console.csproj b/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.cs.verified/MyProject/console.csproj
new file mode 100644
index 000000000000..4766a294ad42
--- /dev/null
+++ b/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.cs.verified/MyProject/console.csproj
@@ -0,0 +1,15 @@
+
+
+
+ Exe
+ %FRAMEWORK%
+ enable
+ enable
+ true
+ true
+
+
+
+
+
+
diff --git a/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.cs.verified/std-streams/stdout.txt b/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.cs.verified/std-streams/stdout.txt
new file mode 100644
index 000000000000..9c7466dd11dc
--- /dev/null
+++ b/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.cs.verified/std-streams/stdout.txt
@@ -0,0 +1 @@
+The template "Console App" was created successfully.
\ No newline at end of file
diff --git a/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.vb.verified/MyProject/Program.cs b/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.vb.verified/MyProject/Program.cs
new file mode 100644
index 000000000000..3751555cbd32
--- /dev/null
+++ b/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.vb.verified/MyProject/Program.cs
@@ -0,0 +1,2 @@
+// See https://aka.ms/new-console-template for more information
+Console.WriteLine("Hello, World!");
diff --git a/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.vb.verified/MyProject/vb-console.csproj b/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.vb.verified/MyProject/vb-console.csproj
new file mode 100644
index 000000000000..eaaff16a13db
--- /dev/null
+++ b/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.vb.verified/MyProject/vb-console.csproj
@@ -0,0 +1,16 @@
+
+
+
+ Exe
+ %FRAMEWORK%
+ vb_console
+ enable
+ enable
+ true
+ true
+
+
+
+
+
+
diff --git a/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.vb.verified/std-streams/stdout.txt b/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.vb.verified/std-streams/stdout.txt
new file mode 100644
index 000000000000..9c7466dd11dc
--- /dev/null
+++ b/src/Tests/dotnet-new.Tests/Approvals/AotVariants.console.vb.verified/std-streams/stdout.txt
@@ -0,0 +1 @@
+The template "Console App" was created successfully.
\ No newline at end of file
diff --git a/src/Tests/dotnet-new.Tests/Approvals/DotnetNewHelpTests.CanShowHelpForTemplate_MatchOnNonChoiceParam.verified.txt b/src/Tests/dotnet-new.Tests/Approvals/DotnetNewHelpTests.CanShowHelpForTemplate_MatchOnNonChoiceParam.verified.txt
index 11a96a116153..08deeb1a7afc 100644
--- a/src/Tests/dotnet-new.Tests/Approvals/DotnetNewHelpTests.CanShowHelpForTemplate_MatchOnNonChoiceParam.verified.txt
+++ b/src/Tests/dotnet-new.Tests/Approvals/DotnetNewHelpTests.CanShowHelpForTemplate_MatchOnNonChoiceParam.verified.txt
@@ -30,6 +30,9 @@ Template options:
--use-program-main Whether to generate an explicit Program class and Main method instead of top-level statements.
Type: bool
Default: false
+ -aot, --publish-native-aot Whether to enable the project for publishing as native AOT.
+ Type: bool
+ Default: false
To see help for other template languages (F#, VB), use --language option:
dotnet new console -h --language F#
\ No newline at end of file
diff --git a/src/Tests/dotnet-new.Tests/Approvals/DotnetNewHelpTests.CanShowHelpForTemplate_console.verified.txt b/src/Tests/dotnet-new.Tests/Approvals/DotnetNewHelpTests.CanShowHelpForTemplate_console.verified.txt
index 11a96a116153..08deeb1a7afc 100644
--- a/src/Tests/dotnet-new.Tests/Approvals/DotnetNewHelpTests.CanShowHelpForTemplate_console.verified.txt
+++ b/src/Tests/dotnet-new.Tests/Approvals/DotnetNewHelpTests.CanShowHelpForTemplate_console.verified.txt
@@ -30,6 +30,9 @@ Template options:
--use-program-main Whether to generate an explicit Program class and Main method instead of top-level statements.
Type: bool
Default: false
+ -aot, --publish-native-aot Whether to enable the project for publishing as native AOT.
+ Type: bool
+ Default: false
To see help for other template languages (F#, VB), use --language option:
dotnet new console -h --language F#
\ No newline at end of file
diff --git a/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs b/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs
index 846dc25bbb4e..adc2a929efb5 100644
--- a/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs
+++ b/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs
@@ -164,6 +164,66 @@ public void NuGetConfigPermissions()
Directory.Delete(workingDir, true);
}
+ [Theory]
+ [InlineData(new object[] { "console", "C#" })]
+ [InlineData(new object[] { "console", "VB" })]
+ public async void AotVariants(string name, string language)
+ {
+ // "net8.0";
+ string currentDefaultFramework = $"net{Environment.Version.Major}.{Environment.Version.Minor}";
+
+ string workingDir = CreateTemporaryFolder(folderName: $"{name}-{language}");
+ string outputDir = "MyProject";
+ string projName = name;
+
+ List args = new() { "-o", outputDir };
+ // VB build would fail for name 'console' (root namespace would conflict with BCL namespace)
+ if (language.Equals("VB") == true && name.Equals("console"))
+ {
+ projName = "vb-console";
+ args.Add("-n");
+ args.Add(projName);
+ }
+ args.Add("-aot");
+
+ // Do not bother restoring. This would need to restore the AOT compiler.
+ // We would need a nuget.config for that and it's a waste of time anyway.
+ args.Add("--no-restore");
+
+ string extension = language == "VB" ? "vbproj" : "csproj";
+
+ string projectDir = Path.Combine(workingDir, outputDir);
+ string finalProjectName = Path.Combine(projectDir, $"{projName}.{extension}");
+
+ Dictionary environmentUnderTest = new() { ["DOTNET_NOLOGO"] = false.ToString() };
+ TestContext.Current.AddTestEnvironmentVariables(environmentUnderTest);
+
+ TemplateVerifierOptions options = new TemplateVerifierOptions(templateName: name)
+ {
+ TemplateSpecificArgs = args,
+ SnapshotsDirectory = "Approvals",
+ OutputDirectory = workingDir,
+ SettingsDirectory = _fixture.HomeDirectory,
+ VerifyCommandOutput = true,
+ DoNotPrependTemplateNameToScenarioName = false,
+ DoNotAppendTemplateArgsToScenarioName = true,
+ ScenarioName = language.Replace('#', 's').ToLower(),
+ VerificationExcludePatterns = new[] { "*/stderr.txt", "*\\stderr.txt" },
+ DotnetExecutablePath = TestContext.Current.ToolsetUnderTest.DotNetHostPath,
+ }
+ .WithCustomEnvironment(environmentUnderTest)
+ .WithCustomScrubbers(
+ ScrubbersDefinition.Empty
+ .AddScrubber(sb => sb.Replace($"{currentDefaultFramework}", "%FRAMEWORK%"))
+ .AddScrubber(sb => sb.Replace(finalProjectName, "%PROJECT_PATH%").UnixifyDirSeparators().ScrubByRegex("(^ Restored .* \\()(.*)(\\)\\.)", "$1%DURATION%$3", RegexOptions.Multiline), "txt")
+ );
+
+ VerificationEngine engine = new VerificationEngine(_logger);
+ await engine.Execute(options).ConfigureAwait(false);
+
+ Directory.Delete(workingDir, true);
+ }
+
#region Project templates language features tests
///
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/dotnetcli.host.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/dotnetcli.host.json
index 60a1f292d757..90b03a9b5d30 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/dotnetcli.host.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/dotnetcli.host.json
@@ -20,6 +20,10 @@
"UseProgramMain": {
"longName": "use-program-main",
"shortName": ""
+ },
+ "NativeAot": {
+ "longName": "publish-native-aot",
+ "shortName": "aot"
}
},
"usageExamples": [
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/ide.host.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/ide.host.json
index cf9265eccab7..e3cc4ca0058f 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/ide.host.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/ide.host.json
@@ -13,6 +13,10 @@
"isVisible": true,
"PersistenceScope": "Shared",
"PersistenceScopeName": "Microsoft"
+ },
+ {
+ "id": "NativeAot",
+ "isVisible": true
}
]
}
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.cs.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.cs.json
index f6506c98dd0b..5e4a51e339a7 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.cs.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.cs.json
@@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Přeskočit obnovení",
"symbols/UseProgramMain/description": "Určuje, jestli se má místo příkazů nejvyšší úrovně generovat explicitní třída Program a metoda Main.",
"symbols/UseProgramMain/displayName": "Nepoužívat _příkazy nejvyšší úrovně",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Obnoví balíčky NuGet vyžadované tímto projektem.",
"postActions/restore/manualInstructions/default/text": "Spustit dotnet restore",
"postActions/open-file/description": "Otevře Program.cs v editoru."
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.de.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.de.json
index 5c589b4ca13a..daa9c9ab2a75 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.de.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.de.json
@@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Wiederherstellung überspringen",
"symbols/UseProgramMain/description": "Gibt an, ob anstelle von Anweisungen der obersten Ebene eine explizite Programmklasse und eine Main-Methode generiert werden soll.",
"symbols/UseProgramMain/displayName": "Keine Anweisungen _der obersten Ebene verwenden",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "„NuGet-Pakete“ wiederherstellen, die für dieses Projekt erforderlich sind.",
"postActions/restore/manualInstructions/default/text": "„dotnet restore“ ausführen",
"postActions/open-file/description": "Öffnet „Program.cs“ im Editor."
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.en.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.en.json
index 4f4d668ae928..71daf33deffe 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.en.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.en.json
@@ -15,6 +15,9 @@
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.",
"symbols/UseProgramMain/displayName": "Do not use _top-level statements",
"_symbols/UseProgramMain/displayName.comment": "Use '_' as accelerator key when translating.",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
+ "_symbols/NativeAot/displayName.comment": "Use '_' as accelerator key when translating.",
"postActions/restore/description": "Restore NuGet packages required by this project.",
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'",
"postActions/open-file/description": "Opens Program.cs in the editor"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.es.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.es.json
index 911092922b04..fad8a71dc955 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.es.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.es.json
@@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Omitir restauración",
"symbols/UseProgramMain/description": "Indica si se debe generar una clase Program explícita y un método Main en lugar de instrucciones de nivel superior.",
"symbols/UseProgramMain/displayName": "No usar instrucciones de _nivel superior",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Restaure los paquetes NuGet necesarios para este proyecto.",
"postActions/restore/manualInstructions/default/text": "Ejecutar \"dotnet restore\"",
"postActions/open-file/description": "Abre Program.cs en el editor"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.fr.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.fr.json
index 51a10f5d88cd..a89fb3902b5f 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.fr.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.fr.json
@@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Ignorer la restauration",
"symbols/UseProgramMain/description": "Indique s’il faut générer une classe Programme explicite et une méthode Main au lieu d’instructions de niveau supérieur.",
"symbols/UseProgramMain/displayName": "N’utilisez pas _d’instructions de niveau supérieur.",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Restaurez les packages NuGet requis par ce projet.",
"postActions/restore/manualInstructions/default/text": "Exécuter « dotnet restore »",
"postActions/open-file/description": "Ouvre Program.cs dans l’éditeur"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.it.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.it.json
index 9c872d09fd6e..1de94e1232b4 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.it.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.it.json
@@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Salta ripristino",
"symbols/UseProgramMain/description": "Indica se generare una classe Program esplicita e un metodo Main anziché istruzioni di primo livello.",
"symbols/UseProgramMain/displayName": "Non usare_istruzioni di primo livello",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Ripristina i pacchetti NuGet richiesti da questo progetto.",
"postActions/restore/manualInstructions/default/text": "Esegui 'dotnet restore'",
"postActions/open-file/description": "Apre Program.cs nell'editor"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.ja.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.ja.json
index 3370a698d7c8..2466b6850bcf 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.ja.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.ja.json
@@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "復元のスキップ",
"symbols/UseProgramMain/description": "最上位レベルのステートメントではなく、明示的な Program クラスと Main メソッドを生成するかどうか。",
"symbols/UseProgramMain/displayName": "最上位レベルのステートメントを使用しない(_T)",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "このプロジェクトに必要な NuGet パッケージを復元します。",
"postActions/restore/manualInstructions/default/text": "'dotnet restore' を実行する",
"postActions/open-file/description": "エディターで Program.cs を開く"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.ko.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.ko.json
index 7b35532f82b7..52bd9b0d3a62 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.ko.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.ko.json
@@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "복원 건너뛰기",
"symbols/UseProgramMain/description": "최상위 문 대신 명시적 Program 클래스 및 Main 메서드를 생성할지 여부입니다.",
"symbols/UseProgramMain/displayName": "최상위 문 사용 안 함(_T)",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "이 프로젝트에 필요한 NuGet 패키지를 복원합니다.",
"postActions/restore/manualInstructions/default/text": "'dotnet restore' 실행",
"postActions/open-file/description": "편집기에서 Program.cs를 엽니다"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.pl.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.pl.json
index 1ea8a5241fe1..0937ef183616 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.pl.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.pl.json
@@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Pomiń przywracanie",
"symbols/UseProgramMain/description": "Określa, czy wygenerować jawną klasę Program i metodę Main zamiast instrukcji najwyższego poziomu.",
"symbols/UseProgramMain/displayName": "Nie używaj ins_trukcji najwyższego poziomu",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Przywróć pakiety NuGet wymagane przez ten projekt.",
"postActions/restore/manualInstructions/default/text": "Uruchom polecenie \"dotnet restore\"",
"postActions/open-file/description": "Otwiera plik Program.cs w edytorze"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.pt-BR.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.pt-BR.json
index 56afffbdfd26..99ecee00a311 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.pt-BR.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.pt-BR.json
@@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Ignorar restauração",
"symbols/UseProgramMain/description": "Se deve gerar uma classe de Programa explícita e um método principal em vez de instruções de nível superior.",
"symbols/UseProgramMain/displayName": "Não use ins_truções de nível superior",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Restaure os pacotes NuGet exigidos por este projeto.",
"postActions/restore/manualInstructions/default/text": "Executa 'dotnet restore'",
"postActions/open-file/description": "Abre Program.cs no editor"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.ru.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.ru.json
index 196f94bac472..5a7b8062b141 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.ru.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.ru.json
@@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Пропустить восстановление",
"symbols/UseProgramMain/description": "Следует ли создавать явный класс Program и метод Main вместо операторов верхнего уровня.",
"symbols/UseProgramMain/displayName": "Не использовать _операторы верхнего уровня",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Восстановление пакетов NuGet, необходимых для этого проекта.",
"postActions/restore/manualInstructions/default/text": "Выполнить команду \"dotnet restore\"",
"postActions/open-file/description": "Открывает файл Program.cs в редакторе"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.tr.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.tr.json
index 3242c49ee27c..5e89285ee337 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.tr.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.tr.json
@@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Geri yüklemeyi atla",
"symbols/UseProgramMain/description": "Üst düzey deyimler yerine açık bir Program sınıfı ve Ana yöntem oluşturup oluşturulmayacağını belirtir.",
"symbols/UseProgramMain/displayName": "_Üst düzey deyimler kullanmayın",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Bu projenin gerektirdiği NuGet paketlerini geri yükleyin.",
"postActions/restore/manualInstructions/default/text": "'dotnet restore' çalıştır",
"postActions/open-file/description": "Düzenleyicide Program.cs’yi açar"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.zh-Hans.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.zh-Hans.json
index de43a0c69b9a..e06616a7864a 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.zh-Hans.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.zh-Hans.json
@@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "跳过还原",
"symbols/UseProgramMain/description": "是否生成显式程序类和主方法,而不是顶级语句。",
"symbols/UseProgramMain/displayName": "不使用顶级语句(_T)",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "还原此项目所需的 NuGet 包。",
"postActions/restore/manualInstructions/default/text": "运行 \"dotnet restore\"",
"postActions/open-file/description": "在编辑器中打开 Program.cs"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.zh-Hant.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.zh-Hant.json
index be3253b90a3b..9fb97cc94c57 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.zh-Hant.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/localize/templatestrings.zh-Hant.json
@@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "略過還原",
"symbols/UseProgramMain/description": "是否要產生明確的 Program 類別和 Main 方法,而非最上層語句。",
"symbols/UseProgramMain/displayName": "不要使用最上層陳述式(_T)",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "還原此專案所需的 NuGet 套件。",
"postActions/restore/manualInstructions/default/text": "執行 'dotnet restore'",
"postActions/open-file/description": "在編輯器中開啟 Program.cs"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/template.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/template.json
index d902a8d88f18..1135c304c178 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/template.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/.template.config/template.json
@@ -68,6 +68,13 @@
"description": "Whether to generate an explicit Program class and Main method instead of top-level statements.",
"displayName": "Do not use _top-level statements"
},
+ "NativeAot" : {
+ "type": "parameter",
+ "datatype": "bool",
+ "defaultValue": "false",
+ "displayName": "Enable _native AOT publish",
+ "description": "Whether to enable the project for publishing as native AOT."
+ },
"csharp9orOlder": {
"type": "generated",
"generator": "regexMatch",
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/Company.ConsoleApplication1.csproj b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/Company.ConsoleApplication1.csproj
index 3f0710ded88f..d06b3be0b02e 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/Company.ConsoleApplication1.csproj
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-CSharp/Company.ConsoleApplication1.csproj
@@ -8,6 +8,13 @@
$(ProjectLanguageVersion)
enable
enable
+
+ true
+ true
+
+
+
+
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/dotnetcli.host.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/dotnetcli.host.json
index 22ab4a3929f8..342c5edfb61d 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/dotnetcli.host.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/dotnetcli.host.json
@@ -16,6 +16,10 @@
"langVersion": {
"longName": "langVersion",
"shortName": ""
+ },
+ "NativeAot": {
+ "longName": "publish-native-aot",
+ "shortName": "aot"
}
},
"usageExamples": [
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/ide.host.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/ide.host.json
index f01faddb02cb..e562f1ffdc9b 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/ide.host.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/ide.host.json
@@ -6,5 +6,11 @@
"add": [],
"remove": [ "Common" ]
}
+ ],
+ "symbolInfo": [
+ {
+ "id": "NativeAot",
+ "isVisible": true
+ }
]
}
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.cs.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.cs.json
index 04d8b195cd95..103261915ff8 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.cs.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.cs.json
@@ -12,6 +12,8 @@
"symbols/langVersion/displayName": "Verze jazyka",
"symbols/skipRestore/description": "Pokud se tato možnost zadá, přeskočí automatické obnovení projektu při vytvoření.",
"symbols/skipRestore/displayName": "Přeskočit obnovení",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Obnoví balíčky NuGet vyžadované tímto projektem.",
"postActions/restore/manualInstructions/default/text": "Spustit dotnet restore",
"postActions/open-file/description": "Otevře Program.vb v editoru."
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.de.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.de.json
index be16c0b2f514..db695769bf33 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.de.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.de.json
@@ -12,6 +12,8 @@
"symbols/langVersion/displayName": "Sprachversion",
"symbols/skipRestore/description": "Wenn angegeben, wird die automatische Wiederherstellung des Projekts beim Erstellen übersprungen.",
"symbols/skipRestore/displayName": "Wiederherstellung überspringen",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "„NuGet-Pakete“ wiederherstellen, die für dieses Projekt erforderlich sind.",
"postActions/restore/manualInstructions/default/text": "„dotnet restore“ ausführen",
"postActions/open-file/description": "Öffnet „Program.vb“ im Editor"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.en.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.en.json
index 769418d252ae..1c3c39a6f720 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.en.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.en.json
@@ -12,6 +12,9 @@
"symbols/langVersion/displayName": "Language version",
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.",
"symbols/skipRestore/displayName": "Skip restore",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
+ "_symbols/NativeAot/displayName.comment": "Use '_' as accelerator key when translating.",
"postActions/restore/description": "Restore NuGet packages required by this project.",
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'",
"postActions/open-file/description": "Opens Program.vb in the editor"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.es.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.es.json
index 81bce7126d49..c3acdcacab70 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.es.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.es.json
@@ -12,6 +12,8 @@
"symbols/langVersion/displayName": "Versión de lenguaje",
"symbols/skipRestore/description": "Si se especifica, se omite la restauración automática del proyecto durante la creación.",
"symbols/skipRestore/displayName": "Omitir restauración",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Restaure los paquetes NuGet necesarios para este proyecto.",
"postActions/restore/manualInstructions/default/text": "Ejecutar \"dotnet restore\"",
"postActions/open-file/description": "Abre Program.vb en el editor"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.fr.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.fr.json
index 5862ea8ba3e9..386b202a8466 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.fr.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.fr.json
@@ -12,6 +12,8 @@
"symbols/langVersion/displayName": "Version du langage",
"symbols/skipRestore/description": "S’il est spécifié, ignore la restauration automatique du projet lors de la création.",
"symbols/skipRestore/displayName": "Ignorer la restauration",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Restaurez les packages NuGet requis par ce projet.",
"postActions/restore/manualInstructions/default/text": "Exécuter « dotnet restore »",
"postActions/open-file/description": "Ouvre Program.vb dans l’éditeur"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.it.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.it.json
index 8839e72b4a87..5dd2efed362d 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.it.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.it.json
@@ -12,6 +12,8 @@
"symbols/langVersion/displayName": "Versione del linguaggio",
"symbols/skipRestore/description": "Se specificato, ignora il ripristino automatico del progetto durante la creazione.",
"symbols/skipRestore/displayName": "Salta ripristino",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Ripristina i pacchetti NuGet richiesti da questo progetto.",
"postActions/restore/manualInstructions/default/text": "Esegui 'dotnet restore'",
"postActions/open-file/description": "Apre Program.vb nell'editor"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.ja.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.ja.json
index 8d50440ad7cf..3207dbf2cf2d 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.ja.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.ja.json
@@ -12,6 +12,8 @@
"symbols/langVersion/displayName": "言語バージョン",
"symbols/skipRestore/description": "指定した場合、作成時にプロジェクトの自動復元がスキップされます。",
"symbols/skipRestore/displayName": "復元のスキップ",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "このプロジェクトに必要な NuGet パッケージを復元します。",
"postActions/restore/manualInstructions/default/text": "'dotnet restore' を実行する",
"postActions/open-file/description": "エディターで Program.vb を開く"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.ko.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.ko.json
index 036b550da458..1c22b7dd001e 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.ko.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.ko.json
@@ -12,6 +12,8 @@
"symbols/langVersion/displayName": "언어 버전",
"symbols/skipRestore/description": "지정된 경우, 프로젝트 생성 시 자동 복원을 건너뜁니다.",
"symbols/skipRestore/displayName": "복원 건너뛰기",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "이 프로젝트에 필요한 NuGet 패키지를 복원합니다.",
"postActions/restore/manualInstructions/default/text": "'dotnet restore' 실행",
"postActions/open-file/description": "편집기에서 Program.vb를 엽니다"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.pl.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.pl.json
index a2efd77179dd..c4e5d26324f7 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.pl.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.pl.json
@@ -12,6 +12,8 @@
"symbols/langVersion/displayName": "Wersja języka",
"symbols/skipRestore/description": "Jeśli ta opcja jest określona, pomija automatyczne przywracanie projektu podczas tworzenia.",
"symbols/skipRestore/displayName": "Pomiń przywracanie",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Przywróć pakiety NuGet wymagane przez ten projekt.",
"postActions/restore/manualInstructions/default/text": "Uruchom polecenie \"dotnet restore\"",
"postActions/open-file/description": "Otwiera plik Program.vb w edytorze"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.pt-BR.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.pt-BR.json
index d724b4d23a96..b5a322163417 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.pt-BR.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.pt-BR.json
@@ -12,6 +12,8 @@
"symbols/langVersion/displayName": "Versão do idioma",
"symbols/skipRestore/description": "Se especificado, ignora a restauração automática do projeto sendo criado.",
"symbols/skipRestore/displayName": "Ignorar restauração",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Restaure os pacotes NuGet exigidos por este projeto.",
"postActions/restore/manualInstructions/default/text": "Executa 'dotnet restore'",
"postActions/open-file/description": "Abre Program.vb no editor"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.ru.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.ru.json
index 862aa351f287..4a9d9339f814 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.ru.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.ru.json
@@ -12,6 +12,8 @@
"symbols/langVersion/displayName": "Версия языка",
"symbols/skipRestore/description": "Если установлено, автоматическое восстановление проекта при создании пропускается.",
"symbols/skipRestore/displayName": "Пропустить восстановление",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Восстановление пакетов NuGet, необходимых для этого проекта.",
"postActions/restore/manualInstructions/default/text": "Выполнить команду \"dotnet restore\"",
"postActions/open-file/description": "Открывает файл Program.vb в редакторе"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.tr.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.tr.json
index 3cd8460fafd9..bc4972c46410 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.tr.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.tr.json
@@ -12,6 +12,8 @@
"symbols/langVersion/displayName": "Dil sürümü",
"symbols/skipRestore/description": "Belirtilirse, oluşturma sırasında projenin otomatik geri yüklenmesini atlar.",
"symbols/skipRestore/displayName": "Geri yüklemeyi atla",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "Bu projenin gerektirdiği NuGet paketlerini geri yükleyin.",
"postActions/restore/manualInstructions/default/text": "'dotnet restore' çalıştır",
"postActions/open-file/description": "Düzenleyicide Program.vb’yi açar"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.zh-Hans.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.zh-Hans.json
index b79a55f88535..a7b6d4e73bd6 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.zh-Hans.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.zh-Hans.json
@@ -12,6 +12,8 @@
"symbols/langVersion/displayName": "语言版本",
"symbols/skipRestore/description": "如果指定,则在创建时跳过项目的自动还原。",
"symbols/skipRestore/displayName": "跳过还原",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "还原此项目所需的 NuGet 包。",
"postActions/restore/manualInstructions/default/text": "运行 \"dotnet restore\"",
"postActions/open-file/description": "在编辑器中打开 Program.vb"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.zh-Hant.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.zh-Hant.json
index 672fbdb2f44a..bbc76c6877b5 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.zh-Hant.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/localize/templatestrings.zh-Hant.json
@@ -12,6 +12,8 @@
"symbols/langVersion/displayName": "語言版本",
"symbols/skipRestore/description": "若指定,會在建立時跳過專案的自動還原。",
"symbols/skipRestore/displayName": "略過還原",
+ "symbols/NativeAot/description": "Whether to enable the project for publishing as native AOT.",
+ "symbols/NativeAot/displayName": "Enable _native AOT publish",
"postActions/restore/description": "還原此專案所需的 NuGet 套件。",
"postActions/restore/manualInstructions/default/text": "執行 'dotnet restore'",
"postActions/open-file/description": "在編輯器中開啟 Program.vb"
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/template.json b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/template.json
index 2e8c2f0d6326..51f772413625 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/template.json
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/.template.config/template.json
@@ -60,6 +60,13 @@
"description": "If specified, skips the automatic restore of the project on create.",
"defaultValue": "false",
"displayName": "Skip restore"
+ },
+ "NativeAot" : {
+ "type": "parameter",
+ "datatype": "bool",
+ "defaultValue": "false",
+ "displayName": "Enable _native AOT publish",
+ "description": "Whether to enable the project for publishing as native AOT."
}
},
"primaryOutputs": [
diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/Company.ConsoleApplication1.vbproj b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/Company.ConsoleApplication1.vbproj
index 935d8aecea20..3c2f731a5dc6 100644
--- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/Company.ConsoleApplication1.vbproj
+++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.8.0/content/ConsoleApplication-VisualBasic/Company.ConsoleApplication1.vbproj
@@ -6,6 +6,13 @@
net8.0
TargetFrameworkOverride
$(ProjectLanguageVersion)
+
+ true
+ true
+
+
+
+