mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
fix sample http request script on latest runtime
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com> Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/9bf31c0e-e47b-4654-be10-6ea50f27a581
This commit is contained in:
parent
a2ff094369
commit
802cc696d6
2 changed files with 9 additions and 18 deletions
|
|
@ -132,6 +132,8 @@ namespace MinecraftClient.Scripting.DynamicRun.Builder
|
|||
// Facade assemblies needed for compiling scripts that reference netstandard libraries (e.g. Brigadier.NET)
|
||||
assemblyrefs.Add(new("netstandard"));
|
||||
assemblyrefs.Add(new("System.Runtime"));
|
||||
assemblyrefs.Add(new("System.Private.Uri"));
|
||||
assemblyrefs.Add(new("System.Net.Requests"));
|
||||
|
||||
foreach (var refs in assemblyrefs) {
|
||||
Assembly? loadedAssembly;
|
||||
|
|
@ -180,7 +182,7 @@ namespace MinecraftClient.Scripting.DynamicRun.Builder
|
|||
// Add facade assemblies needed for Roslyn compilation when referencing
|
||||
// libraries that target netstandard (e.g. Brigadier.NET).
|
||||
var runtimeDir = Path.GetDirectoryName(SystemPrivateCoreLib)!;
|
||||
foreach (var facadeName in new[] { "netstandard.dll", "System.Runtime.dll" })
|
||||
foreach (var facadeName in new[] { "netstandard.dll", "System.Runtime.dll", "System.Private.Uri.dll", "System.Net.Requests.dll" })
|
||||
{
|
||||
var facadePath = Path.Combine(runtimeDir, facadeName);
|
||||
if (File.Exists(facadePath))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue