mirror of https://github.com/abpframework/abp.git
4 changed files with 76 additions and 1 deletions
@ -0,0 +1,30 @@ |
|||
using System; |
|||
using System.IO; |
|||
|
|||
namespace Volo.Abp.Studio.Package |
|||
{ |
|||
public class PackageDependency |
|||
{ |
|||
public ReferenceType Type { get; } |
|||
|
|||
public string Name { get; } |
|||
|
|||
public string Version { get; } |
|||
|
|||
public string Path { get; } |
|||
|
|||
public PackageDependency(string name, string version) |
|||
{ |
|||
Type = ReferenceType.Package; |
|||
Name = name; |
|||
Version = version; |
|||
} |
|||
|
|||
public PackageDependency(string path) |
|||
{ |
|||
Type = ReferenceType.Project; |
|||
Path = path; |
|||
Name = System.IO.Path.GetFileName(path).RemovePostFix(".csproj"); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
namespace Volo.Abp.Studio.Package |
|||
{ |
|||
public enum ReferenceType |
|||
{ |
|||
Project = 1, |
|||
Package = 2 |
|||
} |
|||
} |
|||
Loading…
Reference in new issue