dotnet

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CSPROJ_FILE_EXT is the file extension for C# (C Sharp) projects.
	CSPROJ_FILE_EXT = ".csproj"
	// LaunchSettingsJSON is the name of the json containing launch configuration
	LaunchSettingsJSON = "launchSettings.json"
	// DotNetCoreCsprojFilesPathType points to the csproj files path of dotnetcore projects
	DotNetCoreCsprojFilesPathType transformertypes.PathType = "DotNetCoreCsprojPathType"
	// DotNetCoreSolutionFilePathType points to the solution file path of a dot net core project
	DotNetCoreSolutionFilePathType transformertypes.PathType = "DotNetCoreSolutionPathType"
)
View Source
const (
	// NO_BUILD_STAGE don't generate the build stage in Dockerfiles
	NO_BUILD_STAGE buildOption = "no build stage"
	// BUILD_IN_BASE_IMAGE generate the build stage and put it in a separate Dockerfile
	BUILD_IN_BASE_IMAGE buildOption = "build stage in base image"
	// BUILD_IN_EVERY_IMAGE generate the build stage in every Dockerfile
	BUILD_IN_EVERY_IMAGE buildOption = "build stage in every image"
)

Variables

This section is empty.

Functions

func AskUserForDockerfileType

func AskUserForDockerfileType(rootProjectName string) (buildOption, error)

AskUserForDockerfileType asks the user what type of Dockerfiles to generate.

func GetCSProjPathsFromSlnFile

func GetCSProjPathsFromSlnFile(inputPath string, allPaths bool) ([]string, error)

GetCSProjPathsFromSlnFile parses the solution file for cs project file paths. If "allPaths" is true then every path we find will be returned (not just c sharp project files).

func GetChildProjectName

func GetChildProjectName(csProjPath string) string

GetChildProjectName gets the child project name give the path to the c sharp project file

func GetParentProjectName

func GetParentProjectName(slnPath string) string

GetParentProjectName gets the parent project name give the path to the visual studio solution file

func ParseCSProj

func ParseCSProj(path string) (dotnet.CSProj, error)

ParseCSProj parses a c sharp project file

Types

This section is empty.

Jump to

Keyboard shortcuts

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