Browse Source

Designer: now using IMAGE_SUBSYSTEM_WINDOWS_GUI

pull/148/head
Nikita Tsukanov 11 years ago
parent
commit
e847e76b10
  1. 2
      src/Windows/Perspex.Designer/Comm/ProcessHost.cs
  2. 5
      src/Windows/Perspex.Designer/Perspex.Designer.csproj
  3. 2
      src/Windows/Perspex.Designer/Program.cs

2
src/Windows/Perspex.Designer/Comm/ProcessHost.cs

@ -98,7 +98,7 @@ namespace Perspex.Designer.Comm
var exe = typeof (ProcessHost).Assembly.GetModules()[0].FullyQualifiedName; var exe = typeof (ProcessHost).Assembly.GetModules()[0].FullyQualifiedName;
_proc = new Process() _proc = new Process()
{ {
StartInfo = new ProcessStartInfo(exe) StartInfo = new ProcessStartInfo(exe, "--hosted")
{ {
UseShellExecute = false, UseShellExecute = false,
RedirectStandardInput = true, RedirectStandardInput = true,

5
src/Windows/Perspex.Designer/Perspex.Designer.csproj

@ -5,7 +5,7 @@
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{EC42600F-049B-43FF-AED1-8314D61B2749}</ProjectGuid> <ProjectGuid>{EC42600F-049B-43FF-AED1-8314D61B2749}</ProjectGuid>
<OutputType>Exe</OutputType> <OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Perspex.Designer</RootNamespace> <RootNamespace>Perspex.Designer</RootNamespace>
<AssemblyName>Perspex.Designer</AssemblyName> <AssemblyName>Perspex.Designer</AssemblyName>
@ -42,6 +42,9 @@
<PropertyGroup> <PropertyGroup>
<AssemblyOriginatorKeyFile>perspex.designer.snk</AssemblyOriginatorKeyFile> <AssemblyOriginatorKeyFile>perspex.designer.snk</AssemblyOriginatorKeyFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="PresentationCore" /> <Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" /> <Reference Include="PresentationFramework" />

2
src/Windows/Perspex.Designer/Program.cs

@ -18,7 +18,7 @@ namespace Perspex.Designer
[STAThread] [STAThread]
static void Main(string[] args) static void Main(string[] args)
{ {
if (!Console.IsInputRedirected || !Console.IsOutputRedirected) if (!args.Contains("--hosted"))
DemoMain(args); DemoMain(args);
else else
HostedMain(); HostedMain();

Loading…
Cancel
Save