Is there a way to hide console window and just show main UI?
I see two window when starting my aplication, first Console and next Desktop UI
You can try using this: https://www.nuget.org/packages/NSubsys.
Thank you for replay, how to use? no documents
You need to specify the runtime identifier so that it deploys the dotnet host.
i installed package in my dekstop AvaloniaUI not happening, not work, cannot see NSubsys dll in build folder and nothing, can you show me a sample or what i can do?
ping @jmacato
@Ali-YousefiTelori You need publish your app with dotnet publish
in your csproj add:
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<RuntimeIdentifiers>win7-x64</RuntimeIdentifiers>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NSubsys" Version="0.7.0-build20180604-0047" />
</ItemGroup>
then in project directory:
dotnet publish -c Release -f netcoreapp2.0 -r win7-x64
Thank you @wieslawsoltes your way works fine.
@grokys @wieslawsoltes perhaps we can update this wiki page ?
@Ali-YousefiTelori can i close this issue now? :)
@jmacato yes
I understand this is closed issue, but does your solution work on macOS/Linux also, or is this just a Windows solution?
@tom-corwin only for windows
If we talk about development for Windows, and using Visual Studio probably, what I did is opened the properties of my application (project) and in the _Application_ section I changed the _Output type_ from Console Application to Windows Application. Now the debug build still opens the console, release build doesn't.
No need for Nsubsys or editbin.
Most helpful comment
in your
csprojadd:then in project directory: