Show / Hide Table of Contents

Class ProjectNugetPackageAdder

Inheritance
object
ProjectNugetPackageAdder
Implements
ITransientDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Cli.ProjectModification
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
Type Name Description
IJsonSerializer jsonSerializer
ProjectNpmPackageAdder npmPackageAdder
DerivedClassFinder moduleClassFinder
ModuleClassDependcyAdder moduleClassDependcyAdder
IRemoteServiceExceptionHandler remoteServiceExceptionHandler
BundleCommand bundleCommand
CliHttpClientFactory cliHttpClientFactory
SourceCodeDownloadService sourceCodeDownloadService
SolutionFileModifier solutionFileModifier
ICmdHelper cmdHelper

Properties

BundleCommand

Declaration
public BundleCommand BundleCommand { get; }
Property Value
Type Description
BundleCommand

CmdHelper

Declaration
public ICmdHelper CmdHelper { get; }
Property Value
Type Description
ICmdHelper

JsonSerializer

Declaration
protected IJsonSerializer JsonSerializer { get; }
Property Value
Type Description
IJsonSerializer

Logger

Declaration
public ILogger<ProjectNugetPackageAdder> Logger { get; set; }
Property Value
Type Description
ILogger<ProjectNugetPackageAdder>

ModuleClassDependcyAdder

Declaration
protected ModuleClassDependcyAdder ModuleClassDependcyAdder { get; }
Property Value
Type Description
ModuleClassDependcyAdder

ModuleClassFinder

Declaration
protected DerivedClassFinder ModuleClassFinder { get; }
Property Value
Type Description
DerivedClassFinder

NpmPackageAdder

Declaration
protected ProjectNpmPackageAdder NpmPackageAdder { get; }
Property Value
Type Description
ProjectNpmPackageAdder

RemoteServiceExceptionHandler

Declaration
protected IRemoteServiceExceptionHandler RemoteServiceExceptionHandler { get; }
Property Value
Type Description
IRemoteServiceExceptionHandler

SolutionFileModifier

Declaration
public SolutionFileModifier SolutionFileModifier { get; }
Property Value
Type Description
SolutionFileModifier

SourceCodeDownloadService

Declaration
public SourceCodeDownloadService SourceCodeDownloadService { get; }
Property Value
Type Description
SourceCodeDownloadService

Methods

AddAsPackageReference(string, NugetPackageInfo, string, bool)

Declaration
protected virtual Task AddAsPackageReference(string projectFile, NugetPackageInfo package, string version, bool useDotnetCliToInstall)
Parameters
Type Name Description
string projectFile
NugetPackageInfo package
string version
bool useDotnetCliToInstall
Returns
Type Description
Task

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
Type Name Description
string solutionFile
string projectFile
string packageName
string version
bool useDotnetCliToInstall
bool withSourceCode
bool addSourceCodeToSolutionFile
Returns
Type Description
Task

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
Type Name Description
string solutionFile
string projectFile
NugetPackageInfo package
string version
bool useDotnetCliToInstall
bool withSourceCode
bool addSourceCodeToSolutionFile
Returns
Type Description
Task

AddSourceCode(string, string, NugetPackageInfo, string)

Declaration
protected virtual Task AddSourceCode(string projectFile, string solutionFile, NugetPackageInfo package, string version = null)
Parameters
Type Name Description
string projectFile
string solutionFile
NugetPackageInfo package
string version
Returns
Type Description
Task

AddToCsprojManuallyAsync(string, NugetPackageInfo, string)

Declaration
protected virtual Task AddToCsprojManuallyAsync(string projectFile, NugetPackageInfo package, string version = null)
Parameters
Type Name Description
string projectFile
NugetPackageInfo package
string version
Returns
Type Description
Task

AddUsingDotnetCli(NugetPackageInfo, string)

Declaration
protected virtual Task AddUsingDotnetCli(NugetPackageInfo package, string version = null)
Parameters
Type Name Description
NugetPackageInfo package
string version
Returns
Type Description
Task

ConvertPackageReferenceToProjectReference(string, string, NugetPackageInfo)

Declaration
protected virtual Task ConvertPackageReferenceToProjectReference(string projectFile, string solutionFile, NugetPackageInfo package)
Parameters
Type Name Description
string projectFile
string solutionFile
NugetPackageInfo package
Returns
Type Description
Task

DownloadSourceCode(string, NugetPackageInfo, string)

Declaration
protected virtual Task DownloadSourceCode(string targetFolder, NugetPackageInfo package, string version = null)
Parameters
Type Name Description
string targetFolder
NugetPackageInfo package
string version
Returns
Type Description
Task

FindFolderToDownloadPackage(string, NugetPackageInfo)

Declaration
protected virtual string FindFolderToDownloadPackage(string solutionFile, NugetPackageInfo package)
Parameters
Type Name Description
string solutionFile
NugetPackageInfo package
Returns
Type Description
string

FindNugetPackageInfoAsync(string)

Declaration
protected virtual Task<NugetPackageInfo> FindNugetPackageInfoAsync(string packageName)
Parameters
Type Name Description
string packageName
Returns
Type Description
Task<NugetPackageInfo>

FindRelativeFolderToDownloadPackage(string, string, NugetPackageInfo)

Declaration
protected virtual string FindRelativeFolderToDownloadPackage(string projectFile, string solutionFile, NugetPackageInfo package)
Parameters
Type Name Description
string projectFile
string solutionFile
NugetPackageInfo package
Returns
Type Description
string

FindSolutionFile(string)

Declaration
protected virtual string FindSolutionFile(string projectFile)
Parameters
Type Name Description
string projectFile
Returns
Type Description
string

FindSolutionFolder(string)

Declaration
protected virtual string FindSolutionFolder(string projectFile)
Parameters
Type Name Description
string projectFile
Returns
Type Description
string

GetAbpVersionOrNull(string)

Declaration
protected virtual string GetAbpVersionOrNull(string projectFile)
Parameters
Type Name Description
string projectFile
Returns
Type Description
string

IsSolutionTiered(string[])

Declaration
protected virtual bool IsSolutionTiered(string[] projectFiles)
Parameters
Type Name Description
string[] projectFiles
Returns
Type Description
bool

RunBundleForBlazorAsync(string)

Declaration
protected virtual Task RunBundleForBlazorAsync(string projectFile)
Parameters
Type Name Description
string projectFile
Returns
Type Description
Task

Implements

ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform