Skip to content

Latest commit

 

History

History
211 lines (168 loc) · 5.7 KB

Atc.DotNet.md

File metadata and controls

211 lines (168 loc) · 5.7 KB

Atc.DotNet


AtcDotnetAssemblyTypeInitializer

public static class AtcDotnetAssemblyTypeInitializer

DotnetBuildHelper

public static class DotnetBuildHelper

Static Methods

BuildAndCollectErrors

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)

BuildAndCollectErrors

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)

DotnetCsProjFileHelper

public static class DotnetCsProjFileHelper

Static Methods

FindAllInPath

Collection<FileInfo> FindAllInPath(DirectoryInfo directoryInfo, SearchOption searchOption = AllDirectories)

FindAllInPathAndPredictProjectTypes

Collection<ValueTuple<FileInfo, DotnetProjectType>> FindAllInPathAndPredictProjectTypes(DirectoryInfo directoryInfo, SearchOption searchOption = AllDirectories)

GetProjectType

DotnetProjectType GetProjectType(FileInfo fileInfo)

GetProjectType

DotnetProjectType GetProjectType(string fileContent)

PredictProjectType

DotnetProjectType PredictProjectType(FileInfo fileInfo)

DotnetGlobalUsingsHelper

public static class DotnetGlobalUsingsHelper

Static Methods

CreateOrUpdate

void CreateOrUpdate(DirectoryInfo directoryInfo, IReadOnlyList<string> requiredNamespaces, bool setSystemFirst = True, bool addNamespaceSeparator = True)

GetNewContentByReadingExistingIfExistAndMergeWithRequired

string GetNewContentByReadingExistingIfExistAndMergeWithRequired(DirectoryInfo directoryInfo, IReadOnlyList<string> requiredNamespaces, bool setSystemFirst = True, bool addNamespaceSeparator = True)

DotnetHelper

public static class DotnetHelper

Static Methods

GetDotnetDirectory

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.

GetDotnetExecutable

FileInfo GetDotnetExecutable()

Summary: Get the dotnet executable file from the OS.

Remarks: This method is platform independent.

GetDotnetVersion

Task<Version> GetDotnetVersion()

Summary: Get the dotnet version.

Remarks: This method is platform independent.


DotnetNugetHelper

public static class DotnetNugetHelper

Static Methods

GetAllPackageReferences

List<DotnetNugetPackageMetadataBase> GetAllPackageReferences(FileInfo fileInfo)

Summary: Get all PackageReferences from file.

Parameters:
     fileInfo  -  The file.

GetAllPackageReferences

List<DotnetNugetPackageMetadataBase> GetAllPackageReferences(string fileContent)

Summary: Get all PackageReferences from file.

Parameters:
     fileInfo  -  The file.


DotnetProjectType

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

VisualStudioSolutionFileHelper

public static class VisualStudioSolutionFileHelper

Static Methods

FindAllInPath

Collection<FileInfo> FindAllInPath(DirectoryInfo directoryInfo, SearchOption searchOption = AllDirectories)

GetSolutionFileMetadata

VisualStudioSolutionFileMetadata GetSolutionFileMetadata(FileInfo fileInfo)

GetSolutionFileMetadata

VisualStudioSolutionFileMetadata GetSolutionFileMetadata(string fileContent)

Generated by MarkdownCodeDoc version 1.2