Replies: 1 comment
-
@ValtteriL Adding the code in csproj when enter your Windows build <ItemGroup>
<FrameworkReference Include="Microsoft.WindowsDesktop.App" />
<FrameworkReference Include="Microsoft.WindowsDesktop.App.WPF" />
</ItemGroup> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I develop a cross-platform console application using .NET7. I want to add GUI to the Windows version of it using WPF.
Is it possible to conditionally include WPF to only Windows builds, while not affecting others? Ideally, I could add a command line flag to the Windows console app, which would start the GUI.
If this is possible, how should it be done?
Beta Was this translation helpful? Give feedback.
All reactions