Class ProjectNugetPackageAdder
Inheritance
object
ProjectNugetPackageAdder
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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
| Type |
Name |
Description |
| string |
projectFile |
|
| NugetPackageInfo |
package |
|
| string |
version |
|
| bool |
useDotnetCliToInstall |
|
Returns
| Type |
Description |
| System.Threading.Tasks.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 |
| System.Threading.Tasks.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 |
| System.Threading.Tasks.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 |
| System.Threading.Tasks.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 |
| System.Threading.Tasks.Task |
|
AddUsingDotnetCli(NugetPackageInfo, string)
Declaration
protected virtual Task AddUsingDotnetCli(NugetPackageInfo package, string version = null)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.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 |
| System.Threading.Tasks.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 |
| System.Threading.Tasks.Task |
|
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
| Type |
Name |
Description |
| string |
projectFile |
|
| string |
solutionFile |
|
| NugetPackageInfo |
package |
|
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
| Type |
Description |
| System.Threading.Tasks.Task |
|
Implements
Extension Methods