Browse Source

Update to NuGet 1.3

pull/15/head
mrward 15 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
{ {
OnPackageReferenceAdded(package); 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
{ {
throw new NotImplementedException(); 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
assemblyReference.Include = name; assemblyReference.Include = name;
return assemblyReference; 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
This product includes software developed at This product includes software developed at
The Outercurve Foundation (http://www.outercurve.org/). 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) ProvideBindingPathAttribute (Visual Studio SDK)
----- -----
Website: http://msdn.microsoft.com/en-us/library/bb166441(VS.80).aspx Website: http://msdn.microsoft.com/en-us/library/bb166441(VS.80).aspx
Copyright: Copyright (c) 2010 Microsoft Copyright: Copyright (c) 2010 Microsoft
License: Apache 2.0 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
IgnoreDependenciesPassedToAddPackageReference = ignoreDependencies; IgnoreDependenciesPassedToAddPackageReference = ignoreDependencies;
} }
protected override void AddPackageReference(IPackage package, bool ignoreDependencies) public override void AddPackageReference(IPackage package, bool ignoreDependencies)
{ {
PackagePassedToAddPackageReference = package; PackagePassedToAddPackageReference = package;
IgnoreDependenciesPassedToAddPackageReference = ignoreDependencies; IgnoreDependenciesPassedToAddPackageReference = ignoreDependencies;
} }
protected override void RemovePackageReference(IPackage package, bool force, bool removeDependencies) public override void RemovePackageReference(IPackage package, bool force, bool removeDependencies)
{ {
PackagePassedToRemovePackageReference = package; PackagePassedToRemovePackageReference = package;
ForcePassedToRemovePackageReference = force; ForcePassedToRemovePackageReference = force;

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

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

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

@ -669,5 +669,18 @@ namespace PackageManagement.Tests
Assert.AreEqual(expectedReferenceAndProjectName, projectSystem.ReferenceAndProjectNamePassedToLogAddedReferenceToProject); 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