Correcting NuGet installation paths and repository factory usage

--HG--
branch : nuget
This commit is contained in:
Sebastien Ros
2010-11-10 16:29:20 -08:00
parent 025144daa6
commit 6f6ad4971f
2 changed files with 2 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ namespace Orchard.Packaging.Commands {
Context.Output.WriteLine(T("The project's location is not supported")); 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()) { foreach(var message in _notifier.List()) {
Context.Output.WriteLine(message.Message); Context.Output.WriteLine(message.Message);

View File

@@ -47,8 +47,7 @@ namespace Orchard.Packaging.Services {
var projectManager = new ProjectManager( var projectManager = new ProjectManager(
new LocalPackageRepository(packagesPath), // source repository for the package to install new LocalPackageRepository(packagesPath), // source repository for the package to install
new DefaultPackagePathResolver(location), new DefaultPackagePathResolver(location),
new FileBasedProjectSystem(projectPath) { Logger = logger }, // the location of the project (where to copy the content files) new FileBasedProjectSystem(projectPath) { Logger = logger } // the location of the project (where to copy the content files)
new LocalPackageRepository(projectPath)
) {Logger = logger}; ) {Logger = logger};
// add the package to the project // add the package to the project