mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
[.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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user