Beispiel #1
0
 public SdkResolverContextImpl(SdkLogger logger, string projectFilePath, string solutionPath, Version msbuildVersion)
 {
     Logger           = logger;
     ProjectFilePath  = projectFilePath;
     SolutionFilePath = solutionPath;
     MSBuildVersion   = msbuildVersion;
 }
Beispiel #2
0
 public SdkResolverContextImpl(SdkLogger logger, string projectFilePath, string solutionPath)
 {
     Logger           = logger;
     ProjectFilePath  = projectFilePath;
     SolutionFilePath = solutionPath;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the NuGetLogger class.
 /// </summary>
 /// <param name="sdkLogger">A <see cref="SdkLogger"/> to forward events to.</param>
 /// <param name="warnings">A <see cref="ICollection{String}"/> to add logged warnings to.</param>
 /// <param name="errors">An <see cref="ICollection{String}"/> to add logged errors to.</param>
 public NuGetSdkLogger(SdkLogger sdkLogger, ICollection <string> warnings, ICollection <string> errors)
 {
     _sdkLogger = sdkLogger ?? throw new ArgumentNullException(nameof(sdkLogger));
     _warnings  = warnings ?? throw new ArgumentNullException(nameof(warnings));
     _errors    = errors ?? throw new ArgumentNullException(nameof(errors));
 }
 /// <summary>
 /// Initializes a new instance of the NuGetLogger class.
 /// </summary>
 /// <param name="sdkLogger">A <see cref="SdkLogger"/> to forward events to.</param>
 /// <exception cref="ArgumentNullException"><paramref name="sdkLogger" /> is <c>null</c>.</exception>
 public NuGetSdkLogger(SdkLogger sdkLogger)
 {
     _sdkLogger = sdkLogger ?? throw new ArgumentNullException(nameof(sdkLogger));
 }