sln

package
v0.0.0-...-1d71295 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Csproj

type Csproj struct {
	ItemGroups []ItemGroup `xml:"ItemGroup,omitempty"`
}

type ItemGroup

type ItemGroup struct {
	ProjectReferences []ProjectReference `xml:"ProjectReference,omitempty"`
	PackageReferences []PackageReference `xml:"PackageReference"`
}

type PackageReference

type PackageReference struct {
	Text    string `xml:",chardata"`
	Include string `xml:"Include,attr"`
	Version string `xml:"Version,attr"`
}

type Project

type Project struct {
	Name string
	Path string
	Sln  string
	*Csproj
}

Project hold information about a Visual Studio Project

func Open

func Open(path ...string) ([]*Project, *graph.Graph, error)

Open sln file(s), parse projects, create and return dependency graph and all parsed projects.

func (*Project) IsTest

func (project *Project) IsTest() bool

IsTest return true if project is a test project, if not return false.

type ProjectReference

type ProjectReference struct {
	Include string `xml:"Include,attr,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL