/// <summary> /// /// </summary> /// <param name="packageSerializer"></param> /// <param name="rootDirectory">Root directory of a project (base path for all the file patterns)</param> /// <param name="packageSpec"></param> protected PackageWriter(string rootDirectory, PackageSpec packageSpec) { Guard.NotNull(rootDirectory, nameof(rootDirectory)); Guard.NotNull(packageSpec, nameof(packageSpec)); rootDirectory = new DirectoryInfo(rootDirectory).FullName; packageSpec.Validate(); RootDirectory = rootDirectory; PackageSpec = packageSpec; }