[mapguide-commits] r7093 - in branches/2.4/MgDev: . nuget nuget/x64/api-base nuget/x64/api-base/tools/net40 nuget/x64/api-desktop nuget/x64/api-desktop/tools/net40 nuget/x64/api-web nuget/x64/api-web/tools/net40 nuget/x86/api-base nuget/x86/api-base/tools/net40 nuget/x86/api-desktop nuget/x86/api-desktop/tools/net40 nuget/x86/api-web nuget/x86/api-web/tools/net40

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Oct 8 02:01:56 PDT 2012


Author: jng
Date: 2012-10-08 02:01:55 -0700 (Mon, 08 Oct 2012)
New Revision: 7093

Added:
   branches/2.4/MgDev/nuget/api-base-readme.txt
   branches/2.4/MgDev/nuget/api-desktop-readme.txt
   branches/2.4/MgDev/nuget/api-desktop-viewer-readme.txt
   branches/2.4/MgDev/nuget/api-web-readme.txt
Removed:
   branches/2.4/MgDev/nuget/x64/api-base/content/
   branches/2.4/MgDev/nuget/x64/api-desktop/content/
   branches/2.4/MgDev/nuget/x64/api-web/content/
   branches/2.4/MgDev/nuget/x86/api-base/content/
   branches/2.4/MgDev/nuget/x86/api-desktop/content/
   branches/2.4/MgDev/nuget/x86/api-web/content/
Modified:
   branches/2.4/MgDev/nuget/x64/api-base/tools/net40/GetMgApiBasePostBuildCmd.ps1
   branches/2.4/MgDev/nuget/x64/api-desktop/tools/net40/GetMgDesktopPostBuildCmd.ps1
   branches/2.4/MgDev/nuget/x64/api-web/tools/net40/GetMgWebApiPostBuildCmd.ps1
   branches/2.4/MgDev/nuget/x86/api-base/tools/net40/GetMgApiBasePostBuildCmd.ps1
   branches/2.4/MgDev/nuget/x86/api-desktop/tools/net40/GetMgDesktopPostBuildCmd.ps1
   branches/2.4/MgDev/nuget/x86/api-web/tools/net40/GetMgWebApiPostBuildCmd.ps1
   branches/2.4/MgDev/nuget_prepare.bat
Log:
Add nuget package readmes. Also do not put our files under the package content directory (as we don't want to pollute our projects with redundant files). Instead, modify our package post-builds to copy the required files to the project's output directory from the package's source directory

Added: branches/2.4/MgDev/nuget/api-base-readme.txt
===================================================================
--- branches/2.4/MgDev/nuget/api-base-readme.txt	                        (rev 0)
+++ branches/2.4/MgDev/nuget/api-base-readme.txt	2012-10-08 09:01:55 UTC (rev 7093)
@@ -0,0 +1,27 @@
+mapguide-api-base README
+=======================
+
+This is the NuGet package for the MapGuide Platform API. This is the base package that is required by implementations of the MapGuide Platform API, which are currently:
+
+ - mapguide-api-web
+ - mg-desktop-net40 
+
+This package contains the Foundation, Geometry and PlatformBase components of the MapGuide Platform API.
+
+Dependencies
+============
+
+- mapguide-api-base
+
+Installation Notes
+==================
+
+This package will add the required project references to your application:
+
+ - OSGeo.MapGuide.Foundation
+ - OSGeo.MapGuide.Geometry
+ - OSGeo.MapGuide.PlatformBase
+
+The ability to use the classes within these libraries depends on how you initialized the platform. See installation notes for (mapguide-api-web) or (mg-desktop-net40).
+
+If you are using this package on its own (for example, you want to use the MgCoordinateSystem classes), then the only initialization requirement is to define the MENTOR_DICTIONARY_PATH environment variable before you use any MgCoordinateSystem class. This variable should be the path to your CS-Map coordinate system dictionaries
\ No newline at end of file

Added: branches/2.4/MgDev/nuget/api-desktop-readme.txt
===================================================================
--- branches/2.4/MgDev/nuget/api-desktop-readme.txt	                        (rev 0)
+++ branches/2.4/MgDev/nuget/api-desktop-readme.txt	2012-10-08 09:01:55 UTC (rev 7093)
@@ -0,0 +1,28 @@
+mg-desktop-net40 README
+=======================
+
+This is the NuGet package for the mg-desktop API. This does not include the WinForms-based map viewer control. Install the mg-desktop-viewer-net40 package if you require this component.
+
+Dependencies
+============
+
+- mapguide-api-base
+
+Installation Notes
+==================
+
+This package will add the required project references to your application:
+
+ - OSGeo.MapGuide.Desktop
+
+This package does not include the CS-Map coordinate system dictionaries. It is assumed you have an existing copy of these dictionaries that will be copied to the Dictionaries subdirectory of your project's output directory.
+
+After package installation, you may need to edit Platform.ini to ensure all the paths defined point to the correct locations
+
+As part of your application's startup, you have to call:
+
+ MgdPlatform.Initialize("<path-to>\\Platform.ini");
+
+Before you can use most parts of the MapGuide API.
+
+======= CHANGELOG ==========

Added: branches/2.4/MgDev/nuget/api-desktop-viewer-readme.txt
===================================================================
--- branches/2.4/MgDev/nuget/api-desktop-viewer-readme.txt	                        (rev 0)
+++ branches/2.4/MgDev/nuget/api-desktop-viewer-readme.txt	2012-10-08 09:01:55 UTC (rev 7093)
@@ -0,0 +1,32 @@
+mg-desktop-viewer-net40 README
+==============================
+
+This is the NuGet package for the mg-desktop viewer API.
+
+Dependencies
+============
+
+- mapguide-api-base
+- mg-desktop-net40
+
+Installation Notes
+==================
+
+This package will add the required project references to your application:
+
+ - OSGeo.MapGuide.Viewer
+ - OSGeo.MapGuide.Viewer.Desktop
+
+Ensure that your executable project's <Platform Target> is updated to match the architecture-specific package you installed. eg. If you installed the x64 package, you must set the <Platform Target> to be x64. Setting it to x86 or AnyCPU may cause a System.BadImageFormatException to be thrown when loading the mg-desktop dlls
+
+This package does not include the CS-Map coordinate system dictionaries. It is assumed you have an existing copy of these dictionaries that will be copied to the Dictionaries subdirectory of your project's output directory.
+
+After package installation, you may need to edit Platform.ini to ensure all the paths defined point to the correct locations
+
+As part of your application's startup, you have to call:
+
+ MgdPlatform.Initialize("<path-to>\\Platform.ini");
+
+Before you can use most parts of the MapGuide API.
+
+======= CHANGELOG ==========

Added: branches/2.4/MgDev/nuget/api-web-readme.txt
===================================================================
--- branches/2.4/MgDev/nuget/api-web-readme.txt	                        (rev 0)
+++ branches/2.4/MgDev/nuget/api-web-readme.txt	2012-10-08 09:01:55 UTC (rev 7093)
@@ -0,0 +1,27 @@
+mapguide-api-web README
+=======================
+
+This is the NuGet package for the MapGuide Web Extensions API. This contains the MapGuideCommon and Web parts of the MapGuide API.
+
+Dependencies
+============
+
+- mapguide-api-base
+
+Installation Notes
+==================
+
+This package will add the required project references to your application:
+
+ - OSGeo.MapGuide.MapGuideCommmon
+ - OSGeo.MapGuide.Web
+
+After package installation, copy over the webconfig.ini from your MapGuide Open Source installation and make sure this file is part of your project output.
+
+As part of your application's startup, you have to call:
+
+ MapGuideApi.MgInitializeWebTier("<path-to>\\webconfig.ini");
+
+Before you can use most parts of the MapGuide API. For Web Applications (ASP.net), you can generally call this in the Application_Start() method of your Global.asax
+
+If you installed the x64 package, in order to be able to debug your MapGuide Application, you must have your application use <Local IIS> instead of the built-in web server. This normally requires you run Visual Studio as administrator. The reason for this is simply that the built-in web server is a 32-bit process which cannot load your MapGuide 64-bit dlls.
\ No newline at end of file

Modified: branches/2.4/MgDev/nuget/x64/api-base/tools/net40/GetMgApiBasePostBuildCmd.ps1
===================================================================
--- branches/2.4/MgDev/nuget/x64/api-base/tools/net40/GetMgApiBasePostBuildCmd.ps1	2012-10-08 04:22:11 UTC (rev 7092)
+++ branches/2.4/MgDev/nuget/x64/api-base/tools/net40/GetMgApiBasePostBuildCmd.ps1	2012-10-08 09:01:55 UTC (rev 7093)
@@ -1,7 +1,7 @@
 $solutionDir = [System.IO.Path]::GetDirectoryName($dte.Solution.FullName) + "\"
 $path = $installPath.Replace($solutionDir, "`$(SolutionDir)")
+$contentDir = Join-Path $path "mapguide-api-base"
+$files = $(Join-Path $contentDir "*.*")
 
 $MgApiBasePostBuildCmd = "
-if not exist `"`$(TargetDir)Dictionaries`" md `"`$(TargetDir)Dictionaries`"
-xcopy /s /y `"`$(ProjectDir)mapguide-api-base\Dictionaries`" `"`$(TargetDir)Dictionaries`"
-copy /y `"`$(ProjectDir)mapguide-api-base\*.dll`" `"`$(TargetDir)`""
\ No newline at end of file
+xcopy /s /y `"$files`" `"`$(TargetDir)`""
\ No newline at end of file

Modified: branches/2.4/MgDev/nuget/x64/api-desktop/tools/net40/GetMgDesktopPostBuildCmd.ps1
===================================================================
--- branches/2.4/MgDev/nuget/x64/api-desktop/tools/net40/GetMgDesktopPostBuildCmd.ps1	2012-10-08 04:22:11 UTC (rev 7092)
+++ branches/2.4/MgDev/nuget/x64/api-desktop/tools/net40/GetMgDesktopPostBuildCmd.ps1	2012-10-08 09:01:55 UTC (rev 7093)
@@ -1,12 +1,7 @@
 $solutionDir = [System.IO.Path]::GetDirectoryName($dte.Solution.FullName) + "\"
 $path = $installPath.Replace($solutionDir, "`$(SolutionDir)")
+$contentDir = Join-Path $path "mg-desktop"
+$files = $(Join-Path $contentDir "*.*")
 
 $MgDesktopPostBuildCmd = "
-if not exist `"`$(TargetDir)FDO`" md `"`$(TargetDir)FDO`"
-xcopy /s /y `"`$(ProjectDir)mg-desktop\FDO`" `"`$(TargetDir)FDO`"
-if not exist `"`$(TargetDir)Resources`" md `"`$(TargetDir)Resources`"
-xcopy /s /y `"`$(ProjectDir)mg-desktop\Resources`" `"`$(TargetDir)Resources`"
-if not exist `"`$(TargetDir)Schema`" md `"`$(TargetDir)Schema`"
-xcopy /s /y `"`$(ProjectDir)mg-desktop\Schema`" `"`$(TargetDir)Schema`"
-copy /y `"`$(ProjectDir)mg-desktop\*.dll`" `"`$(TargetDir)`"
-copy /y `"`$(ProjectDir)mg-desktop\Platform.ini`" `"`$(TargetDir)`""
\ No newline at end of file
+xcopy /s /y `"$files`" `"`$(TargetDir)`""
\ No newline at end of file

Modified: branches/2.4/MgDev/nuget/x64/api-web/tools/net40/GetMgWebApiPostBuildCmd.ps1
===================================================================
--- branches/2.4/MgDev/nuget/x64/api-web/tools/net40/GetMgWebApiPostBuildCmd.ps1	2012-10-08 04:22:11 UTC (rev 7092)
+++ branches/2.4/MgDev/nuget/x64/api-web/tools/net40/GetMgWebApiPostBuildCmd.ps1	2012-10-08 09:01:55 UTC (rev 7093)
@@ -1,5 +1,7 @@
 $solutionDir = [System.IO.Path]::GetDirectoryName($dte.Solution.FullName) + "\"
 $path = $installPath.Replace($solutionDir, "`$(SolutionDir)")
+$contentDir = Join-Path $path "mapguide-api-web"
+$files = $(Join-Path $contentDir "*.*")
 
 $MgWebApiPostBuildCmd = "
-copy /y `"`$(ProjectDir)mapguide-api-web\*.dll`" `"`$(TargetDir)`""
\ No newline at end of file
+xcopy /s /y `"$files`" `"`$(TargetDir)`""
\ No newline at end of file

Modified: branches/2.4/MgDev/nuget/x86/api-base/tools/net40/GetMgApiBasePostBuildCmd.ps1
===================================================================
--- branches/2.4/MgDev/nuget/x86/api-base/tools/net40/GetMgApiBasePostBuildCmd.ps1	2012-10-08 04:22:11 UTC (rev 7092)
+++ branches/2.4/MgDev/nuget/x86/api-base/tools/net40/GetMgApiBasePostBuildCmd.ps1	2012-10-08 09:01:55 UTC (rev 7093)
@@ -1,7 +1,7 @@
 $solutionDir = [System.IO.Path]::GetDirectoryName($dte.Solution.FullName) + "\"
 $path = $installPath.Replace($solutionDir, "`$(SolutionDir)")
+$contentDir = Join-Path $path "mapguide-api-base"
+$files = $(Join-Path $contentDir "*.*")
 
 $MgApiBasePostBuildCmd = "
-if not exist `"`$(TargetDir)Dictionaries`" md `"`$(TargetDir)Dictionaries`"
-xcopy /s /y `"`$(ProjectDir)mapguide-api-base\Dictionaries`" `"`$(TargetDir)Dictionaries`"
-copy /y `"`$(ProjectDir)mapguide-api-base\*.dll`" `"`$(TargetDir)`""
\ No newline at end of file
+xcopy /s /y `"$files`" `"`$(TargetDir)`""
\ No newline at end of file

Modified: branches/2.4/MgDev/nuget/x86/api-desktop/tools/net40/GetMgDesktopPostBuildCmd.ps1
===================================================================
--- branches/2.4/MgDev/nuget/x86/api-desktop/tools/net40/GetMgDesktopPostBuildCmd.ps1	2012-10-08 04:22:11 UTC (rev 7092)
+++ branches/2.4/MgDev/nuget/x86/api-desktop/tools/net40/GetMgDesktopPostBuildCmd.ps1	2012-10-08 09:01:55 UTC (rev 7093)
@@ -1,12 +1,7 @@
 $solutionDir = [System.IO.Path]::GetDirectoryName($dte.Solution.FullName) + "\"
 $path = $installPath.Replace($solutionDir, "`$(SolutionDir)")
+$contentDir = Join-Path $path "mg-desktop"
+$files = $(Join-Path $contentDir "*.*")
 
 $MgDesktopPostBuildCmd = "
-if not exist `"`$(TargetDir)FDO`" md `"`$(TargetDir)FDO`"
-xcopy /s /y `"`$(ProjectDir)mg-desktop\FDO`" `"`$(TargetDir)FDO`"
-if not exist `"`$(TargetDir)Resources`" md `"`$(TargetDir)Resources`"
-xcopy /s /y `"`$(ProjectDir)mg-desktop\Resources`" `"`$(TargetDir)Resources`"
-if not exist `"`$(TargetDir)Schema`" md `"`$(TargetDir)Schema`"
-xcopy /s /y `"`$(ProjectDir)mg-desktop\Schema`" `"`$(TargetDir)Schema`"
-copy /y `"`$(ProjectDir)mg-desktop\*.dll`" `"`$(TargetDir)`"
-copy /y `"`$(ProjectDir)mg-desktop\Platform.ini`" `"`$(TargetDir)`""
\ No newline at end of file
+xcopy /s /y `"$files`" `"`$(TargetDir)`""
\ No newline at end of file

Modified: branches/2.4/MgDev/nuget/x86/api-web/tools/net40/GetMgWebApiPostBuildCmd.ps1
===================================================================
--- branches/2.4/MgDev/nuget/x86/api-web/tools/net40/GetMgWebApiPostBuildCmd.ps1	2012-10-08 04:22:11 UTC (rev 7092)
+++ branches/2.4/MgDev/nuget/x86/api-web/tools/net40/GetMgWebApiPostBuildCmd.ps1	2012-10-08 09:01:55 UTC (rev 7093)
@@ -1,5 +1,7 @@
 $solutionDir = [System.IO.Path]::GetDirectoryName($dte.Solution.FullName) + "\"
 $path = $installPath.Replace($solutionDir, "`$(SolutionDir)")
+$contentDir = Join-Path $path "mapguide-api-web"
+$files = $(Join-Path $contentDir "*.*")
 
 $MgWebApiPostBuildCmd = "
-copy /y `"`$(ProjectDir)mapguide-api-web\*.dll`" `"`$(TargetDir)`""
\ No newline at end of file
+xcopy /s /y `"$files`" `"`$(TargetDir)`""
\ No newline at end of file

Modified: branches/2.4/MgDev/nuget_prepare.bat
===================================================================
--- branches/2.4/MgDev/nuget_prepare.bat	2012-10-08 04:22:11 UTC (rev 7092)
+++ branches/2.4/MgDev/nuget_prepare.bat	2012-10-08 09:01:55 UTC (rev 7093)
@@ -22,15 +22,20 @@
 SET NUGET_ROOT=%CD%\nuget
 SET NUGET_BASEDIR=%NUGET_ROOT%\%MG_CPU%
 SET NUGET_TARGET=net40
-SET NUGET_CONTENT_BASE=%NUGET_BASEDIR%\api-base\content\%NUGET_TARGET%\mapguide-api-base
-SET NUGET_LIB_BASE=%NUGET_BASEDIR%\api-base\lib\%NUGET_TARGET%
-SET NUGET_CONTENT_DESKTOP=%NUGET_BASEDIR%\api-desktop\content\%NUGET_TARGET%\mg-desktop
-SET NUGET_LIB_DESKTOP=%NUGET_BASEDIR%\api-desktop\lib\%NUGET_TARGET%
-SET NUGET_CONTENT_VIEWER=%NUGET_BASEDIR%\api-desktop-viewer\content\%NUGET_TARGET%\mg-desktop-viewer
-SET NUGET_LIB_VIEWER=%NUGET_BASEDIR%\api-desktop-viewer\lib\%NUGET_TARGET%
-SET NUGET_CONTENT_WEB=%NUGET_BASEDIR%\api-web\content\%NUGET_TARGET%\mapguide-api-web
-SET NUGET_LIB_WEB=%NUGET_BASEDIR%\api-web\lib\%NUGET_TARGET%
+SET NUGET_BASE_ROOT=%NUGET_BASEDIR%\api-base
+SET NUGET_CONTENT_BASE=%NUGET_BASE_ROOT%\mapguide-api-base
+SET NUGET_LIB_BASE=%NUGET_BASE_ROOT%\lib\%NUGET_TARGET%
+SET NUGET_DESKTOP_ROOT=%NUGET_BASEDIR%\api-desktop
+SET NUGET_CONTENT_DESKTOP=%NUGET_DESKTOP_ROOT%\mg-desktop
+SET NUGET_LIB_DESKTOP=%NUGET_DESKTOP_ROOT%\lib\%NUGET_TARGET%
+SET NUGET_VIEWER_ROOT=%NUGET_BASEDIR%\api-desktop-viewer
+SET NUGET_CONTENT_VIEWER=%NUGET_VIEWER_ROOT%\mg-desktop-viewer
+SET NUGET_LIB_VIEWER=%NUGET_VIEWER_ROOT%\lib\%NUGET_TARGET%
+SET NUGET_WEB_ROOT=%NUGET_BASEDIR%\api-web
+SET NUGET_CONTENT_WEB=%NUGET_WEB_ROOT%\mapguide-api-web
+SET NUGET_LIB_WEB=%NUGET_WEB_ROOT%\lib\%NUGET_TARGET%
 SET WEB_BASEDIR=%CD%\Web\bin\%TYPEBUILD%
+SET DESKTOP_SRC=%CD%\Desktop\MgDesktop
 SET DESKTOP_BASEDIR=%CD%\%TYPEBUILD%\Desktop
 SET SIGNER_ROOT=%CD%\Desktop\DesktopUnmanagedApi\DotNet
 
@@ -53,33 +58,37 @@
     echo Signer root directory: %SIGNER_ROOT%
 )
 
+IF NOT EXIST "%NUGET_CONTENT_BASE%" MKDIR "%NUGET_CONTENT_BASE%"
+IF NOT EXIST "%NUGET_CONTENT_DESKTOP%" MKDIR "%NUGET_CONTENT_DESKTOP%"
+IF NOT EXIST "%NUGET_CONTENT_WEB%" MKDIR "%NUGET_CONTENT_WEB%"
+
 echo [install]: Copy api-base files to nuget staging
-%XCOPY% "%DESKTOP_BASEDIR%\*" "%NUGET_CONTENT_BASE%" /EXCLUDE:package_excludes.txt+base_package_excludes.txt
-copy /y "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Foundation.dll" "%NUGET_LIB_BASE%"
-copy /y "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Geometry.dll" "%NUGET_LIB_BASE%"
-copy /y "%DESKTOP_BASEDIR%\OSGeo.MapGuide.PlatformBase.dll" "%NUGET_LIB_BASE%"
-copy /y "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Foundation.xml" "%NUGET_LIB_BASE%"
-copy /y "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Geometry.xml" "%NUGET_LIB_BASE%"
-copy /y "%DESKTOP_BASEDIR%\OSGeo.MapGuide.PlatformBase.xml" "%NUGET_LIB_BASE%"
+xcopy /S /Y "%DESKTOP_BASEDIR%\*" "%NUGET_CONTENT_BASE%" /EXCLUDE:package_excludes.txt+base_package_excludes.txt
+xcopy /Y /I "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Foundation.dll" "%NUGET_LIB_BASE%"
+xcopy /Y /I "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Geometry.dll" "%NUGET_LIB_BASE%"
+xcopy /Y /I "%DESKTOP_BASEDIR%\OSGeo.MapGuide.PlatformBase.dll" "%NUGET_LIB_BASE%"
+xcopy /Y /I "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Foundation.xml" "%NUGET_LIB_BASE%"
+xcopy /Y /I "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Geometry.xml" "%NUGET_LIB_BASE%"
+xcopy /Y /I "%DESKTOP_BASEDIR%\OSGeo.MapGuide.PlatformBase.xml" "%NUGET_LIB_BASE%"
 echo [install]: Copy api-desktop files to nuget staging
-%XCOPY% "%DESKTOP_BASEDIR%\*" "%NUGET_CONTENT_DESKTOP%" /EXCLUDE:package_excludes.txt+desktop_package_excludes.txt
-copy /y "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Desktop.dll" "%NUGET_LIB_DESKTOP%"
+xcopy /S /Y "%DESKTOP_BASEDIR%\*" "%NUGET_CONTENT_DESKTOP%" /EXCLUDE:package_excludes.txt+desktop_package_excludes.txt
+xcopy /Y /I "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Desktop.dll" "%NUGET_LIB_DESKTOP%"
 echo [install]: Copy api-web files to nuget staging
 REM Just in case
 DoxyTransform.exe dotnet "%MG_DOC_XML%" "%WEB_BASEDIR%"
-copy /y "%WEB_BASEDIR%\MgWebApp.dll" "%NUGET_CONTENT_WEB%"
-copy /y "%WEB_BASEDIR%\MgWebSupport.dll" "%NUGET_CONTENT_WEB%"
-copy /y "%WEB_BASEDIR%\MgHttpHandler.dll" "%NUGET_CONTENT_WEB%"
-copy /y "%WEB_BASEDIR%\MgMapGuideCommon.dll" "%NUGET_CONTENT_WEB%"
-copy /y "%WEB_BASEDIR%\MapGuideCommonUnmanagedApi.dll" "%NUGET_CONTENT_WEB%"
-copy /y "%WEB_BASEDIR%\lib_json.dll" "%NUGET_CONTENT_WEB%"
-copy /y "%WEB_BASEDIR%\WebUnmanagedApi.dll" "%NUGET_CONTENT_WEB%"
-copy /y "%WEB_BASEDIR%\OSGeo.MapGuide.MapGuideCommon.dll" "%NUGET_LIB_WEB%"
-copy /y "%WEB_BASEDIR%\OSGeo.MapGuide.Web.dll" "%NUGET_LIB_WEB%"
-copy /y "%WEB_BASEDIR%\OSGeo.MapGuide.MapGuideCommon.xml" "%NUGET_LIB_WEB%"
-copy /y "%WEB_BASEDIR%\OSGeo.MapGuide.Web.xml" "%NUGET_LIB_WEB%"
-copy /y "%SIGNER_ROOT%\SignMapGuideApi.exe" "%NUGET_LIB_WEB%"
-copy /y "%SIGNER_ROOT%\maestroapi.key" "%NUGET_LIB_WEB%"
+xcopy /Y /I "%WEB_BASEDIR%\MgWebApp.dll" "%NUGET_CONTENT_WEB%"
+xcopy /Y /I "%WEB_BASEDIR%\MgWebSupport.dll" "%NUGET_CONTENT_WEB%"
+xcopy /Y /I "%WEB_BASEDIR%\MgHttpHandler.dll" "%NUGET_CONTENT_WEB%"
+xcopy /Y /I "%WEB_BASEDIR%\MgMapGuideCommon.dll" "%NUGET_CONTENT_WEB%"
+xcopy /Y /I "%WEB_BASEDIR%\MapGuideCommonUnmanagedApi.dll" "%NUGET_CONTENT_WEB%"
+xcopy /Y /I "%WEB_BASEDIR%\lib_json.dll" "%NUGET_CONTENT_WEB%"
+xcopy /Y /I "%WEB_BASEDIR%\WebUnmanagedApi.dll" "%NUGET_CONTENT_WEB%"
+xcopy /Y /I "%WEB_BASEDIR%\OSGeo.MapGuide.MapGuideCommon.dll" "%NUGET_LIB_WEB%"
+xcopy /Y /I "%WEB_BASEDIR%\OSGeo.MapGuide.Web.dll" "%NUGET_LIB_WEB%"
+xcopy /Y /I "%WEB_BASEDIR%\OSGeo.MapGuide.MapGuideCommon.xml" "%NUGET_LIB_WEB%"
+xcopy /Y /I "%WEB_BASEDIR%\OSGeo.MapGuide.Web.xml" "%NUGET_LIB_WEB%"
+xcopy /Y /I "%SIGNER_ROOT%\SignMapGuideApi.exe" "%NUGET_LIB_WEB%"
+xcopy /Y /I "%SIGNER_ROOT%\maestroapi.key" "%NUGET_LIB_WEB%"
 echo [build]: Signing MapGuide API assemblies
 pushd "%NUGET_LIB_WEB%"
 SignMapGuideApi.exe
@@ -88,9 +97,9 @@
 del SignMapGuideApi.exe
 popd
 echo [install]: Copy api-desktop-viewer files to nuget staging
-copy /y "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Viewer.xml" "%NUGET_LIB_VIEWER%"
-copy /y "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Viewer.dll" "%NUGET_LIB_VIEWER%"
-copy /y "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Viewer.Desktop.dll" "%NUGET_LIB_VIEWER%"
+xcopy /Y /I "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Viewer.xml" "%NUGET_LIB_VIEWER%"
+xcopy /Y /I "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Viewer.dll" "%NUGET_LIB_VIEWER%"
+xcopy /Y /I "%DESKTOP_BASEDIR%\OSGeo.MapGuide.Viewer.Desktop.dll" "%NUGET_LIB_VIEWER%"
 echo [prepare]: Nuspec files for %MG_VERSION% (%MG_CPU%)
 REM prep nuspec files
 pushd "%NUGET_ROOT%"
@@ -107,6 +116,13 @@
 call BatchSubstitute.bat MG_CPU %MG_CPU% mg-desktop-viewer-net40.nuspec.tpl > temp.txt
 call BatchSubstitute.bat MG_VERSION %MG_VERSION% temp.txt > mg-desktop-viewer-net40-%MG_CPU%.nuspec
 del temp.txt
+echo [prepare]: NuGet Package readmes
+type api-base-readme.txt > "%NUGET_BASE_ROOT%\readme.txt"
+type api-desktop-readme.txt > "%NUGET_DESKTOP_ROOT%\readme.txt"
+type "%DESKTOP_SRC%\changelog.txt" >> "%NUGET_DESKTOP_ROOT%\readme.txt"
+type api-desktop-viewer-readme.txt > "%NUGET_VIEWER_ROOT%\readme.txt"
+type "%DESKTOP_SRC%\changelog.txt" >> "%NUGET_VIEWER_ROOT%\readme.txt"
+type api-web-readme.txt > "%NUGET_WEB_ROOT%\readme.txt"
 popd
 echo mg-desktop is ready for nuget packaging and publishing
 goto quit



More information about the mapguide-commits mailing list