[.Net] update dotnet-ci and dotnet-release to use 8.0.x version when setting up .NET. And enable format check (#3136)

* use 8.0.x versin

* enable format check

* change file header

* apply code format

* add instructions in ci to fix format error

* add comment back
This commit is contained in:
Xiaoyun Zhang
2024-07-15 12:33:10 -07:00
committed by GitHub
parent 7205ccc3b9
commit 970c1961dd
42 changed files with 80 additions and 50 deletions

View File

@@ -17,14 +17,18 @@ public partial class Example04_Dynamic_GroupChat_Coding_Task
// setup dotnet interactive
var workDir = Path.Combine(Path.GetTempPath(), "InteractiveService");
if (!Directory.Exists(workDir))
{
Directory.CreateDirectory(workDir);
}
using var service = new InteractiveService(workDir);
var dotnetInteractiveFunctions = new DotnetInteractiveFunction(service);
var result = Path.Combine(workDir, "result.txt");
if (File.Exists(result))
{
File.Delete(result);
}
await service.StartAsync(workDir, default);