Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify a base path when creating child process from ChildProcessFactory #16

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,5 @@ Generated_Code #added for RIA/Silverlight projects
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
/.vs/RedGate.AppHost/v15/Server/sqlite3
/.vs/RedGate.AppHost/v16/TestStore/0
60 changes: 34 additions & 26 deletions NuSpec/RedGate.AppHost.nuspec
Original file line number Diff line number Diff line change
@@ -1,44 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>RedGate.AppHost</id>
<version>1.0.0</version>
<title>Red Gate Out of Process App Host</title>
<id>CefSharp-Remoting.RedGate.AppHost</id>
<version>1.0.4</version>
<title>CefSharp-Remoting fork of Red Gate Out of Process App Host</title>
<authors>Red Gate</authors>
<owners>Red Gate</owners>
<projectUrl>https://github.com/red-gate/RedGate.AppHost</projectUrl>
<projectUrl>https://github.com/rupertsciamenna89/RedGate.AppHost</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Provides a way to host a UI out of process and remote it in</description>
<summary>Provides a way to host a UI out of process and remote it in</summary>
<description>Provides a way to host a UI out of process and remote it in. It's a CefSharp-Remoting fork. This package must not be used for production environment. It has only educative purpose.</description>
<summary>Provides a way to host a UI out of process and remote it in. It's a CefSharp-Remoting fork.</summary>
<references>
<reference file="RedGate.AppHost.Server.dll" />
<reference file="RedGate.AppHost.Interfaces.dll" />
<reference file="RedGate.AppHost.Remoting.WPF.dll" />
<group targetFramework="net452">
<reference file="RedGate.AppHost.Server.dll" />
<reference file="RedGate.AppHost.Interfaces.dll" />
<reference file="RedGate.AppHost.Remoting.WPF.dll" />
</group>
</references>
<dependencies>
<dependency id="CommandLineParser" version="1.9.71" />
</dependencies>
<dependencies>
<group targetFramework="net452">
<dependency id="CommandLineParser" version="2.2.1" />
</group>
</dependencies>
</metadata>
<files>
<file src="RedGate.AppHost.Client.exe" target="AppHostClientExe" />
<file src="RedGate.AppHost.Client.pdb" target="AppHostClientExe" />
<file src="RedGate.AppHost.Client.x64.exe" target="AppHostClientExe" />
<file src="RedGate.AppHost.Client.x64.pdb" target="AppHostClientExe" />

<file src="Build\RedGate.AppHost.targets" target="Build" />

<file src="RedGate.AppHost.Example.Client.dll" target="lib" />
<file src="RedGate.AppHost.Example.Server.exe" target="lib" />
<file src="RedGate.AppHost.Example.Remote.Services.dll" target="lib" />
<file src="RedGate.AppHost.Interfaces.dll" target="lib" />
<file src="RedGate.AppHost.Interfaces.pdb" target="lib" />
<file src="RedGate.AppHost.Remoting.dll" target="lib" />
<file src="RedGate.AppHost.Remoting.pdb" target="lib" />
<file src="RedGate.AppHost.Remoting.WPF.dll" target="lib" />
<file src="RedGate.AppHost.Remoting.WPF.pdb" target="lib" />
<file src="RedGate.AppHost.Server.dll" target="lib" />
<file src="RedGate.AppHost.Server.pdb" target="lib" />


<file src="RedGate.AppHost.Example.Client.dll" target="lib\net452\" />
<file src="RedGate.AppHost.Example.Server.exe" target="lib\net452\" />
<file src="RedGate.AppHost.Example.Remote.Services.dll" target="lib\net452\" />
<file src="RedGate.AppHost.Interfaces.dll" target="lib\net452\" />
<file src="RedGate.AppHost.Interfaces.pdb" target="lib\net452\" />
<file src="RedGate.AppHost.Remoting.dll" target="lib\net452\" />
<file src="RedGate.AppHost.Remoting.pdb" target="lib\net452\" />
<file src="RedGate.AppHost.Remoting.WPF.dll" target="lib\net452\" />
<file src="RedGate.AppHost.Remoting.WPF.pdb" target="lib\net452\" />
<file src="RedGate.AppHost.Server.dll" target="lib\net452\" />
<file src="RedGate.AppHost.Server.pdb" target="lib\net452\" />

<file src="RedGate.AppHost.Interfaces.dll" target="ref\net452\" />
<file src="RedGate.AppHost.Server.dll" target="ref\net452\" />
<file src="RedGate.AppHost.Remoting.WPF.dll" target="ref\net452\" />

<file src="RedGate.AppHost.wxs" target="WiX2\RedGate.AppHost.wxs" />
</files>
</package>
7 changes: 4 additions & 3 deletions RedGate.AppHost.Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ internal static class Program
[STAThread]
private static void Main(string[] args)
{
var options = new Options();
if (Parser.Default.ParseArguments(args, options))
{
var parseResult = Parser.Default.ParseArguments<Options>(args);

if (parseResult.Tag == ParserResultType.Parsed) {
var options = parseResult.MapResult(el => el, el => null);
#if DEBUG
options.Debug = true;
#endif
Expand Down
47 changes: 43 additions & 4 deletions RedGate.AppHost.Client/RedGate.AppHost.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,26 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RedGate.AppHost.Client</RootNamespace>
<AssemblyName>RedGate.AppHost.Client</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>\\red-gate.com\Files\RG_Build_Key\RedGate.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>RedGate_AppHost.snk</AssemblyOriginatorKeyFile>
<IsWebBootstrapper>false</IsWebBootstrapper>
<TargetFrameworkProfile />
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
Expand All @@ -26,6 +42,7 @@
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
Expand All @@ -36,6 +53,7 @@
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -46,6 +64,7 @@
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>..\Build\Release\</OutputPath>
Expand All @@ -56,6 +75,7 @@
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<!-- Don't try to sign if it's built inside visual studio, there's probably no point -->
<PropertyGroup Condition="'$(BuildingInsideVisualStudio)' == ''">
Expand All @@ -70,8 +90,8 @@
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="CommandLine">
<HintPath>..\packages\CommandLineParser.1.9.71\lib\net40\CommandLine.dll</HintPath>
<Reference Include="CommandLine, Version=2.8.0.0, Culture=neutral, PublicKeyToken=5a870481e358d379, processorArchitecture=MSIL">
<HintPath>..\packages\CommandLineParser.2.8.0\lib\net45\CommandLine.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
Expand Down Expand Up @@ -110,12 +130,31 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="app.manifest" />
<None Include="packages.config" />
<None Include="RedGate_AppHost.snk" />
</ItemGroup>
<ItemGroup>
<Content Include="honeycomb.ico" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.0">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4 %28x86 e x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.4.5">
<Visible>False</Visible>
<ProductName>Windows Installer 4.5</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(RedGate_BuildTargetsPath)" Condition="'$(BuildingInsideVisualStudio)' == ''" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
15 changes: 11 additions & 4 deletions RedGate.AppHost.Client/RedGate.AppHost.Client.x64.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RedGate.AppHost.Client</RootNamespace>
<AssemblyName>RedGate.AppHost.Client.x64</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>\\red-gate.com\Files\RG_Build_Key\RedGate.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>RedGate_AppHost.snk</AssemblyOriginatorKeyFile>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup>
<StartupObject />
Expand All @@ -26,6 +27,7 @@
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>..\Build\Release\</OutputPath>
Expand All @@ -36,6 +38,7 @@
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -46,6 +49,7 @@
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
Expand All @@ -56,6 +60,7 @@
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<!-- Don't try to sign if it's built inside visual studio, there's probably no point -->
<PropertyGroup Condition="'$(BuildingInsideVisualStudio)' == ''">
Expand All @@ -68,8 +73,8 @@
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="CommandLine">
<HintPath>..\packages\CommandLineParser.1.9.71\lib\net40\CommandLine.dll</HintPath>
<Reference Include="CommandLine, Version=2.8.0.0, Culture=neutral, PublicKeyToken=5a870481e358d379, processorArchitecture=MSIL">
<HintPath>..\packages\CommandLineParser.2.8.0\lib\net45\CommandLine.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
Expand Down Expand Up @@ -108,8 +113,10 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="app.manifest" />
<None Include="packages.config" />
<None Include="RedGate_AppHost.snk" />
</ItemGroup>
<ItemGroup>
<Content Include="honeycomb.ico" />
Expand Down
Binary file added RedGate.AppHost.Client/RedGate_AppHost.snk
Binary file not shown.
3 changes: 3 additions & 0 deletions RedGate.AppHost.Client/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/></startup></configuration>
2 changes: 1 addition & 1 deletion RedGate.AppHost.Client/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="CommandLineParser" version="1.9.71" targetFramework="net40" />
<package id="CommandLineParser" version="2.8.0" targetFramework="net452" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RedGate.AppHost.Example.Client</RootNamespace>
<AssemblyName>RedGate.AppHost.Example.Client</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SignAssembly>true</SignAssembly>
<SignAssembly>false</SignAssembly>
<AssemblyOriginatorKeyFile>\\red-gate.com\Files\RG_Build_Key\RedGate.snk</AssemblyOriginatorKeyFile>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -23,6 +24,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -32,6 +34,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="PresentationCore" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RedGate.AppHost.Example.Remote.Services</RootNamespace>
<AssemblyName>RedGate.AppHost.Example.Remote.Services</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<SignAssembly>true</SignAssembly>
<SignAssembly>false</SignAssembly>
<AssemblyOriginatorKeyFile>\\red-gate.com\Files\RG_Build_Key\RedGate.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Expand All @@ -23,6 +23,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -31,6 +32,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down
Loading