0

I want to make a multiplatform application from windows environment for macOS. I want to know how to configure the 'csproj' file.

My .csproj file:

<PropertyGroup>
    <OutputType>Exe</OutputType> <!-- How to put executable for macOS -->
    <TargetFramework>netcoreapp3.1</TargetFramework>
    <UseWPF>true</UseWPF>
    <RuntimeIdentifiers>win10-x64;osx.10.11-x64</RuntimeIdentifiers> 
    <DisableWinExeOutputInference>true</DisableWinExeOutputInference>
</PropertyGroup>
Rand Random
  • 7,300
  • 10
  • 40
  • 88
Apes
  • 1
  • 1
  • You cannot target macOS with WPF projects: WPF only supports Windows: https://stackoverflow.com/questions/53954047/can-wpf-applications-be-run-in-linux-or-mac-with-net-core-3 – Dai Aug 29 '21 at 15:22
  • 1
    Does this answer your question? [Can WPF applications be run in Linux or Mac with .Net Core 3?](https://stackoverflow.com/questions/53954047/can-wpf-applications-be-run-in-linux-or-mac-with-net-core-3) – Timothy G. Aug 29 '21 at 15:24
  • Consider switching to MAUI - https://github.com/dotnet/maui – Rand Random Aug 29 '21 at 16:38

0 Answers0