VSProjectHelper Class
Namespace: Stride.Core.Assets
Assembly: Stride.Core.Assets.dll
System.Object →
VSProjectHelper
Derived from VSProjectHelper:
public static class VSProjectHelper
Name |
Description |
Methods
|
|
CompileProjectAssemblyAsync(String, String, ILogger, String, String, String, Dictionary<String, String>, BuildRequestDataFlags) |
|
|
GenerateRestoreGraphFile(ILogger, String) |
|
|
GetOrCompileProjectAssembly(String, String, ILogger, String, Boolean, String, String, Dictionary<String, String>, Boolean, BuildRequestDataFlags) |
|
|
GetPlatformTypeFromProject(Project) |
|
|
GetProjectGuid(Project) |
|
|
GetProjectTypeFromProject(Project) |
|
|
LoadProject(String, String, String, Dictionary<String, String>) |
|
|
Reset() |
|
|
RestoreNugetPackages(ILogger, String) |
|
|
Improve this Doc
View Source
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
Type |
Name |
Description |
System.String |
solutionFullPath |
|
System.String |
fullProjectLocation |
|
ILogger |
logger |
|
System.String |
targets |
|
System.String |
configuration |
|
System.String |
platform |
|
System.Collections.Generic.Dictionary<System.String, System.String> |
extraProperties |
|
Microsoft.Build.Execution.BuildRequestDataFlags |
flags |
|
Returns
GenerateRestoreGraphFile(ILogger, String)
public static async Task<DependencyGraphSpec> GenerateRestoreGraphFile(ILogger logger, string projectPath)
Parameters
Type |
Name |
Description |
ILogger |
logger |
|
System.String |
projectPath |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<NuGet.ProjectModel.DependencyGraphSpec> |
|
GetOrCompileProjectAssembly(String, String, ILogger, String, Boolean, String, String, Dictionary<String, String>, Boolean, 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
Type |
Name |
Description |
System.String |
solutionFullPath |
|
System.String |
fullProjectLocation |
|
ILogger |
logger |
|
System.String |
targets |
|
System.Boolean |
autoCompileProject |
|
System.String |
configuration |
|
System.String |
platform |
|
System.Collections.Generic.Dictionary<System.String, System.String> |
extraProperties |
|
System.Boolean |
onlyErrors |
|
Microsoft.Build.Execution.BuildRequestDataFlags |
flags |
|
Returns
Type |
Description |
System.String |
|
public static PlatformType? GetPlatformTypeFromProject(Project project)
Parameters
Type |
Name |
Description |
Microsoft.Build.Evaluation.Project |
project |
|
Returns
GetProjectGuid(Project)
public static Guid GetProjectGuid(Project project)
Parameters
Type |
Name |
Description |
Microsoft.Build.Evaluation.Project |
project |
|
Returns
Type |
Description |
System.Guid |
|
GetProjectTypeFromProject(Project)
public static ProjectType? GetProjectTypeFromProject(Project project)
Parameters
Type |
Name |
Description |
Microsoft.Build.Evaluation.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
Type |
Name |
Description |
System.String |
fullProjectLocation |
|
System.String |
configuration |
|
System.String |
platform |
|
System.Collections.Generic.Dictionary<System.String, System.String> |
extraProperties |
|
Returns
Type |
Description |
Microsoft.Build.Evaluation.Project |
|
Reset()
public static void Reset()
RestoreNugetPackages(ILogger, String)
public static async Task RestoreNugetPackages(ILogger logger, string projectPath)
Parameters
Type |
Name |
Description |
ILogger |
logger |
|
System.String |
projectPath |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|