Table of Contents

Interface ISolutionFolder

Namespace
SunamoDevCode.SunamoSolutionsIndexer.Interfaces
Assembly
SunamoDevCode.dll

Interface for solution folder operations

public interface ISolutionFolder
Extension Methods

Properties

ProjectsGetCsprojs

Gets or sets the list of csproj file paths in this solution.

List<string> ProjectsGetCsprojs { get; set; }

Property Value

List<string>

ProjectsInSolution

Gets or sets the list of project names referenced in the solution file.

List<string> ProjectsInSolution { get; set; }

Property Value

List<string>

TypeProjectFolder

Gets or sets the project type classification for the folder.

ProjectsTypes TypeProjectFolder { get; set; }

Property Value

ProjectsTypes

Methods

ExeToRelease(SolutionFolder, string, bool, bool, bool)

Returns the path to the release executable for this solution.

string? ExeToRelease(SolutionFolder sln, string projectDistinction, bool isStandaloneSlnForProject, bool isAddingProtectedWhenSelling = false, bool isPublishing = false)

Parameters

sln SolutionFolder

Solution folder reference.

projectDistinction string

Project distinction identifier.

isStandaloneSlnForProject bool

Whether this is a standalone sln for a single project.

isAddingProtectedWhenSelling bool

Whether to add protection when selling.

isPublishing bool

Whether this is for a publish operation.

Returns

string

Path to the release executable.

HaveGitFolder()

Determines whether this solution folder contains a .git directory.

bool HaveGitFolder()

Returns

bool

True if a .git folder exists.

ToString()

Returns a string representation of the solution folder.

string ToString()

Returns

string

String representation.

UpdateModules(ILogger, PpkOnDriveDC)

Updates git submodules for this solution.

void UpdateModules(ILogger logger, PpkOnDriveDC toSelling)

Parameters

logger ILogger

Logger instance.

toSelling PpkOnDriveDC

Package configuration.