dotnet

package
v0.3.10-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VISUAL_STUDIO_SOLUTION_FILE_EXT is the file extension for a file Visual Studio uses to store project metadata
	// https://docs.microsoft.com/en-us/visualstudio/extensibility/internals/solution-dot-sln-file?view=vs-2022
	VISUAL_STUDIO_SOLUTION_FILE_EXT = ".sln"

	// DefaultBaseImageVersion is the default base image version tag
	DefaultBaseImageVersion = "4.8"
)

Variables

View Source
var (
	// Version4And3_5 is the regex to match against specific Dot Net framework versions
	Version4And3_5 = regexp.MustCompile(`(v4|v3\.5)`)
	// WebLib is the key library used in web applications
	WebLib = regexp.MustCompile(`^System\.Web`)
	// AspNetWebLib is the key library used in asp net web applications
	AspNetWebLib = regexp.MustCompile("AspNet")
	// WebSLLib is the key library used in web sliverlight applications
	WebSLLib = regexp.MustCompile(`Silverlight\.js`)
	// ProjBlockRegex pattern
	ProjBlockRegex = regexp.MustCompile(`(?m)^Project\([^)]+\)[^,]+,\s*\"([^"]+)\"`)
)

Functions

This section is empty.

Types

type AddKeys

type AddKeys struct {
	XMLName     xml.Name `xml:"add"`
	BaseAddress string   `xml:"baseAddress,attr"`
	Key         string   `xml:"key,attr"`
	Value       string   `xml:"value,attr"`
}

AddKeys defines the key list

type AppCfgSettings

type AppCfgSettings struct {
	XMLName xml.Name  `xml:"appSettings"`
	AddList []AddKeys `xml:"add"`
}

AppCfgSettings defines the settings

type AppConfig

type AppConfig struct {
	XMLName        xml.Name       `xml:"configuration"`
	Model          ServiceModel   `xml:"system.serviceModel"`
	AppCfgSettings AppCfgSettings `xml:"appSettings"`
}

AppConfig defines the app.config

type BaseAddresses

type BaseAddresses struct {
	XMLName xml.Name  `xml:"baseAddresses"`
	AddList []AddKeys `xml:"add"`
}

BaseAddresses defines list of base addresses

type CSProj

type CSProj struct {
	XMLName        xml.Name        `xml:"Project"`
	Sdk            string          `xml:"Sdk,attr"`
	PropertyGroups []PropertyGroup `xml:"PropertyGroup"`
	ItemGroups     []ItemGroup     `xml:"ItemGroup"`
}

CSProj defines the .csproj file

type Content

type Content struct {
	XMLName xml.Name `xml:"Content"`
	Include string   `xml:"Include,attr"`
}

Content defined in .csproj to define items used in the project

type Entries

type Entries map[string]string

Entries defines a pom.xml entry

func (Entries) MarshalXML

func (entries Entries) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML marshals XML

type Host

type Host struct {
	XMLName       xml.Name      `xml:"host"`
	BaseAddresses BaseAddresses `xml:"baseAddresses"`
}

Host defines a host exposed by service

type ItemGroup

type ItemGroup struct {
	XMLName           xml.Name           `xml:"ItemGroup"`
	PackageReferences []PackageReference `xml:"PackageReference"`
	References        []Reference        `xml:"Reference"`
	Contents          []Content          `xml:"Content"`
	None              []None             `xml:"None"`
}

ItemGroup is defined in .csproj file to list items used in the project

type None

type None struct {
	XMLName xml.Name `xml:"None"`
	Include string   `xml:"Include,attr"`
}

None is defined in .csproj to define items used in the project

type PackageReference added in v0.3.3

type PackageReference struct {
	XMLName xml.Name `xml:"PackageReference"`
	Include string   `xml:"Include,attr"`
	Version string   `xml:"Version,attr"`
}

PackageReference is used in .csproj files to list dependencies

type Properties

type Properties struct {
	Entries Entries
}

Properties defines pom.xml properties

func (*Properties) UnmarshalXML

func (p *Properties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error)

UnmarshalXML unmarshals XML

type PropertyGroup

type PropertyGroup struct {
	XMLName                xml.Name    `xml:"PropertyGroup"`
	Condition              string      `xml:"Condition,attr"`
	TargetFramework        string      `xml:"TargetFramework"`
	TargetFrameworkVersion string      `xml:"TargetFrameworkVersion"`
	OutputPath             string      `xml:"OutputPath"`
	Properties             *Properties `xml:"properties,omitempty"`
}

PropertyGroup is defined in .csproj file to list properties of the project

type Reference

type Reference struct {
	XMLName xml.Name `xml:"Reference"`
	Include string   `xml:"Include,attr"`
}

Reference is used in .csproj files to list dependencies

type Service

type Service struct {
	XMLName xml.Name `xml:"service"`
	Host    Host     `xml:"host"`
}

Service defines a service property list

type ServiceModel

type ServiceModel struct {
	XMLName  xml.Name `xml:"system.serviceModel"`
	Services Services `xml:"services"`
}

ServiceModel defines list of service models

type Services

type Services struct {
	XMLName     xml.Name  `xml:"services"`
	ServiceList []Service `xml:"service"`
}

Services defines list of services

Jump to

Keyboard shortcuts

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