Upgraded to latest version of Process.Net and modified code to use new Start function.

This commit is contained in:
MattMo 2024-09-11 18:47:47 -07:00
parent 4ccee8afb3
commit a92653396f
3 changed files with 43 additions and 3 deletions

View File

@ -0,0 +1,40 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>disable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageIcon>Logo_Symbol_Black_Outline.png</PackageIcon>
<RepositoryUrl>https://code.montoyatech.com/MontoyaTech/ExtraConsole.Net</RepositoryUrl>
<Authors>MontoyaTech</Authors>
<Company>MontoyaTech</Company>
<Copyright>MontoyaTech 2024</Copyright>
<PackageProjectUrl>https://code.montoyatech.com/MontoyaTech/ExtraConsole.Net</PackageProjectUrl>
<PackageTags>MontoyaTech;ExtraConsole.Net</PackageTags>
<AssemblyName>MontoyaTech.ExtraConsole.Net</AssemblyName>
<RootNamespace>MontoyaTech.ExtraConsole.Net</RootNamespace>
<Version>1.0.0</Version>
<Company>MontoyaTech</Company>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Description>An open source C# package that opens an extra console that can be written to similar to the main Console provided. You can open as many extra consoles as needed.</Description>
</PropertyGroup>
<ItemGroup>
<None Include="..\Logo_Symbol_Black_Outline.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="MontoyaTech.Process.Net" Version="1.0.2" />
</ItemGroup>
</Project>

View File

@ -15,7 +15,7 @@
<PackageTags>MontoyaTech;ExtraConsole.Net</PackageTags>
<AssemblyName>MontoyaTech.ExtraConsole.Net</AssemblyName>
<RootNamespace>MontoyaTech.ExtraConsole.Net</RootNamespace>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
<Company>MontoyaTech</Company>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
@ -34,7 +34,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="MontoyaTech.Process.Net" Version="1.0.0" />
<PackageReference Include="MontoyaTech.Process.Net" Version="1.0.2" />
</ItemGroup>
</Project>

View File

@ -31,7 +31,7 @@ namespace MontoyaTech.ExtraConsole.Net
RedirectStandardInput = true
};
this._process = WinProcess.Create(startInfo, creationFlags: WinProcess.CreationFlags.CREATE_NEW_CONSOLE);
this._process = WinProcess.Start(startInfo, creationFlags: WinProcess.CreationFlags.CREATE_NEW_CONSOLE);
this._writer = this._process.StandardInput;
}