We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2345ca1 commit 49cddc8Copy full SHA for 49cddc8
1 file changed
CodeConverter/Shared/CompilationOptionsExtensions.cs
@@ -11,7 +11,7 @@ internal static class CompilationOptionsExtensions
11
{
12
public static Document AddDocumentFromTree(this Project project, SyntaxTree tree)
13
14
- return project.AddDocument("CodeToConvert", tree.GetRoot(), filePath: Path.Combine(Directory.GetCurrentDirectory(), "TempCodeToConvert.txt"));
+ return project.AddDocument("CodeToConvert", tree.GetRoot(), filePath: Path.Combine(Path.GetTempPath(), "TempCodeToConvert.txt"));
15
}
16
17
public static async Task<Project> CreateProjectAsync(this CompilationOptions options, IEnumerable<MetadataReference> references, ParseOptions parseOptions, string singleDocumentAssemblyName = "ProjectToBeConverted")
0 commit comments