Added specific settings for WinForms generator
This commit is contained in:
8 files changed
+136
-2
No files matched your search
@@ -423,6 +423,22 @@ public static class AppSettings
|
||||
|
||||
public static async Task SetGeneratorGodotDestinationPath(string path) => await AppSettings.SetSetting(SettingNames.GENERATOR_GODOT_DESTINATION_PATH, path);
|
||||
|
||||
#endregion
|
||||
|
||||
#region .NET WinForms Generator Enabled/Disabled
|
||||
|
||||
public static async Task<bool> GetGeneratorDotnetWinFormsEnabled() => await AppSettings.GetSetting(SettingNames.GENERATOR_DOTNET_WIN_FORMS_ENABLED, false);
|
||||
|
||||
public static async Task SetGeneratorDotnetWinFormsEnabled(bool enabled) => await AppSettings.SetSetting(SettingNames.GENERATOR_DOTNET_WIN_FORMS_ENABLED, enabled);
|
||||
|
||||
#endregion
|
||||
|
||||
#region .NET WinForms Generator Root Path
|
||||
|
||||
public static async Task<string> GetGeneratorDotnetWinFormsRootPath() => await AppSettings.GetSetting(SettingNames.GENERATOR_DOTNET_WIN_FORMS_ROOT_PATH, string.Empty);
|
||||
|
||||
public static async Task SetGeneratorDotnetWinFormsRootPath(string path) => await AppSettings.SetSetting(SettingNames.GENERATOR_DOTNET_WIN_FORMS_ROOT_PATH, path);
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace Processor.Generators;
|
||||
|
||||
public class DotnetWinForms : IGenerator
|
||||
{
|
||||
#region Implementation of IGenerator
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<ProcessorResult<long>> GenerateAsync()
|
||||
{
|
||||
return new ProcessorResult<long>(1);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
public static class Version
|
||||
{
|
||||
public static string Text => $"v0.9.7 (2023-02-16), .NET {Environment.Version}";
|
||||
public static string Text => $"v0.10.1 (2023-02-17), .NET {Environment.Version}";
|
||||
}
|
||||
Reference in new issue
Block a user