From a09a3d3aa5ec83c0f39c648a45a66aa49bbe06f3 Mon Sep 17 00:00:00 2001
From: shahasad <43590019+shahasad@users.noreply.github.com>
Date: Fri, 7 Dec 2018 12:15:11 -0800
Subject: [PATCH] Add build targets and props file for legacy csharp project
support (#127)
* added the x64 condition in the targets file
* need the reference node for managed dll
* address review comments
* fix the dll path
* added back Link
---
.../Microsoft.ML.OnnxRuntime.csproj | 12 +++++++++++
.../Microsoft.ML.OnnxRuntime.props | 20 +++++++++++++++++++
.../Microsoft.ML.OnnxRuntime.targets | 16 +++++++++++++++
3 files changed, 48 insertions(+)
create mode 100644 csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.props
create mode 100644 csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.targets
diff --git a/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj
index 1310cc7ba8..54c17cad3a 100644
--- a/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj
+++ b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj
@@ -63,6 +63,18 @@
Pack="true"
Visible="false"
/>
+
+
+
+
diff --git a/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.props b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.props
new file mode 100644
index 0000000000..fd57ab3adc
--- /dev/null
+++ b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.props
@@ -0,0 +1,20 @@
+
+
+
+
+
+ onnxruntime.dll
+ PreserveNewest
+ false
+
+
+ mkldnn.dll
+ PreserveNewest
+ false
+
+
+
diff --git a/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.targets b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.targets
new file mode 100644
index 0000000000..c4829504ed
--- /dev/null
+++ b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.targets
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+