Skip to content

Commit 5487bf0

Browse files
committed
vOS.sln fusion
2 parents 3b3ee4b + 39ff8a8 commit 5487bf0

21 files changed

+363
-117
lines changed
Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,37 @@
11
using System;
2+
using System.Threading.Tasks;
3+
using vOS.API;
24

35
namespace vOS.Application.Echo
46
{
57
public class Program
68
{
7-
public static int Main(string[] args)
9+
public string Tag;
10+
11+
public int Main(string[] args)
812
{
13+
//var args = API.Application.Arguments;
14+
15+
System.Console.WriteLine(Tag);
16+
Tag = Guid.NewGuid().ToString();
17+
System.Console.WriteLine(Tag);
18+
919
args[0] = string.Empty;
1020

11-
Console.WriteLine(string.Join(" ", args));
21+
System.Console.WriteLine(string.Join(" ", args));
22+
23+
BackgroundSpin();
1224

1325
return 0;
1426
}
27+
28+
private async void BackgroundSpin()
29+
{
30+
while (true)
31+
{
32+
await Task.Delay(1000);
33+
System.Console.WriteLine(Tag);
34+
}
35+
}
1536
}
1637
}

Applications/Console/vOS.Application.Echo/vOS.Application.Echo.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<ProjectReference Include="..\..\..\System\vOS\vOS.csproj" />
11+
<ProjectReference Include="..\..\..\System\vOS.API\vOS.API.csproj" />
1212
</ItemGroup>
1313

1414
</Project>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
3+
namespace vOS.Application.iKVM
4+
{
5+
public class Program
6+
{
7+
public static int Main(string[] args)
8+
{
9+
10+
11+
return 0;
12+
}
13+
}
14+
}
Binary file not shown.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<PackageReference Include="IKVM.Maven.Sdk" Version="1.0.0" />
9+
</ItemGroup>
10+
11+
</Project>

Hosts/vOS.UWP/Pages/vConsole.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ public vConsole()
2121
var process = Process.Start("terminal", string.Join(" ", Environment.GetCommandLineArgs()));
2222
//process.WaitUntilExit();
2323
//Command.Send("terminal " + string.Join(" ", args));
24+
25+
2426
}
2527

2628
private void Write(string value) =>

System/vOS.API/Application.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace vOS.API
6+
{
7+
public static class Application
8+
{
9+
public static string[] Arguments { get; internal set; }
10+
}
11+
}

System/vOS.API/Console.cs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
using System;
2+
using System.Text;
3+
4+
namespace vOS.API
5+
{
6+
public class Console
7+
{
8+
public static void Write(object value)
9+
{
10+
11+
}
12+
13+
public static void WriteLine(object value) =>
14+
Write(value + Environment.NewLine);
15+
16+
public static int Read()
17+
{
18+
//System.Diagnostics.Process.GetCurrentProcess()
19+
20+
return '\0';
21+
}
22+
23+
public static string ReadLine()
24+
{
25+
int key = '\0';
26+
StringBuilder line = new();
27+
28+
while (key != '\n')
29+
{
30+
key = Read();
31+
line.Append(key);
32+
33+
34+
}
35+
36+
return line.ToString();
37+
}
38+
}
39+
}

System/vOS.API/vOS.API.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<LangVersion>9.0</LangVersion>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<ProjectReference Include="..\vOS\vOS.csproj" />
10+
</ItemGroup>
11+
12+
</Project>

System/vOS.API/vOS_API_Init.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace vOS.API
6+
{
7+
public static class vOS_API_Init
8+
{
9+
private static Guid ProcessId;
10+
11+
public static string Tag;
12+
13+
public static int main(string[] arguments, Guid instance, Guid previousInstance, int windowState)
14+
{
15+
ProcessId = instance;
16+
Application.Arguments = arguments;
17+
18+
return 0;
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)