protected ProjectPatcher(SolutionOptions solutionOptions, ProjectInfo project)
 {
     this.solutionOptions = solutionOptions ?? throw new ArgumentNullException(nameof(solutionOptions));
     this.project         = project ?? throw new ArgumentNullException(nameof(project));
     Debug.Assert(solutionOptions.AllProjects.Any(a => a == project));
     textFilePatcher = new TextFilePatcher(project.Filename);
 }
Beispiel #2
0
 public SolutionPatcher(SolutionOptions solutionOptions)
 {
     this.solutionOptions = solutionOptions ?? throw new ArgumentNullException(nameof(solutionOptions));
     solutionDir          = Path.GetDirectoryName(solutionOptions.SolutionFilename) !;
     textFilePatcher      = new TextFilePatcher(solutionOptions.SolutionFilename);
     unityVersionDirGuid  = Guid.NewGuid();
 }
 protected ProjectPatcher(SolutionOptions?solutionOptions, ProjectInfo?project, string oldProjectToolsVersion, string newProjectToolsVersion)
 {
     this.solutionOptions        = solutionOptions ?? throw new ArgumentNullException(nameof(solutionOptions));
     this.project                = project ?? throw new ArgumentNullException(nameof(project));
     this.oldProjectToolsVersion = oldProjectToolsVersion ?? throw new ArgumentNullException(nameof(oldProjectToolsVersion));
     this.newProjectToolsVersion = newProjectToolsVersion ?? throw new ArgumentNullException(nameof(newProjectToolsVersion));
     Debug.Assert(solutionOptions.AllProjects.Any(a => a == project));
     textFilePatcher = new TextFilePatcher(project.Filename);
 }
Beispiel #4
0
 public Patcher(string unityVersion, string unityGitHash, string unityRepoPath, string dnSpyUnityMonoRepoPath, string gitExePath, string windowsTargetPlatformVersion, string platformToolset)
 {
     this.unityVersion = unityVersion ?? throw new ArgumentNullException(nameof(unityVersion));
     this.unityGitHash = unityGitHash ?? throw new ArgumentNullException(nameof(unityGitHash));
     unityRepo         = new GitRepo(gitExePath, unityRepoPath);
     dnSpyRepo         = new GitRepo(gitExePath, dnSpyUnityMonoRepoPath);
     dnSpyVersionPath  = Path.Combine(dnSpyUnityMonoRepoPath, Constants.UnityVersionPrefix + unityVersion);
     solutionOptions   = new SolutionOptions(dnSpyRepo.RepoPath, dnSpyVersionPath, windowsTargetPlatformVersion, platformToolset);
 }
Beispiel #5
0
 public SourceCodePatcher(SolutionOptions solutionOptions) =>
 this.solutionOptions = solutionOptions ?? throw new ArgumentNullException(nameof(solutionOptions));
Beispiel #6
0
 public LibmonoProjectPatcher(SolutionOptions solutionOptions)
     : base(solutionOptions, solutionOptions?.LibmonoProject)
 {
 }