C# Class NewProjectCreator.ProjectCreationHelper

Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Méthodes publiques

Méthode Description
GetDefaultZipLocationAndStringToReplace ( PlatformProjectInfo project, string &zipToUnpack, string &stringToReplace ) : void

Returns with default directory for templates (AppData)

GetDefaultZipLocationAndStringToReplace ( PlatformProjectInfo project, string templateLocation, string &zipToUnpack, string &stringToReplace ) : void
MakeNewProject ( NewProjectViewModel viewModel ) : bool

Private Methods

Méthode Description
AddEngineProjectsToProject ( PlatformProjectInfo projectType, string &contents ) : void
CreateGuidInAssemblyInfo ( string unpackDirectory ) : void
DownloadFileSync ( NewProjectViewModel viewModel, string zipToUnpack, string fileToDownoad ) : bool
EncodeSLNFiles ( string FileName ) : void
GetFileToDownload ( NewProjectViewModel viewModel ) : string
GetGUID ( string projectLocation ) : string
GetIfFileNameIsValid ( NewProjectViewModel viewModel, string &unpackDirectory ) : bool
GetWhyProjectNameIsntValid ( string projectName ) : string
GetZipToUnpack ( NewProjectViewModel viewModel, string fileToDownload, bool &hasUserCancelled, bool &shouldTryDownloading ) : string
RenameEverything ( NewProjectViewModel viewModel, string stringToReplace, string unpackDirectory ) : void
RenameFiles ( string unpackDirectory, string stringToReplace, string stringToReplaceWith ) : void

Renames all contained files to match the project name. For example if the project is called RaceCar, then this makes RaceCar.sln, RaceCar.csproj, and so on.

ShowErrorMessageBox ( bool &hasUserCancelled, string &zipToUnpack, string message ) : void
UpdateJavaFiles ( string unpackDirectory, string stringToReplace, string stringToReplaceWith ) : void
UpdateNamespaces ( string unpackDirectory, string stringToReplace, string stringToReplaceWith ) : void
UpdateProjects ( string unpackDirectory, string stringToReplace, string stringToReplaceWith ) : void
UpdateSolutionContents ( string unpackDirectory, string stringToReplace, string stringToReplaceWith ) : void
getProjectFromSln ( string slnLocation ) : string

Method Details

GetDefaultZipLocationAndStringToReplace() public static méthode

Returns with default directory for templates (AppData)
public static GetDefaultZipLocationAndStringToReplace ( PlatformProjectInfo project, string &zipToUnpack, string &stringToReplace ) : void
project PlatformProjectInfo
zipToUnpack string
stringToReplace string
Résultat void

GetDefaultZipLocationAndStringToReplace() public static méthode

public static GetDefaultZipLocationAndStringToReplace ( PlatformProjectInfo project, string templateLocation, string &zipToUnpack, string &stringToReplace ) : void
project PlatformProjectInfo
templateLocation string
zipToUnpack string
stringToReplace string
Résultat void

MakeNewProject() public static méthode

public static MakeNewProject ( NewProjectViewModel viewModel ) : bool
viewModel NewProjectCreator.ViewModels.NewProjectViewModel
Résultat bool