libgit2sharp.nativebinaries icon indicating copy to clipboard operation
libgit2sharp.nativebinaries copied to clipboard

No more freely available VS Community 2019 :(

Open ScottHaney opened this issue 3 years ago • 2 comments
trafficstars

To build requires VS 2019, but the community edition doesn't seem to be available anymore. Is it possible to get this working in the latest community version (VS Community 2022)?

ScottHaney avatar May 08 '22 08:05 ScottHaney

You could retarget the project but a better option is just installing the VS 2019 build tools in VS 2022 image

Megasware128 avatar Jul 20 '22 10:07 Megasware128

Definitely should be possible. Visual Studio 2019 is not strictly required; the culprit is the cmake invocation: https://github.com/libgit2/libgit2sharp.nativebinaries/blob/master/build.libgit2.ps1#L132

I think that you could remove the -G entirely (leaving the -A). IOW:

Run-Command -Fatal { & $cmake -A x64 -D THREADSAFE=ON -D USE_SSH=OFF -D ENABLE_TRACE=ON -D "BUILD_CLAR=$build_clar" -D "LIBGIT2_FILENAME=$binaryFilename" ../.. }

ethomson avatar Jul 20 '22 19:07 ethomson