OSDN Git Service

わかりにくいので、ENABLE_AUTOMATIONシンボルを定義した場合だけオートメーション関係のクラスを使うようにした
authorkonekoneko <test2214@hotmail.co.jp>
Thu, 15 Oct 2015 14:50:42 +0000 (23:50 +0900)
committerkonekoneko <test2214@hotmail.co.jp>
Thu, 15 Oct 2015 14:50:42 +0000 (23:50 +0900)
Core/Automaion/FooTextBoxAutomationPeer.cs
Metro/FooEditEngine/FooEditEngine.csproj
WPF/FooEditEngine/FooEditEngine.csproj

index 4b4b497..ad08d10 100644 (file)
@@ -33,7 +33,7 @@ using FooEditEngine.WPF;
 
 namespace FooEditEngine
 {
-#if METRO || WPF
+#if ENABLE_AUTMATION
     /// <summary>
     /// Automation Peer class for CustomInputBox2.  
     /// 
index cc1c1ee..56ce474 100644 (file)
@@ -23,7 +23,7 @@
     <DebugType>full</DebugType>
     <Optimize>false</Optimize>
     <OutputPath>bin\Debug\</OutputPath>
-    <DefineConstants>TRACE;DEBUG;NETFX_CORE,METRO</DefineConstants>
+    <DefineConstants>TRACE;DEBUG;NETFX_CORE,METRO,ENABLE_AUTMATION</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <DocumentationFile>bin\Debug\FooEditEngine.Metro.XML</DocumentationFile>
@@ -32,7 +32,7 @@
     <DebugType>pdbonly</DebugType>
     <Optimize>true</Optimize>
     <OutputPath>bin\Release\</OutputPath>
-    <DefineConstants>TRACE;NETFX_CORE,METRO</DefineConstants>
+    <DefineConstants>TRACE;NETFX_CORE,METRO,ENABLE_AUTMATION</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <DocumentationFile>bin\Release\FooEditEngine.Metro.XML</DocumentationFile>
index 9e889d9..fdce970 100644 (file)
@@ -22,7 +22,7 @@
     <DebugType>full</DebugType>
     <Optimize>false</Optimize>
     <OutputPath>bin\Debug\</OutputPath>
-    <DefineConstants>TRACE;DEBUG;WPF</DefineConstants>
+    <DefineConstants>TRACE;DEBUG;WPF,ENABLE_AUTMATION</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <DocumentationFile>bin\Debug\FooEditEngine.WPF.XML</DocumentationFile>
@@ -32,7 +32,7 @@
     <DebugType>pdbonly</DebugType>
     <Optimize>true</Optimize>
     <OutputPath>bin\Release\</OutputPath>
-    <DefineConstants>TRACE;WPF</DefineConstants>
+    <DefineConstants>TRACE;WPF,ENABLE_AUTMATION</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <Prefer32Bit>false</Prefer32Bit>