-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Building the MahApps.Metro solution
John edited this page Apr 12, 2019
·
29 revisions
- Download the
.NET Core 3.0.0 Preview 3
SDK from here- Make sure you only have this dotnet core 3.0 installed!
- Make sure you have Visual Studio 2019 (Community Edition)
- Clone the repository
- Open the solution from the src directory in Visual Studio 2019
- Rebuild and start... (you might need to rebuild 2x, because we use the very fresh hot dotnet core stuff)
-
.NET Core 3.0.0 Preview 3
support (why, read here ) - Also targeting .Net 4.5, 4.6 and 4.7
With 3213 we use now the MSBuild.Sdk.Extras
which allows us to avoid boiler plate project files and better multi targeting. If you use R# then you must have 2017.3.5 installed.
MahApps uses Paket to restore nested references. Normally this works automatically during the build.
If this doesn't work and you still see these lines
[Failure] Could not find a part of the path 'd:\projects\git\MahApps.Metro\src\paket-files\ControlzEx\ControlzEx\src\ControlzEx\BadgedEx.cs'.
[Failure] Could not find a part of the path 'd:\projects\git\MahApps.Metro\src\paket-files\ControlzEx\ControlzEx\src\ControlzEx\KeyboardNavigationEx.cs'.
[Failure] Could not find a part of the path 'd:\projects\git\MahApps.Metro\src\paket-files\ControlzEx\ControlzEx\src\ControlzEx\BadgedEx.cs'.
[Failure] Could not find a part of the path 'd:\projects\git\MahApps.Metro\src\paket-files\ControlzEx\ControlzEx\src\ControlzEx\KeyboardNavigationEx.cs'.
then open a command line, go to your cloned directory and step in to the src
folder. Now execute the following command
.paket\paket restore
Now it should be possible to build the MahApps solution.
Full MahApps documentation is available at https://mahapps.com