Templating: When SDK template library no longer return a template with OptionalWorkload=true, it should be removed

Created on 30 Jul 2020  路  2Comments  路  Source: dotnet/templating

Implement the mechanism (just reuse the mechanism for the --uninstall option) to automatically remove all the templates marked with OptionalWorkload=true and which are not in the list returned by API

2.0 triaged

Most helpful comment

@ladipro, thank you. I edited the issue description.

All 2 comments

@grinrag just to clarify, we want to be removing optional workload templates from the cache when a) the new API no longer returns them or b) when they don't exist on the filesystem anymore?

The title suggests a) but the initial comment talks about b). Since we'll have to be calling the API on each startup and cross-checking its results with the cache anyways, it looks like b) should be cheap to implement but I'll defer to you. Thanks!

@ladipro, thank you. I edited the issue description.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brucewilkins picture brucewilkins  路  3Comments

divinebovine picture divinebovine  路  4Comments

jamiewest picture jamiewest  路  3Comments

AllanRegush picture AllanRegush  路  7Comments

neman picture neman  路  8Comments