[mapguide-commits] r6969 - in branches/2.4/MgDev/Desktop/Samples: . SampleExtension

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Aug 30 10:23:14 PDT 2012


Author: jng
Date: 2012-08-30 10:23:14 -0700 (Thu, 30 Aug 2012)
New Revision: 6969

Modified:
   branches/2.4/MgDev/Desktop/Samples/SampleExtension/SampleExtension.Net40.csproj
   branches/2.4/MgDev/Desktop/Samples/samples_readme.txt
Log:
Fix VS2010 sample extension output directory and update readme.

Modified: branches/2.4/MgDev/Desktop/Samples/SampleExtension/SampleExtension.Net40.csproj
===================================================================
--- branches/2.4/MgDev/Desktop/Samples/SampleExtension/SampleExtension.Net40.csproj	2012-08-30 17:18:21 UTC (rev 6968)
+++ branches/2.4/MgDev/Desktop/Samples/SampleExtension/SampleExtension.Net40.csproj	2012-08-30 17:23:14 UTC (rev 6969)
@@ -45,7 +45,7 @@
     <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
-    <OutputPath>..\bin\Release\</OutputPath>
+    <OutputPath>bin\x86\Release\</OutputPath>
     <DefineConstants>TRACE</DefineConstants>
     <Optimize>true</Optimize>
     <DebugType>pdbonly</DebugType>
@@ -268,6 +268,20 @@
     <Content Include="Resources\Redline.txt" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <PropertyGroup>
+    <PostBuildEvent>if not exist "$(TargetDir)FDO" md "$(TargetDir)FDO"
+xcopy /s /y "$(SolutionDir)Lib\FDO" "$(TargetDir)FDO"
+if not exist "$(TargetDir)Dictionaries" md "$(TargetDir)Dictionaries"
+xcopy /s /y "$(SolutionDir)Lib\Dictionaries" "$(TargetDir)Dictionaries"
+if not exist "$(TargetDir)Resources" md "$(TargetDir)Resources"
+xcopy /s /y "$(SolutionDir)Lib\Resources" "$(TargetDir)Resources"
+if not exist "$(TargetDir)Schema" md "$(TargetDir)Schema"
+xcopy /s /y "$(SolutionDir)Lib\Schema" "$(TargetDir)Schema"
+copy /y "$(SolutionDir)Lib\*.dll" "$(TargetDir)"
+copy /y "$(SolutionDir)Lib\Platform.ini" "$(TargetDir)"
+copy /y "$(SolutionDir)Lib\MgAppLayout.exe" "$(TargetDir)"
+copy /y "$(SolutionDir)Lib\Sheboygan.AppLayout" "$(TargetDir)"</PostBuildEvent>
+  </PropertyGroup>
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.
   <Target Name="BeforeBuild">

Modified: branches/2.4/MgDev/Desktop/Samples/samples_readme.txt
===================================================================
--- branches/2.4/MgDev/Desktop/Samples/samples_readme.txt	2012-08-30 17:18:21 UTC (rev 6968)
+++ branches/2.4/MgDev/Desktop/Samples/samples_readme.txt	2012-08-30 17:23:14 UTC (rev 6969)
@@ -8,6 +8,8 @@
 
 Basically, you can't use a .net 4.0 build of mg-desktop on a VS2008 solution
 
+Note that in order to use mg-desktop, your main executable must have CPU architecture set to x86 (because these are .net wrappers to 32-bit unmanaged dlls). All the executable projects in this solution have their CPU architecture set to x86
+
 BasicSample
 ===========
 



More information about the mapguide-commits mailing list