コード例 #1
0
ファイル: SdkResolution.cs プロジェクト: wzq0621/monodevelop
 public SdkResolverContextImpl(SdkLogger logger, string projectFilePath, string solutionPath, Version msbuildVersion)
 {
     Logger           = logger;
     ProjectFilePath  = projectFilePath;
     SolutionFilePath = solutionPath;
     MSBuildVersion   = msbuildVersion;
 }
コード例 #2
0
 public SdkResolverContextImpl(SdkLogger logger, string projectFilePath, string solutionPath)
 {
     Logger           = logger;
     ProjectFilePath  = projectFilePath;
     SolutionFilePath = solutionPath;
 }
コード例 #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));
 }
コード例 #4
0
 /// <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));
 }