introduction of nuget packages as plugins support

This commit is contained in:
zznty
2023-02-08 15:56:50 +07:00
parent 1a1a7e779a
commit b9cb71e11f
20 changed files with 805 additions and 10 deletions

View File

@@ -119,6 +119,9 @@ public class TorchConfig : ViewModel, ITorchConfig
SourceType = UpdateSourceType.Github
};
[Display(Name = "Packages", Description = "Packages to install and use.", GroupName = "Server")]
public List<string> Packages { get; set; } = new();
// for backward compatibility
public void Save(string path = null) => Initializer.Instance?.ConfigPersistent?.Save(path);
}