csproj

package
v0.0.0-...-6f87548 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: Apache-2.0 Imports: 4 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 {
	Name       string
	FilePath   string
	ItemGroups []ItemGroup `xml:"ItemGroup,omitempty"`
}

func Parse

func Parse(p string) (*Csproj, error)

func (*Csproj) IsTest

func (c *Csproj) IsTest() bool

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

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 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