This document lists which files are maintained upstream (in the original GeoSharPlus template)
and should be updated via scripts/sync-upstream.ps1 rather than modified directly.
When you need upstream updates, use:
.\scripts\sync-upstream.ps1include/GeoSharPlusCPP/Core/Geometry.h- Core geometry typesinclude/GeoSharPlusCPP/Core/Macro.h- Platform macrosinclude/GeoSharPlusCPP/Core/MathTypes.h- Math type definitionsinclude/GeoSharPlusCPP/Serialization/Serializer.h- FlatBuffers serialization
src/Core/Geometry.cpp- Core geometry implementationssrc/Serialization/Serializer.cpp- Serialization implementations
schema/base.fbsschema/doubleArray.fbsschema/doublePairArray.fbsschema/intArray.fbsschema/intNestedArray.fbsschema/intPairArray.fbsschema/mesh.fbsschema/point.fbsschema/pointArray.fbs
CMakeLists.txt- CMake build configurationCMakePresets.json- CMake presetsvcpkg.json- vcpkg dependencies
RuntimeInit.cs- Platform initialization and library loadingWrapper.cs- FlatBuffers wrapper utilitiesGeoSharPlusNET.csproj- Project file
Add your custom code to these Extensions folders:
include/GeoSharPlusCPP/Extensions/- Your custom header filessrc/Extensions/- Your custom source filesschema/extensions/- Your custom FlatBuffer schemas
GeoSharPlusNET/Extensions/- Your custom C# files
-
Add the original GeoSharPlus as an upstream remote (one time only):
git remote add upstream https://github.com/xarthurx/GeoSharPlus.git
-
Run the sync script:
.\scripts\sync-upstream.ps1 -
Review and commit the changes:
git diff git add -A git commit -m "Sync with upstream GeoSharPlus"