mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Update sample Iris app and debug client
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using Microsoft.Iris;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace SimpleIrisApp;
|
||||
|
||||
@@ -8,6 +7,21 @@ internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
#if DEBUG
|
||||
Console.WriteLine("Starting debugger server...");
|
||||
|
||||
Application.DebuggerServerReady += (_, __) =>
|
||||
{
|
||||
var textColor = Console.ForegroundColor;
|
||||
Console.ForegroundColor = ConsoleColor.Green;
|
||||
Console.WriteLine($"Debugger server ready at {Application.DebugSettings.DebugConnectionUri}");
|
||||
Console.ForegroundColor = textColor;
|
||||
};
|
||||
|
||||
Application.DebugSettings.DebugConnectionUri = args.Length >= 2
|
||||
? args[1] : "tcp://127.0.0.1:5556";
|
||||
#endif
|
||||
|
||||
Console.WriteLine("Initializing Iris...");
|
||||
Application.Initialize();
|
||||
|
||||
@@ -24,5 +38,14 @@ internal class Program
|
||||
|
||||
var rootUi = Application.Window.Form.Zone.RootUI;
|
||||
var rootView = Application.Window.Form.Zone.RootViewItem;
|
||||
|
||||
rootView.DeepLayoutChange += RootView_DeepParentChange;
|
||||
|
||||
Console.WriteLine("Visual tree ready");
|
||||
}
|
||||
|
||||
private static void RootView_DeepParentChange(object? sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -2,18 +2,14 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<Platforms>x86;x64</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Assets\*.*" />
|
||||
<EmbeddedResource Include="Pages\*.*" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\UIX\UIX.csproj" />
|
||||
|
||||
<EmbeddedResource Include="Assets\*.*" />
|
||||
<EmbeddedResource Include="Pages\*.*" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="CopyCustomContent" AfterTargets="AfterBuild">
|
||||
|
||||
Reference in New Issue
Block a user