Browse Source

Update to NuGet 1.3

pull/15/head
mrward 14 years ago
parent
commit
a93d7f4667
  1. 10
      src/AddIns/Misc/PackageManagement/Project/Src/Design/FakeProjectManager.cs
  2. 5
      src/AddIns/Misc/PackageManagement/Project/Src/Design/FakeProjectSystem.cs
  3. 5
      src/AddIns/Misc/PackageManagement/Project/Src/SharpDevelopProjectSystem.cs
  4. 20
      src/AddIns/Misc/PackageManagement/RequiredLibraries/CREDITS.txt
  5. BIN
      src/AddIns/Misc/PackageManagement/RequiredLibraries/NuGet.Core.dll
  6. 4
      src/AddIns/Misc/PackageManagement/Test/Src/Helpers/TestableProjectManager.cs
  7. 9
      src/AddIns/Misc/PackageManagement/Test/Src/Helpers/Tests/PackageReferenceRepositoryTests.cs
  8. 13
      src/AddIns/Misc/PackageManagement/Test/Src/SharpDevelopProjectSystemTests.cs

10
src/AddIns/Misc/PackageManagement/Project/Src/Design/FakeProjectManager.cs

@ -77,5 +77,15 @@ namespace ICSharpCode.PackageManagement.Design @@ -77,5 +77,15 @@ namespace ICSharpCode.PackageManagement.Design
{
OnPackageReferenceAdded(package);
}
public void AddPackageReference(IPackage package, bool ignoreDependencies)
{
throw new NotImplementedException();
}
public void RemovePackageReference(IPackage package, bool forceRemove, bool removeDependencies)
{
throw new NotImplementedException();
}
}
}

5
src/AddIns/Misc/PackageManagement/Project/Src/Design/FakeProjectSystem.cs

@ -49,5 +49,10 @@ namespace ICSharpCode.PackageManagement.Design @@ -49,5 +49,10 @@ namespace ICSharpCode.PackageManagement.Design
{
throw new NotImplementedException();
}
public string ResolvePath(string path)
{
throw new NotImplementedException();
}
}
}

5
src/AddIns/Misc/PackageManagement/Project/Src/SharpDevelopProjectSystem.cs

@ -258,5 +258,10 @@ namespace ICSharpCode.PackageManagement @@ -258,5 +258,10 @@ namespace ICSharpCode.PackageManagement
assemblyReference.Include = name;
return assemblyReference;
}
public string ResolvePath(string path)
{
return path;
}
}
}

20
src/AddIns/Misc/PackageManagement/RequiredLibraries/CREDITS.txt

@ -5,10 +5,28 @@ Copyright 2010 Outercurve Foundation @@ -5,10 +5,28 @@ Copyright 2010 Outercurve Foundation
This product includes software developed at
The Outercurve Foundation (http://www.outercurve.org/).
NuGet includes or is derivative of works distributed under the licenses listed below. The full text for most of the licenses listed below can be found in the LICENSE.txt file accompanying each work. The original copyright notices have been preserved within the respective files and or packages. Please refer to the specific files and/or packages for more detailed information about the authors, copyright notices, and licenses.
NuGet includes works distributed under the licenses listed below. The full text for most of the licenses listed below can be found in the LICENSE.txt file accompanying each work. The original copyright notices have been preserved within the respective files and or packages. Please refer to the specific files and/or packages for more detailed information about the authors, copyright notices, and licenses.
ProvideBindingPathAttribute (Visual Studio SDK)
-----
Website: http://msdn.microsoft.com/en-us/library/bb166441(VS.80).aspx
Copyright: Copyright (c) 2010 Microsoft
License: Apache 2.0
Elmah 1.1
-----
Website: http://code.google.com/p/elmah/
Copyright: Copyright (c) 2010 Atif Azis
License: Apache 2.0
Moq 3.1.4
-----
Website: http://code.google.com/p/moq/
Copyright: Copyright (c) 2010 Clarius Consulting, Manas Technology Solutions, InSTEDD
License: BSD
Ninject 2.1
-----
Website: http://ninject.org/
Copyright: Copyright (c) 2010 Nate Kohari
License: Apache 2.0

BIN
src/AddIns/Misc/PackageManagement/RequiredLibraries/NuGet.Core.dll

Binary file not shown.

4
src/AddIns/Misc/PackageManagement/Test/Src/Helpers/TestableProjectManager.cs

@ -41,13 +41,13 @@ namespace PackageManagement.Tests.Helpers @@ -41,13 +41,13 @@ namespace PackageManagement.Tests.Helpers
IgnoreDependenciesPassedToAddPackageReference = ignoreDependencies;
}
protected override void AddPackageReference(IPackage package, bool ignoreDependencies)
public override void AddPackageReference(IPackage package, bool ignoreDependencies)
{
PackagePassedToAddPackageReference = package;
IgnoreDependenciesPassedToAddPackageReference = ignoreDependencies;
}
protected override void RemovePackageReference(IPackage package, bool force, bool removeDependencies)
public override void RemovePackageReference(IPackage package, bool force, bool removeDependencies)
{
PackagePassedToRemovePackageReference = package;
ForcePassedToRemovePackageReference = force;

9
src/AddIns/Misc/PackageManagement/Test/Src/Helpers/Tests/PackageReferenceRepositoryTests.cs

@ -18,21 +18,20 @@ namespace PackageManagement.Tests.Helpers.Tests @@ -18,21 +18,20 @@ namespace PackageManagement.Tests.Helpers.Tests
FakeFileSystem fakeFileSystem;
PackageReferenceRepositoryHelper helper;
void CreatePackageReferenceRepository()
void CreatePackageReferenceRepository(string path)
{
helper = new PackageReferenceRepositoryHelper();
fakeFileSystem = helper.FakeProjectSystem;
fakeFileSystem.PathToReturnFromGetFullPath = path;
sourceRepository = helper.FakeSharedSourceRepository;
repository = new PackageReferenceRepository(fakeFileSystem, sourceRepository);
}
[Test]
public void RegisteredIfRequired_PackageIdInConfigFileAndInSourceRepository_MethodCallWithPathToConfigFile()
public void RegisteredIfRequired_PackageIdInConfigFileAndInSourceRepository_MethodCalledWithPathToConfigFile()
{
CreatePackageReferenceRepository();
string expectedPath = @"d:\temp";
fakeFileSystem.PathToReturnFromGetFullPath = expectedPath;
CreatePackageReferenceRepository(expectedPath);
repository.RegisterIfNecessary();

13
src/AddIns/Misc/PackageManagement/Test/Src/SharpDevelopProjectSystemTests.cs

@ -669,5 +669,18 @@ namespace PackageManagement.Tests @@ -669,5 +669,18 @@ namespace PackageManagement.Tests
Assert.AreEqual(expectedReferenceAndProjectName, projectSystem.ReferenceAndProjectNamePassedToLogAddedReferenceToProject);
}
[Test]
public void ResolvePath_PathPassed_ReturnsPathUnchanged()
{
CreateTestProject();
CreateProjectSystem(project);
string expectedPath = @"d:\temp";
string path = projectSystem.ResolvePath(expectedPath);
Assert.AreEqual(expectedPath, path);
}
}
}

Loading…
Cancel
Save