[winforms] Small optimizations, use properties that do not compute values
[mono.git] / mcs / class / Managed.Windows.Forms / build-csproj2k5
index c7cdcaff7d9e64662c53b00e3e914da544b183b2..4e444186a454516e799facb9bba633a98b92e6a6 100755 (executable)
@@ -49,7 +49,7 @@ SWFhead()
     <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
     <ConfigurationOverrideFile>
     </ConfigurationOverrideFile>
-    <DefineConstants>NET_1_1 NET_2_0</DefineConstants>
+    <DefineConstants>NET_1_1 NET_2_0 MWF_ON_MSRUNTIME</DefineConstants>
     <DocumentationFile>
     </DocumentationFile>
     <DebugSymbols>true</DebugSymbols>
@@ -73,7 +73,7 @@ SWFhead()
     <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
     <ConfigurationOverrideFile>
     </ConfigurationOverrideFile>
-    <DefineConstants>NET_1_1 NET_2_0</DefineConstants>
+    <DefineConstants>NET_1_1 NET_2_0 MWF_ON_MSRUNTIME</DefineConstants>
     <DocumentationFile>
     </DocumentationFile>
     <DebugSymbols>false</DebugSymbols>
@@ -97,7 +97,7 @@ SWFhead()
     <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
     <ConfigurationOverrideFile>
     </ConfigurationOverrideFile>
-    <DefineConstants>NET_1_1 ONLY_1_1</DefineConstants>
+    <DefineConstants>NET_1_1 ONLY_1_1 MWF_ON_MSRUNTIME</DefineConstants>
     <DocumentationFile>
     </DocumentationFile>
     <DebugSymbols>true</DebugSymbols>
@@ -121,7 +121,7 @@ SWFhead()
     <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
     <ConfigurationOverrideFile>
     </ConfigurationOverrideFile>
-    <DefineConstants>NET_1_1 ONLY_1_1</DefineConstants>
+    <DefineConstants>NET_1_1 ONLY_1_1 MWF_ON_MSRUNTIME</DefineConstants>
     <DocumentationFile>
     </DocumentationFile>
     <DebugSymbols>false</DebugSymbols>
@@ -231,9 +231,10 @@ echo "  <ItemGroup>"
        INCLUDE=`echo $INCLUDE | sed 's/\//\\\\/'`
 
        echo "    <EmbeddedResource Include=\"$INCLUDE\">"
-       echo "      <LogicalName>$LOGICALNAME</LogicalName>"
        if test "x$CUSTOMTOOLNAMESPACE" != "x"; then
-           echo "      <CustomToolNameSpace>$CUSTOMTOOLNAMESPACE</CustomToolNameSpace>"
+               echo "      <LogicalName>$CUSTOMTOOLNAMESPACE</LogicalName>"
+       else
+               echo "      <LogicalName>$LOGICALNAME</LogicalName>"
        fi
        echo "    </EmbeddedResource>"
     done