Editor/sandmod.libraryplus/Library/ProjectLibrary.cs
using Editor;
namespace LibraryPlus;
/// <summary>
/// Represents a library in the Libraries folder.
/// Wrapper for the <see cref="LibraryProject" />.
/// </summary>
public sealed class ProjectLibrary : Library
{
internal ProjectLibrary( LibraryProject project ) : base( project.Project.Package,
new ProjectFileSystem( project.Project.RootDirectory.Name ) )
{
Project = project;
// Workaround as the Project.Package implementation doesn't copy these values from the remote package
/*var package = Package.FetchAsync( Package.ReferenceIdent(), true, true ).Result;
if ( package != null )
{
Package.Summary = package.Summary;
Package.Tags = package.Tags;
}*/
}
public LibraryProject Project { get; }
public override bool IsPlus => false;
}