-
Notifications
You must be signed in to change notification settings - Fork 725
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
[Desktop] OutputType
cannot be changed
#17719
Comments
@ArchieCoder If you want to hide the console, you probably need |
@Youssef1313 I tried but it does not work <Project Sdk="Uno.Sdk">
<PropertyGroup>
<TargetFrameworks>
net8.0-windows10.0.19041;
net8.0-desktop;
</TargetFrameworks>
<OutputType>Exe</OutputType>
<UnoSingleProject>true</UnoSingleProject>
<UnoSplashScreenColor>#F9F9F9</UnoSplashScreenColor>
<!-- Display name -->
<ApplicationTitle>Elements Technician</ApplicationTitle>
<!-- App Identifier -->
<ApplicationId>com.Enteligent.ElementsTechnician</ApplicationId>
<!-- Versions -->
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>
<!--
If you encounter this error message:
error NETSDK1148: A referenced assembly was compiled using a newer version of Microsoft.Windows.SDK.NET.dll.
Please update to a newer .NET SDK in order to reference this assembly.
This means that the two packages below must be aligned with the "build" version number of
the "Microsoft.Windows.SDK.BuildTools" package above, and the "revision" version number
must be the highest found in https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref.
-->
<!-- <WindowsSdkPackageVersion>10.0.22621.28</WindowsSdkPackageVersion> -->
<!--
UnoFeatures let's you quickly add and manage implicit package references based on the features you want to use.
https://aka.platform.uno/singleproject-features
-->
<UnoFeatures>
Lottie;
Hosting;
Toolkit;
Logging;
LoggingSerilog;
Mvvm;
Configuration;
Http;
Serialization;
Localization;
Navigation;
</UnoFeatures>
</PropertyGroup>
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls" />
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.DataGrid" />
<PackageReference Include="CommunityToolkit.WinUI.UI" />
<PackageReference Include="WinUIEx" />
<!-- Add more community toolkit references here -->
</ItemGroup>
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'windows'">
<PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Controls" />
<PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Controls.DataGrid" />
<PackageReference Include="Uno.CommunityToolkit.WinUI.UI" />
<!-- Add more uno community toolkit references here -->
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" />
<PackageReference Include="MQTTnet" />
<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="Uno.Fonts.OpenSans" />
<PackageReference Include="Zeroconf" />
</ItemGroup>
<Target Name="__OverrideOutputType" BeforeTargets="BeforeBuild">
<PropertyGroup>
<OutputType>WinExe</OutputType>
</PropertyGroup>
</Target>
</Project> |
@rajamatt if you can help verify if @dansiegel changes (#17974) will fix the issue please |
@ArchieCoder using 5.4.5, this is preventing the console from showing: <PropertyGroup>
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst;net8.0-windows10.0.19041;net8.0-browserwasm;net8.0-desktop</TargetFrameworks>
<OutputType>Exe</OutputType>
<OutputType Condition="'$(TargetFramework)'=='net8.0-desktop'">WinExe</OutputType> The only linked issue is that the hot reload tooling ( |
@jeromelaban Tested! Thank you a lot for this one :) |
Current behavior
Setting
<OutputType>Exe</OutputType>
does not have an effect on skia desktop and still shows the console on windows.Expected behavior
The console does not show.
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
Works on UWP/WinUI
Yes
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: