onnxruntime/csharp/Directory.Build.props.in
Changming Sun 3e9e5e9d6d
Patch Protobuf and ONNX's cmake files and enforce BinSkim check (#13694)
Patch Protobuf and ONNX's cmake files and enforce BinSkim check.

This PR has overlap with #13523 . I would prefer to get this one merged
first so that we can finished the BinSkim work, and I try to make this
PR as small as possible.
2022-11-18 10:09:47 -08:00

17 lines
952 B
Text

<!-- @DIRECTORY_BUILD_PROPS_COMMENT@ -->
<Project>
<PropertyGroup>
<!-- Note: build.py puts the CMake binary directory under an additional directory named for the build
configuration, so we want the parent directory here. -->
<OnnxRuntimeBuildDirectory>@CMAKE_BINARY_DIR@/..</OnnxRuntimeBuildDirectory>
<OnnxSourceDirectory>@onnx_SOURCE_DIR@</OnnxSourceDirectory>
<OnnxRuntimeCsharpRoot>$(MSBuildThisDirectory)</OnnxRuntimeCsharpRoot>
<ProtocDirectory>@protobuf_BINARY_DIR@</ProtocDirectory>
<RestorePackagesPath>$(MSBuildThisFileDirectory)\packages</RestorePackagesPath>
<RestoreConfigFile>$(MSBuildThisFileDirectory)\NuGet.CSharp.config</RestoreConfigFile>
<MSBuildWarningsAsMessages>NU1503</MSBuildWarningsAsMessages>
<RestoreIgnoreFailedSource>true</RestoreIgnoreFailedSource>
<DefineConstants>@CSHARP_PREPROCESSOR_DEFINES@$(DefineConstants)</DefineConstants>
</PropertyGroup>
</Project>