From dfb3bfe3bae77ffba9a95266e51fd1e60ea0377c Mon Sep 17 00:00:00 2001 From: Max Katz Date: Wed, 5 Jul 2023 15:31:46 -0400 Subject: [PATCH] Update build.md --- Documentation/build.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/build.md b/Documentation/build.md index fd6b26337c..62d6d72a05 100644 --- a/Documentation/build.md +++ b/Documentation/build.md @@ -43,6 +43,25 @@ Build and run `ControlCatalog.NetCore` project to see the sample application. >CSC : error CS0006: Metadata file 'C:\...\Avalonia\packages\Avalonia\bin\Debug\netcoreapp2.0\Avalonia.dll' could not be found ``` To correct this, right click on the `Avalonia.DesktopRuntime` project then press `Build` to build the project manually. Afterwards the solution should build normally and the ControlCatalog can be run. + * **Error MSB4062 GenerateAvaloniaResourcesTask** + + Same as previous one, you need to manually build `Avalonia.Build.Tasks` project at least once. + + Alternatively, you can build the solution once with Nuke. + +## Building packages with Nuke + +Install Nuke +`dotnet tool install --global Nuke.GlobalTool --version 6.2.1` + +Build project: +`nuke --target Compile --configuration Release` + +And run tests: +`nuke --target RunTests --configuration Release` + +Or if you need to create nuget packages as well (it will compile and run tests automatically): +`nuke --target Package --configuration Release` # Linux/macOS