3 instantiations of SdkResolverException
Microsoft.Build (3)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
27
new(typeof(SdkResolverException), (msg, inner) => new
SdkResolverException
(msg, inner)),
BackEnd\Components\SdkResolution\SdkResolverService.cs (2)
338
throw new
SdkResolverException
("CouldNotRunNuGetSdkResolver", sdkResolver, sdk, e, MSBuildConstants.NuGetAssemblyPathEnvironmentVariableName, e.ToString());
343
throw new
SdkResolverException
("SDKResolverFailed", sdkResolver, sdk, e, sdkResolver.Name, sdk.ToString(), e.ToString());
4 references to SdkResolverException
Microsoft.Build (2)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
27
new(typeof(
SdkResolverException
), (msg, inner) => new SdkResolverException(msg, inner)),
Evaluation\Evaluator.cs (1)
1794
catch (
SdkResolverException
e)
Microsoft.Build.Engine.UnitTests (2)
BackEnd\SdkResolverService_Tests.cs (2)
115
SdkResolverException
e = Should.Throw<
SdkResolverException
>(() => SdkResolverService.Instance.ResolveSdk(BuildEventContext.InvalidSubmissionId, sdk, _loggingContext, new MockElementLocation("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true));