Kinnara / ModernWpf

Modern styles and controls for your WPF applications
MIT License
4.51k stars 450 forks source link

How to Compile Sample app(s) or provide binary #494

Open j81blog opened 2 years ago

j81blog commented 2 years ago

Could you provide build instructions for the Sample app or provide the compiled binaries?

Reeceeboii commented 7 months ago

I have come back to this issue after a while, and have found a solution. Building inside Visual Studio 2022 fails with over 100 errors, however, if you build using dotnet build from the command line, it seems relatively happy minus a few errors and does build a sample app that can be booted.

  1. Open a command line in the solution directory.

  2. Run dotnet build .\ModernWpf.sln

  3. Build ends with a few errors: image

  4. Check bin/Debug folders of sample app for a framework version that managed to successfully build a ModernWpf.SampleApp.exe. On my machine, net6.0-windows was empty, but net45 spat everything out. You may need to install extra frameworks if all of them fail. It may be worth noting that I have .NET Framework 4.5.2 targeting pack installed - I assume this is backwards compatible with the ModernWpf.SampleApp project's target of 4.5. image

  5. Profit!

image