public static class AtcDotnetAssemblyTypeInitializer
public static class DotnetBuildHelper
Task<Dictionary<string, int>> BuildAndCollectErrors(DirectoryInfo rootPath, int? runNumber = null, FileInfo buildFile = null, bool useNugetRestore = True, bool useConfigurationReleaseMode = True, int timeoutInSec = 1200, string logPrefix = , CancellationToken cancellationToken = null)
Task<Dictionary<string, int>> BuildAndCollectErrors(ILogger logger, DirectoryInfo rootPath, int? runNumber = null, FileInfo buildFile = null, bool useNugetRestore = True, bool useConfigurationReleaseMode = True, int timeoutInSec = 1200, string logPrefix = , CancellationToken cancellationToken = null)
public static class DotnetCsProjFileHelper
Collection<FileInfo> FindAllInPath(DirectoryInfo directoryInfo, SearchOption searchOption = AllDirectories)
Collection<ValueTuple<FileInfo, DotnetProjectType>> FindAllInPathAndPredictProjectTypes(DirectoryInfo directoryInfo, SearchOption searchOption = AllDirectories)
DotnetProjectType GetProjectType(FileInfo fileInfo)
DotnetProjectType GetProjectType(string fileContent)
DotnetProjectType PredictProjectType(FileInfo fileInfo)
public static class DotnetGlobalUsingsHelper
void CreateOrUpdate(DirectoryInfo directoryInfo, IReadOnlyList<string> requiredNamespaces, bool setSystemFirst = True, bool addNamespaceSeparator = True)
string GetNewContentByReadingExistingIfExistAndMergeWithRequired(DirectoryInfo directoryInfo, IReadOnlyList<string> requiredNamespaces, bool setSystemFirst = True, bool addNamespaceSeparator = True)
public static class DotnetHelper
DirectoryInfo GetDotnetDirectory()Summary: Get the directory of the .NET runtime.
Remarks: This method is platform independent.
The default location on Windows is C:\Program Files\dotnet.
The default location on Linux and macOS is /usr/share/dotnet.
On Linux it varies from distribution to distribution and method of installation.
FileInfo GetDotnetExecutable()Summary: Get the dotnet executable file from the OS.
Remarks: This method is platform independent.
Task<Version> GetDotnetVersion()Summary: Get the dotnet version.
Remarks: This method is platform independent.
public static class DotnetNugetHelper
List<DotnetNugetPackageMetadataBase> GetAllPackageReferences(FileInfo fileInfo)Summary: Get all PackageReferences from file.
Parameters:
fileInfo
- The file.
List<DotnetNugetPackageMetadataBase> GetAllPackageReferences(string fileContent)Summary: Get all PackageReferences from file.
Parameters:
fileInfo
- The file.
public enum DotnetProjectType
Value | Name | Description | Summary |
---|---|---|---|
0 | None | None | |
1 | AzureFunctionApp | Azure Function App | |
2 | AndroidApp | Android App | |
4 | ConsoleApp | Console App | |
8 | CliApp | Cli App | |
16 | BlazorServerApp | Blazor Server App | |
32 | BlazorWAsmApp | Blazor WAsm App | |
64 | MauiApp | Maui App | |
128 | IosApp | Ios App | |
256 | UwpApp | Uwp App | |
512 | WebApp | Web App | |
1024 | WpfApp | Wpf App | |
2048 | WinFormApp | Win Form App | |
4095 | Apps | Apps | |
4096 | Library | Library | |
8192 | RazorLibrary | Razor Library | |
16384 | UwpLibrary | Uwp Library | |
32768 | WpfLibrary | Wpf Library | |
61440 | Libraries | Libraries | |
65536 | AzureIotEdgeModule | Modules | |
65536 | Modules | Modules | |
131072 | VisualStudioExtension | Visual Studio Extension | |
262144 | WebApi | Web Api | |
524288 | WorkerService | Worker Service | |
786432 | Services | Services | |
1048576 | BUnitTest | BUnit Test | |
2097152 | MsTest | Ms Test | |
4194304 | NUnitTest | NUnit Test | |
8388608 | XUnitTest | XUnit Test | |
15728640 | Tests | Tests |
public static class VisualStudioSolutionFileHelper
Collection<FileInfo> FindAllInPath(DirectoryInfo directoryInfo, SearchOption searchOption = AllDirectories)
VisualStudioSolutionFileMetadata GetSolutionFileMetadata(FileInfo fileInfo)
VisualStudioSolutionFileMetadata GetSolutionFileMetadata(string fileContent)
Generated by MarkdownCodeDoc version 1.2