Browse Source

Fix error when installing MVVMLight NuGet package.

Append backslash to project directory name when returning
the full path from EnvDTE.Project.Properties.
pull/79/head
Matt Ward 12 years ago
parent
commit
69bd540863
  1. 2
      src/AddIns/Misc/PackageManagement/Project/Src/EnvDTE/ProjectProperty.cs
  2. 8
      src/AddIns/Misc/PackageManagement/Test/Src/EnvDTE/ProjectPropertyTests.cs

2
src/AddIns/Misc/PackageManagement/Project/Src/EnvDTE/ProjectProperty.cs

@ -83,7 +83,7 @@ namespace ICSharpCode.PackageManagement.EnvDTE @@ -83,7 +83,7 @@ namespace ICSharpCode.PackageManagement.EnvDTE
string GetFullPath()
{
return MSBuildProject.Directory;
return MSBuildProject.Directory + Path.DirectorySeparatorChar.ToString();
}
string GetOutputFileName()

8
src/AddIns/Misc/PackageManagement/Test/Src/EnvDTE/ProjectPropertyTests.cs

@ -150,7 +150,7 @@ namespace PackageManagement.Tests.EnvDTE @@ -150,7 +150,7 @@ namespace PackageManagement.Tests.EnvDTE
global::EnvDTE.Property fullPathProperty = project.Properties.Item("FullPath");
string fullPath = fullPathProperty.Value as string;
string expectedFullPath = @"d:\projects\MyProject";
string expectedFullPath = @"d:\projects\MyProject\";
Assert.AreEqual(expectedFullPath, fullPath);
}
@ -163,7 +163,7 @@ namespace PackageManagement.Tests.EnvDTE @@ -163,7 +163,7 @@ namespace PackageManagement.Tests.EnvDTE
global::EnvDTE.Property fullPathProperty = project.Properties.Item("FULLPATH");
string fullPath = fullPathProperty.Value as string;
string expectedFullPath = @"d:\projects\MyProject";
string expectedFullPath = @"d:\projects\MyProject\";
Assert.AreEqual(expectedFullPath, fullPath);
}
@ -257,7 +257,7 @@ namespace PackageManagement.Tests.EnvDTE @@ -257,7 +257,7 @@ namespace PackageManagement.Tests.EnvDTE
global::EnvDTE.Property localPathProperty = project.Properties.Item("LocalPath");
string localPath = localPathProperty.Value as string;
string expectedLocalPath = @"d:\projects\MyProject";
string expectedLocalPath = @"d:\projects\MyProject\";
Assert.AreEqual(expectedLocalPath, localPath);
}
@ -281,7 +281,7 @@ namespace PackageManagement.Tests.EnvDTE @@ -281,7 +281,7 @@ namespace PackageManagement.Tests.EnvDTE
global::EnvDTE.Property fullPathProperty = project.Properties.Item("LOCALPATH");
string fullPath = fullPathProperty.Value as string;
string expectedFullPath = @"d:\projects\MyProject";
string expectedFullPath = @"d:\projects\MyProject\";
Assert.AreEqual(expectedFullPath, fullPath);
}
}

Loading…
Cancel
Save