Skip to content

Commit 58b6d47

Browse files
committed
Fixed bug icsharpcode#674 Unhandled Exception when Moving Folder of Classes from Project A to Project B
1 parent 5ae2801 commit 58b6d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/Commands/FolderNodeCommands.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public static void CopyDirectory(string directoryName, DirectoryNode node, bool
8080
if (!FileUtility.IsEqualFileName(directoryName, copiedFileName)) {
8181
if (includeInProject && ProjectService.OpenSolution != null) {
8282
// get ProjectItems in source directory
83+
FileService.CopyFile(directoryName, copiedFileName, true, false);
8384
foreach (IProject project in ProjectService.OpenSolution.Projects) {
8485
if (!FileUtility.IsBaseDirectory(project.Directory, directoryName))
8586
continue;
@@ -111,7 +112,6 @@ public static void CopyDirectory(string directoryName, DirectoryNode node, bool
111112
}
112113
}
113114

114-
FileService.CopyFile(directoryName, copiedFileName, true, false);
115115
DirectoryNode newNode = new DirectoryNode(copiedFileName);
116116
newNode.InsertSorted(node);
117117
if (includeInProject) {

0 commit comments

Comments
 (0)