14 instantiations of TemplateDiscoveryException
aspire (14)
Templating\TemplateEngineFactory.cs (8)
62
throw new
TemplateDiscoveryException
(CliExitCodes.InvalidCommand,
82
throw new
TemplateDiscoveryException
(CliExitCodes.FailedToInstallTemplates,
100
throw new
TemplateDiscoveryException
(CliExitCodes.InvalidCommand,
117
throw new
TemplateDiscoveryException
(CliExitCodes.InvalidCommand, NewCommandStrings.TemplateRepositoryPathInvalid);
165
throw new
TemplateDiscoveryException
(CliExitCodes.FailedToInstallTemplates,
173
throw new
TemplateDiscoveryException
(CliExitCodes.FailedToInstallTemplates, message);
234
throw new
TemplateDiscoveryException
(CliExitCodes.InvalidCommand, NewCommandStrings.TemplateRepositoryPathInvalid);
240
throw new
TemplateDiscoveryException
(CliExitCodes.InvalidCommand,
Templating\TemplateEngineFactory.NuGetValues.cs (5)
65
throw new
TemplateDiscoveryException
(CliExitCodes.FailedToCreateNewProject,
76
throw new
TemplateDiscoveryException
(CliExitCodes.FailedToCreateNewProject,
106
throw new
TemplateDiscoveryException
(CliExitCodes.FailedToCreateNewProject, TemplatingStrings.TemplateNuGetConfigurationChanged);
138
throw new
TemplateDiscoveryException
(CliExitCodes.InvalidCommand,
156
throw new
TemplateDiscoveryException
(CliExitCodes.InvalidCommand, TemplatingStrings.TemplateStagingLinkNotSupported);
Templating\TemplateHostConfiguration.cs (1)
132
throw new
TemplateDiscoveryException
(CliExitCodes.InvalidCommand,
15 references to TemplateDiscoveryException
aspire (1)
Commands\NewCommand.cs (1)
674
catch (
TemplateDiscoveryException
ex)
Aspire.Cli.Tests (14)
Commands\NewCommandLocalTemplateTests.cs (4)
1748
var
exception = await Assert.ThrowsAsync<
TemplateDiscoveryException
>(() =>
1827
var
exception = await Assert.ThrowsAsync<
TemplateDiscoveryException
>(() => templateProvider.GetTemplatesAsync(source));
Templating\TemplateEngineFactoryGitCheckoutTests.cs (2)
83
var
exception = await Assert.ThrowsAsync<
TemplateDiscoveryException
>(() => GetFactory(provider).GetTemplatesAsync(
Templating\TemplateEngineFactoryGitTests.cs (8)
58
var
exception = await Assert.ThrowsAsync<
TemplateDiscoveryException
>(() =>
79
var
exception = await Assert.ThrowsAsync<
TemplateDiscoveryException
>(() =>
141
var
exception = await Assert.ThrowsAsync<
TemplateDiscoveryException
>(() =>
166
var
exception = await Assert.ThrowsAsync<
TemplateDiscoveryException
>(() =>