Add NETCore support to Generator.Bind
authorWonyoung Choi <wy80.choi@samsung.com>
Mon, 13 Aug 2018 09:28:37 +0000 (18:28 +0900)
committerWonyoung Choi <wy80.choi@samsung.com>
Mon, 13 Aug 2018 09:28:37 +0000 (18:28 +0900)
src/Generator.Bind/Generator.Bind.NETCore.csproj [new file with mode: 0644]
src/Generator.Bind/Main.cs

diff --git a/src/Generator.Bind/Generator.Bind.NETCore.csproj b/src/Generator.Bind/Generator.Bind.NETCore.csproj
new file mode 100644 (file)
index 0000000..42125e7
--- /dev/null
@@ -0,0 +1,16 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <OutputType>exe</OutputType>
+    <TargetFramework>netcoreapp2.0</TargetFramework>
+  </PropertyGroup>
+
+  <PropertyGroup>
+    <AssemblyName>Bind</AssemblyName>
+    <Deterministic>True</Deterministic>
+    <DefineConstants>NET_CORE</DefineConstants>
+    <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
+    <NoWarn>$(NoWarn);NU1605</NoWarn>
+  </PropertyGroup>
+
+</Project>
index df8cba2..d80534b 100644 (file)
@@ -37,9 +37,11 @@ namespace Bind
 
         private static void Main(string[] arguments)
         {
+            #if !NET_CORE
             Debug.Listeners.Clear();
             Debug.Listeners.Add(new TextWriterTraceListener(Console.Out));
             Debug.AutoFlush = true;
+            #endif
             Trace.Listeners.Clear();
             Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
             Trace.AutoFlush = true;