dotnet / Microsoft.Maui.Graphics

An experimental cross-platform native graphics library.
MIT License
682 stars 63 forks source link

newby question: how to build this? #462

Open thomiel opened 2 years ago

thomiel commented 2 years ago

What are the prerequisites to build the solution? What is the official way to build the current main branch?

Tried with VS 2022 Preview and got:

src\Microsoft.Maui.Graphics.Skia.Forms\Renderer\SkiaGraphicsViewRenderer.Android.cs(13,102,13,107): error CS0234: Type or namespace name "Views" does not exist in namespace "Microsoft.Maui.Graphics.Skia".

Same with PlatformGraphicsView.

samples\GraphicsTester.Mac threw CS0012 errors (type "List<>" is defined in a non-referenced assembly).

Also tried to run the cake script and got "MSBUILD : error MSB1009: The project file does not exist: ./src/DotNet/DotNet.csproj

There should be a "How to Build" section, if there are pre-build steps necessary that fo beyond the standard way of building a solution.

thomiel commented 2 years ago

Ok, made some progress after adding .NET 5 (thought that Maui is .NET 6 only).

Using Visual Studio 2022 Preview 3.0 I got some NU1101 when when restoring four SharpDX.* from the obscure packet sources darc-pub-dotnet-runtime-15626cf, dotnet-eng, dotnet-public, dotnet6, dotnet7, skiasharp, skiasharp-stable-2e127353-signed. Only after I added the default packet source nuget.org / https://api.nuget.org/v3/index.json packet restore worked.