You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -107,6 +109,11 @@ public override ICommandLineParserResult ParseArgs(string[] args)
107
109
.WithDescription("Initialize a language specific project. Currently supported when --worker-runtime set to node. Options are - \"typescript\" and \"javascript\"")
108
110
.Callback(l =>Language=l);
109
111
112
+
Parser
113
+
.Setup<string>("target-framework")
114
+
.WithDescription("Initialize a project with the given target framework moniker. Currently supported only when --worker-runtime set to dotnet-isolated. Options are - \"net48\", \"net6.0\", and \"net7.0\"")
115
+
.Callback(tf =>TargetFramework=tf);
116
+
110
117
Parser
111
118
.Setup<bool>("managed-dependencies")
112
119
.WithDescription("Installs managed dependencies. Currently, only the PowerShell worker runtime supports this functionality.")
// Default to .NET 6 if the target framework is not specified
316
+
// NOTE: we must have TargetFramework be non-empty for a dotnet-isolated project, even if it is not specified by the user, due to the structure of the new templates
0 commit comments