C
C#2y ago
Beluga0_0

❔ cmd on background

Hi, i developed an application for cross platform and for mac i successfully deployed it. but when i deploy it on windows the blank command prompt pops up. i have added <NoWin32Manifest>true</NoWin32Manifest> as well but it doesn't help if you have any ideas.. i am open for suggestions. Thanks in advance
5 Replies
Teuria
Teuria2y ago
is your <OutputType> on your csproj WinExe? if not, try adding that one in the PropertyGroup..
Beluga0_0
Beluga0_0OP2y ago
yes... wait let me send you my csproj code in here. <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>net6.0</TargetFramework> <Nullable>enable</Nullable> <BuiltInComInteropSupport>true</BuiltInComInteropSupport> <ApplicationManifest>app.manifest</ApplicationManifest> <PublishTrimmed> true </PublishTrimmed> <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault> <PublishReadyToRun>true</PublishReadyToRun> <SelfContained>true</SelfContained> <ApplicationIcon>EnvironmentSetter.ico</ApplicationIcon> <Version>1.0.0</Version> <NoWin32Manifest>true</NoWin32Manifest>
</PropertyGroup> <PropertyGroup> <CFBundleName>EnvironmentSetter</CFBundleName> <CFBundleExecutable>EnvironmentSetter</CFBundleExecutable> <CFBundleIdentifier>environmentsetter</CFBundleIdentifier> <CFBundleShortVersionString>$(Version)</CFBundleShortVersionString> <CFBundleIconFile>EnvironmentSetter.icns</CFBundleIconFile> <CFBundlePackageType>APPL</CFBundlePackageType> <NSPrincipalClass>NSApplication</NSPrincipalClass> <NSHighResolutionCapable>True</NSHighResolutionCapable> <NSHumanReadableCopyright>©2023 Ganiiiii</NSHumanReadableCopyright> </PropertyGroup>
<ItemGroup> <Compile Update="Views\MainWindow.axaml.cs"> <DependentUpon>MainWindow.axaml</DependentUpon> <SubType>Code</SubType> </Compile> </ItemGroup> </Project>
Teuria
Teuria2y ago
GitHub
Hide console window ? · Issue #1705 · AvaloniaUI/Avalonia
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
Teuria
Teuria2y ago
there's a solution at the very bottom of this issue, but idk if that would work for you
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server