Class ProjectNugetPackageAdder
Inheritance
ProjectNugetPackageAdder
Assembly: Volo.Abp.Cli.Core.dll
Syntax
public class ProjectNugetPackageAdder : ITransientDependency
Constructors
ProjectNugetPackageAdder(IJsonSerializer, ProjectNpmPackageAdder, DerivedClassFinder, ModuleClassDependcyAdder, IRemoteServiceExceptionHandler, BundleCommand, CliHttpClientFactory, SourceCodeDownloadService, SolutionFileModifier, ICmdHelper)
Declaration
public ProjectNugetPackageAdder(IJsonSerializer jsonSerializer, ProjectNpmPackageAdder npmPackageAdder, DerivedClassFinder moduleClassFinder, ModuleClassDependcyAdder moduleClassDependcyAdder, IRemoteServiceExceptionHandler remoteServiceExceptionHandler, BundleCommand bundleCommand, CliHttpClientFactory cliHttpClientFactory, SourceCodeDownloadService sourceCodeDownloadService, SolutionFileModifier solutionFileModifier, ICmdHelper cmdHelper)
Parameters
Properties
BundleCommand
Declaration
public BundleCommand BundleCommand { get; }
Property Value
CmdHelper
Declaration
public ICmdHelper CmdHelper { get; }
Property Value
JsonSerializer
Declaration
protected IJsonSerializer JsonSerializer { get; }
Property Value
Logger
Declaration
public ILogger<ProjectNugetPackageAdder> Logger { get; set; }
Property Value
ModuleClassDependcyAdder
Declaration
protected ModuleClassDependcyAdder ModuleClassDependcyAdder { get; }
Property Value
ModuleClassFinder
Declaration
protected DerivedClassFinder ModuleClassFinder { get; }
Property Value
NpmPackageAdder
Declaration
protected ProjectNpmPackageAdder NpmPackageAdder { get; }
Property Value
RemoteServiceExceptionHandler
Declaration
protected IRemoteServiceExceptionHandler RemoteServiceExceptionHandler { get; }
Property Value
SolutionFileModifier
Declaration
public SolutionFileModifier SolutionFileModifier { get; }
Property Value
SourceCodeDownloadService
Declaration
public SourceCodeDownloadService SourceCodeDownloadService { get; }
Property Value
Methods
AddAsPackageReference(string, NugetPackageInfo, string, bool)
Declaration
protected virtual Task AddAsPackageReference(string projectFile, NugetPackageInfo package, string version, bool useDotnetCliToInstall)
Parameters
Returns
AddAsync(string, string, string, string, bool, bool, bool)
Declaration
public Task AddAsync(string solutionFile, string projectFile, string packageName, string version = null, bool useDotnetCliToInstall = true, bool withSourceCode = false, bool addSourceCodeToSolutionFile = false)
Parameters
Returns
AddAsync(string, string, NugetPackageInfo, string, bool, bool, bool)
Declaration
public Task AddAsync(string solutionFile, string projectFile, NugetPackageInfo package, string version = null, bool useDotnetCliToInstall = true, bool withSourceCode = false, bool addSourceCodeToSolutionFile = false)
Parameters
Returns
AddSourceCode(string, string, NugetPackageInfo, string)
Declaration
protected virtual Task AddSourceCode(string projectFile, string solutionFile, NugetPackageInfo package, string version = null)
Parameters
Returns
AddToCsprojManuallyAsync(string, NugetPackageInfo, string)
Declaration
protected virtual Task AddToCsprojManuallyAsync(string projectFile, NugetPackageInfo package, string version = null)
Parameters
Returns
AddUsingDotnetCli(NugetPackageInfo, string)
Declaration
protected virtual Task AddUsingDotnetCli(NugetPackageInfo package, string version = null)
Parameters
Returns
ConvertPackageReferenceToProjectReference(string, string, NugetPackageInfo)
Declaration
protected virtual Task ConvertPackageReferenceToProjectReference(string projectFile, string solutionFile, NugetPackageInfo package)
Parameters
Returns
DownloadSourceCode(string, NugetPackageInfo, string)
Declaration
protected virtual Task DownloadSourceCode(string targetFolder, NugetPackageInfo package, string version = null)
Parameters
Returns
FindFolderToDownloadPackage(string, NugetPackageInfo)
Declaration
protected virtual string FindFolderToDownloadPackage(string solutionFile, NugetPackageInfo package)
Parameters
Returns
FindNugetPackageInfoAsync(string)
Declaration
protected virtual Task<NugetPackageInfo> FindNugetPackageInfoAsync(string packageName)
Parameters
Type |
Name |
Description |
string |
packageName |
|
Returns
FindRelativeFolderToDownloadPackage(string, string, NugetPackageInfo)
Declaration
protected virtual string FindRelativeFolderToDownloadPackage(string projectFile, string solutionFile, NugetPackageInfo package)
Parameters
Returns
FindSolutionFile(string)
Declaration
protected virtual string FindSolutionFile(string projectFile)
Parameters
Type |
Name |
Description |
string |
projectFile |
|
Returns
FindSolutionFolder(string)
Declaration
protected virtual string FindSolutionFolder(string projectFile)
Parameters
Type |
Name |
Description |
string |
projectFile |
|
Returns
GetAbpVersionOrNull(string)
Declaration
protected virtual string GetAbpVersionOrNull(string projectFile)
Parameters
Type |
Name |
Description |
string |
projectFile |
|
Returns
IsSolutionTiered(string[])
Declaration
protected virtual bool IsSolutionTiered(string[] projectFiles)
Parameters
Type |
Name |
Description |
string[] |
projectFiles |
|
Returns
RunBundleForBlazorAsync(string)
Declaration
protected virtual Task RunBundleForBlazorAsync(string projectFile)
Parameters
Type |
Name |
Description |
string |
projectFile |
|
Returns
Implements
Extension Methods