Table of Contents

Class DotNetSolution

Namespace
Alternet.Common.Projects.DotNet
Assembly
Alternet.Common.v10.dll

Represents properties and methods used to store and manipulate Visual Studio solution content.

public class DotNetSolution
Inheritance
DotNetSolution
Extension Methods

Properties

Configurations

List of solution's configurations.

DefaultProject

Gets or sets main project in the solution.

FileFormatVersion

Gets or sets solution's file format version.

Files

Gets list of files included in the all projects within the solution.

HasProjects

Gets a value indicating whether solution contains some project or folder.

IsEmpty

Gets a value indicating whether solution contains some data.

IsModified

Gets or sets a value indicating whether project content has been modified since last save.

MinimumVisualStudioVersion

Gets or sets solution's minimum version.

Projects

Gets list of projects included in the solution.

SolutionFileName

Gets fully qualified name of the solution file.

SolutionGuid

Solution GUID. Mandatory starting from Visual studio 2017.

SolutionName

Gets or sets solution's name.

Version

Gets solution version.

VisualStudioVersion

Gets or sets solution's version.

Methods

AddProject(DotNetProject, DotNetProject?)

Adds project to the solution.

AllFiles(bool)

Gets list of files included in the solution.

RemoveProject(DotNetProject)

Removes project from the solution.

Reset()

Resets Project to the default state.