diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 6893c00aa3..f6252b90aa 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -467,7 +467,10 @@ if (onnxruntime_USE_JEMALLOC) list(APPEND onnxruntime_EXTERNAL_DEPENDENCIES jemalloc) endif() -include_directories(${ONNXRUNTIME_INCLUDE_DIR}) +include_directories( + ${ONNXRUNTIME_INCLUDE_DIR} + ${REPO_ROOT}/include/onnxruntime/core/session +) if (onnxruntime_USE_MKLDNN OR onnxruntime_USE_MKLML) include(mkldnn) diff --git a/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj index bffa46e623..f7fbdcda28 100644 --- a/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj +++ b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj @@ -46,6 +46,18 @@ CopyToOutputDirectory="Never" Visible="false" /> + +