Initial commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
namespace RobotNet10.RobotApp.Script.Shared;
|
||||
|
||||
public interface IRobotAppScriptGlobals
|
||||
{
|
||||
IRobot Robot { get; }
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System.Collections.Immutable;
|
||||
|
||||
namespace RobotNet10.RobotApp.Script.Shared;
|
||||
|
||||
public class RobotAppScriptEngineResource
|
||||
{
|
||||
public static readonly Type GlobalType = typeof(IRobotAppScriptGlobals);
|
||||
|
||||
public static readonly ImmutableArray<string> UsingNamespaces = [
|
||||
"System",
|
||||
"System.Collections.Generic",
|
||||
"System.Threading",
|
||||
"System.Threading.Tasks",
|
||||
"System.Runtime.CompilerServices",
|
||||
"RobotNet10.RobotApp.Script",
|
||||
"RobotNet10.Script",
|
||||
];
|
||||
|
||||
public static readonly ImmutableArray<string> Modules = [
|
||||
"System.Runtime",
|
||||
"System.Collections",
|
||||
"System.Private.CoreLib",
|
||||
"RobotNet10.RobotApp.Script",
|
||||
"RobotNet10.Script",
|
||||
];
|
||||
|
||||
public static readonly ImmutableArray<string> DocModules = [
|
||||
"System.Runtime.xml",
|
||||
"System.Collections.xml",
|
||||
//"System.Private.CoreLib.xml",
|
||||
"RobotNet10.RobotApp.Script.xml",
|
||||
"RobotNet10.Script.xml",
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\RobotNet10.RobotApp.Script\RobotNet10.RobotApp.Script.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user