Skip to content
Discussion options

You must be logged in to vote

Hallo @winscripter,

Yep, dotnet build is the documented command. Those particular errors make the compiler/language version worth checking first 😀

Current main targets .NET 10, and its shared build settings use C# 14. The Span-to-ReadOnlySpan conversions involved in your errors gained support in C# 14, so an older compiler or language configuration could explain this.

From the repository root, check:

git submodule update --init --recursive
dotnet --version
dotnet msbuild src/ImageSharp/ImageSharp.csproj -getProperty:LangVersion

For current main, the selected SDK should be 10 or newer, and LangVersion should be 14.0.

Then build from the root:

dotnet build -c Release

The build instructions …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@winscripter
Comment options

Answer selected by winscripter
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants