15 instantiations of TemplateDiscoveryException
aspire (15)
Templating\TemplateEngineFactory.cs (7)
90
throw new
TemplateDiscoveryException
(CliExitCodes.InvalidCommand,
110
throw new
TemplateDiscoveryException
(CliExitCodes.FailedToInstallTemplates,
131
throw new
TemplateDiscoveryException
(CliExitCodes.InvalidCommand,
198
throw new
TemplateDiscoveryException
(CliExitCodes.FailedToInstallTemplates,
206
throw new
TemplateDiscoveryException
(CliExitCodes.FailedToInstallTemplates, message);
267
throw new
TemplateDiscoveryException
(CliExitCodes.InvalidCommand, NewCommandStrings.TemplateRepositoryPathInvalid);
273
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)
146
throw new
TemplateDiscoveryException
(CliExitCodes.InvalidCommand,
Templating\TemplateSource.cs (2)
21
throw new
TemplateDiscoveryException
(CliExitCodes.InvalidCommand, Resources.NewCommandStrings.TemplateRepositoryPathInvalid);
35
throw new
TemplateDiscoveryException
(CliExitCodes.InvalidCommand, Resources.NewCommandStrings.TemplateRepositoryPathInvalid);
19 references to TemplateDiscoveryException
aspire (4)
Commands\NewCommand.cs (2)
754
catch (
TemplateDiscoveryException
ex)
778
catch (
TemplateDiscoveryException
ex)
Templating\ConfiguredTemplateSourceService.cs (1)
91
catch (Exception ex) when (ex is
TemplateDiscoveryException
or IOException or UnauthorizedAccessException or ArgumentException)
Templating\TemplateSourceConfiguration.cs (1)
159
catch (Exception ex) when (ex is
TemplateDiscoveryException
or ArgumentException or NotSupportedException)
Aspire.Cli.Tests (15)
Commands\NewCommandLocalTemplateTests.cs (4)
1803
var
exception = await Assert.ThrowsAsync<
TemplateDiscoveryException
>(() =>
1882
var
exception = await Assert.ThrowsAsync<
TemplateDiscoveryException
>(() => templateProvider.GetTemplatesAsync(source));
Templating\TemplateEngineFactoryGitCheckoutTests.cs (2)
104
var
exception = await Assert.ThrowsAsync<
TemplateDiscoveryException
>(() => GetFactory(provider).GetTemplatesAsync(
Templating\TemplateEngineFactoryGitTests.cs (8)
98
var
exception = await Assert.ThrowsAsync<
TemplateDiscoveryException
>(() =>
119
var
exception = await Assert.ThrowsAsync<
TemplateDiscoveryException
>(() =>
183
var
exception = await Assert.ThrowsAsync<
TemplateDiscoveryException
>(() =>
212
var
exception = await Assert.ThrowsAsync<
TemplateDiscoveryException
>(() =>
Templating\TemplateSourceConfigurationTests.cs (1)
52
Assert.Throws<
TemplateDiscoveryException
>(() => TemplateSource.GetRepositoryRelativePath(path, root));