Class VSProjectHelper
public static class VSProjectHelper
- Inheritance
-
VSProjectHelper
Methods
CompileProjectAssemblyAsync(string, string, ILogger, string, string, string, Dictionary<string, string>, BuildRequestDataFlags)
public static ICancellableAsyncBuild CompileProjectAssemblyAsync(string solutionFullPath, string fullProjectLocation, ILogger logger, string targets = "Build", string configuration = "Debug", string platform = "AnyCPU", Dictionary<string, string> extraProperties = null, BuildRequestDataFlags flags = BuildRequestDataFlags.None)
Parameters
solutionFullPath
stringfullProjectLocation
stringlogger
ILoggertargets
stringconfiguration
stringplatform
stringextraProperties
Dictionary<string, string>flags
BuildRequestDataFlags
Returns
GenerateRestoreGraphFile(ILogger, string)
public static Task<DependencyGraphSpec> GenerateRestoreGraphFile(ILogger logger, string projectPath)
Parameters
Returns
- Task<DependencyGraphSpec>
GetOrCompileProjectAssembly(string, string, ILogger, string, bool, string, string, Dictionary<string, string>, bool, BuildRequestDataFlags)
public static string GetOrCompileProjectAssembly(string solutionFullPath, string fullProjectLocation, ILogger logger, string targets, bool autoCompileProject, string configuration, string platform = "AnyCPU", Dictionary<string, string> extraProperties = null, bool onlyErrors = false, BuildRequestDataFlags flags = BuildRequestDataFlags.None)
Parameters
solutionFullPath
stringfullProjectLocation
stringlogger
ILoggertargets
stringautoCompileProject
boolconfiguration
stringplatform
stringextraProperties
Dictionary<string, string>onlyErrors
boolflags
BuildRequestDataFlags
Returns
GetPlatformTypeFromProject(Project)
public static PlatformType? GetPlatformTypeFromProject(Project project)
Parameters
project
Project
Returns
GetProjectGuid(Project)
public static Guid GetProjectGuid(Project project)
Parameters
project
Project
Returns
GetProjectTypeFromProject(Project)
public static ProjectType? GetProjectTypeFromProject(Project project)
Parameters
project
Project
Returns
LoadProject(string, string, string, Dictionary<string, string>)
public static Project LoadProject(string fullProjectLocation, string configuration = "Debug", string platform = "AnyCPU", Dictionary<string, string> extraProperties = null)
Parameters
fullProjectLocation
stringconfiguration
stringplatform
stringextraProperties
Dictionary<string, string>
Returns
Reset()
public static void Reset()
RestoreNugetPackages(ILogger, string)
public static Task RestoreNugetPackages(ILogger logger, string projectPath)