Repository navigation
Is dotnet build the correct way to build ImageSharp from the command line? #3265
Replies: 2 comments 1 reply
|
Hallo @winscripter, Yep, Current From the repository root, check: git submodule update --init --recursive
dotnet --version
dotnet msbuild src/ImageSharp/ImageSharp.csproj -getProperty:LangVersionFor current Then build from the root: dotnet build -c ReleaseThe build instructions are here: If those checks already match, could you share your commit SHA, SDK version and Visual Studio version? That would help narrow down whether this is a toolchain issue or something specific to your checkout. Hope this helps! |
|
no problem glad it was usefull haha |


Hallo @winscripter,
Yep,
dotnet buildis the documented command. Those particular errors make the compiler/language version worth checking first 😀Current
maintargets .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:
For current
main, the selected SDK should be 10 or newer, and LangVersion should be14.0.Then build from the root:
The build instructions …