Documentation
¶
Index ¶
- Constants
- func AskUserForDockerfileType(rootProjectName string) (buildOption, error)
- func GetCSProjPathsFromSlnFile(inputPath string, allPaths bool) ([]string, error)
- func GetChildProjectName(csProjPath string) string
- func GetParentProjectName(slnPath string) string
- func ParseCSProj(path string) (dotnet.CSProj, error)
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 ¶
AskUserForDockerfileType asks the user what type of Dockerfiles to generate.
func GetCSProjPathsFromSlnFile ¶
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 ¶
GetChildProjectName gets the child project name give the path to the c sharp project file
func GetParentProjectName ¶
GetParentProjectName gets the parent project name give the path to the visual studio solution file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.