mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 02:44:52 +08:00
Correcting NuGet installation paths and repository factory usage
--HG-- branch : nuget
This commit is contained in:
@@ -60,7 +60,7 @@ namespace Orchard.Packaging.Commands {
|
||||
Context.Output.WriteLine(T("The project's location is not supported"));
|
||||
}
|
||||
|
||||
var packageInfo = _packageManager.Install(packageId, Version, location, solutionFolder);
|
||||
var packageInfo = _packageManager.Install(packageId, Version, Path.GetFullPath(location), solutionFolder);
|
||||
|
||||
foreach(var message in _notifier.List()) {
|
||||
Context.Output.WriteLine(message.Message);
|
||||
|
@@ -47,8 +47,7 @@ namespace Orchard.Packaging.Services {
|
||||
var projectManager = new ProjectManager(
|
||||
new LocalPackageRepository(packagesPath), // source repository for the package to install
|
||||
new DefaultPackagePathResolver(location),
|
||||
new FileBasedProjectSystem(projectPath) { Logger = logger }, // the location of the project (where to copy the content files)
|
||||
new LocalPackageRepository(projectPath)
|
||||
new FileBasedProjectSystem(projectPath) { Logger = logger } // the location of the project (where to copy the content files)
|
||||
) {Logger = logger};
|
||||
|
||||
// add the package to the project
|
||||
|
Reference in New Issue
Block a user