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