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 ¶
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 ¶
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 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 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 ServiceModel ¶
type ServiceModel struct { XMLName xml.Name `xml:"system.serviceModel"` Services Services `xml:"services"` }
ServiceModel defines list of service models
Click to show internal directories.
Click to hide internal directories.