Browse Source

Fixed SD2-700: Exception when selecting AddIn Manager About option

Fixed SD2-687: Cannot build entire solution after importing SharpDevelop 1.1 project

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1175 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
493e792709
  1. 2
      src/AddIns/Misc/AddInManager/Project/Src/AboutForm.cs
  2. 6
      src/Main/Base/Project/Src/Project/Solution/Solution.cs

2
src/AddIns/Misc/AddInManager/Project/Src/AboutForm.cs

@ -121,6 +121,8 @@ namespace ICSharpCode.AddInManager
string GetLink(string text) string GetLink(string text)
{ {
if (text == null)
return null;
switch (text) { switch (text) {
case "GNU General Public License": case "GNU General Public License":
case "GPL": case "GPL":

6
src/Main/Base/Project/Src/Project/Solution/Solution.cs

@ -593,12 +593,18 @@ namespace ICSharpCode.SharpDevelop.Project
} }
newSolution.fileName = Path.ChangeExtension(fileName, ".sln"); newSolution.fileName = Path.ChangeExtension(fileName, ".sln");
ICSharpCode.SharpDevelop.Project.Converter.CombineToSolution.ConvertSolution(newSolution, fileName); ICSharpCode.SharpDevelop.Project.Converter.CombineToSolution.ConvertSolution(newSolution, fileName);
if (newSolution.FixSolutionConfiguration(newSolution.Projects)) {
newSolution.Save();
}
} else if (extension == ".PRJX") { } else if (extension == ".PRJX") {
if (!MessageService.AskQuestion("${res:SharpDevelop.Solution.ImportPrjx}")) { if (!MessageService.AskQuestion("${res:SharpDevelop.Solution.ImportPrjx}")) {
return null; return null;
} }
newSolution.fileName = Path.ChangeExtension(fileName, ".sln"); newSolution.fileName = Path.ChangeExtension(fileName, ".sln");
ICSharpCode.SharpDevelop.Project.Converter.CombineToSolution.ConvertProject(newSolution, fileName); ICSharpCode.SharpDevelop.Project.Converter.CombineToSolution.ConvertProject(newSolution, fileName);
if (newSolution.FixSolutionConfiguration(newSolution.Projects)) {
newSolution.Save();
}
} else { } else {
newSolution.fileName = fileName; newSolution.fileName = fileName;
if (!SetupSolution(newSolution, fileName)) { if (!SetupSolution(newSolution, fileName)) {

Loading…
Cancel
Save