Skip to content

Commit 49cddc8

Browse files
Write to temp path - hopefully fixes #578
1 parent 2345ca1 commit 49cddc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeConverter/Shared/CompilationOptionsExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal static class CompilationOptionsExtensions
1111
{
1212
public static Document AddDocumentFromTree(this Project project, SyntaxTree tree)
1313
{
14-
return project.AddDocument("CodeToConvert", tree.GetRoot(), filePath: Path.Combine(Directory.GetCurrentDirectory(), "TempCodeToConvert.txt"));
14+
return project.AddDocument("CodeToConvert", tree.GetRoot(), filePath: Path.Combine(Path.GetTempPath(), "TempCodeToConvert.txt"));
1515
}
1616

1717
public static async Task<Project> CreateProjectAsync(this CompilationOptions options, IEnumerable<MetadataReference> references, ParseOptions parseOptions, string singleDocumentAssemblyName = "ProjectToBeConverted")

0 commit comments

Comments
 (0)