Skip to content

Commit c53631f

Browse files
ewingjmscottdurow
authored andcommitted
Updated to retain context class and output code splitter files to correct folder (#313)
1 parent 31cf7f3 commit c53631f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

spkl/SparkleXrm.Tasks/Tasks/EarlyBoundClassGeneratorTask.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ public void CreateEarlyBoundTypes(OrganizationServiceContext ctx, ConfigFile con
152152
_trace.WriteLine("oneTypePerFile=true : Splitting types into separate files...");
153153
SplitCrmSvcUtilOutputFileIntoOneFilePerType(
154154
Path.Combine(_folder, earlyboundconfig.filename),
155-
_folder, earlyboundconfig.classNamespace);
155+
Path.Combine(_folder, Path.GetDirectoryName(earlyboundconfig.filename)),
156+
earlyboundconfig.classNamespace);
156157
}
157158
}
158159
}
@@ -168,9 +169,6 @@ private void SplitCrmSvcUtilOutputFileIntoOneFilePerType(string earlyboundconfig
168169

169170
var sourceCodeManipulator = new SourceCodeSplitter(_trace);
170171
sourceCodeManipulator.WriteToSeparateFiles(destinationDirectoryPath, sourceCode, typeNamespace);
171-
172-
// Remove the original single code file generated by crmsvcutil
173-
File.Delete(earlyboundconfigFilename);
174172
}
175173
}
176174
}

0 commit comments

Comments
 (0)