# csharp_script **Repository Path**: chenxqiyu/csharp_script ## Basic Information - **Project Name**: csharp_script - **Description**: c#脚本dotnet-script - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-05 - **Last Updated**: 2025-11-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README dotnet-script | https://cloud.tencent.com/developer/article/2481515 dotnet tool install -g dotnet-script 创建 .csx 文件 深入解析dotnet-script项目中的CSX脚本执行机制 引用 #r "nuget: Newtonsoft.Json, 13.0.3" #r "libs/Newtonsoft.Json.dll" 交互引用 | https://zhuanlan.zhihu.com/p/645258959 #r "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\ServiceHub\\Hosts\\ServiceHub.Host.Dotnet.x64\\Newtonsoft.Json.dll" | using Newtonsoft.Json; | // 测试 | var obj = new { Name = "ChatGPT", Version = 5 }; | string json = JsonConvert.SerializeObject(obj, Newtonsoft.Json.Formatting.Indented); | Console.WriteLine(json); |