|
|
|
@ -80,6 +80,7 @@ namespace ICSharpCode.SharpDevelop.Project.Commands |
|
|
|
if (!FileUtility.IsEqualFileName(directoryName, copiedFileName)) { |
|
|
|
if (!FileUtility.IsEqualFileName(directoryName, copiedFileName)) { |
|
|
|
if (includeInProject && ProjectService.OpenSolution != null) { |
|
|
|
if (includeInProject && ProjectService.OpenSolution != null) { |
|
|
|
// get ProjectItems in source directory
|
|
|
|
// get ProjectItems in source directory
|
|
|
|
|
|
|
|
FileService.CopyFile(directoryName, copiedFileName, true, false); |
|
|
|
foreach (IProject project in ProjectService.OpenSolution.Projects) { |
|
|
|
foreach (IProject project in ProjectService.OpenSolution.Projects) { |
|
|
|
if (!FileUtility.IsBaseDirectory(project.Directory, directoryName)) |
|
|
|
if (!FileUtility.IsBaseDirectory(project.Directory, directoryName)) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
@ -111,7 +112,6 @@ namespace ICSharpCode.SharpDevelop.Project.Commands |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
FileService.CopyFile(directoryName, copiedFileName, true, false); |
|
|
|
|
|
|
|
DirectoryNode newNode = new DirectoryNode(copiedFileName); |
|
|
|
DirectoryNode newNode = new DirectoryNode(copiedFileName); |
|
|
|
newNode.InsertSorted(node); |
|
|
|
newNode.InsertSorted(node); |
|
|
|
if (includeInProject) { |
|
|
|
if (includeInProject) { |
|
|
|
|