-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: dotnet new templates checkups and solution #134
Conversation
// Running 'dotnet new uninstall' without any package ID will list all installed | ||
// dotnet new templates along with their versions. | ||
var processInfo = new ProcessStartInfo("dotnet", "new uninstall"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A more robust approach would be using Microsoft.TemplateEngine.Edge
NuGet package. I haven't used it before, but I believe this is what the .NET CLI uses underneath the hoods.
That way we don't have to worry about .NET CLI changing the format of the produced output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried to use the library, but I wasn't able to get it work and there is not many useful samples for it. So for now, keeping the original approach, but if you have some resources, I would look into it further 👍
We need to adjust this for the new nuget package template name which is not available yet. |
DONE |
66c8309
to
d5b9702
Compare
Checks for the latest version of Uno and Extensions templates and installs them if available.