[mapguide-commits] r7310 - in trunk/MgDev/nuget: . MapGuideNuget MapGuideNuget/.nuget MapGuideNuget/CoordSysEnumTest MapGuideNuget/CoordSysEnumTest/Properties MapGuideNuget/CoordSysEnumTest64 MapGuideNuget/CoordSysEnumTest64/Properties MapGuideNuget/DesktopConsoleTest MapGuideNuget/DesktopConsoleTest/Properties MapGuideNuget/DesktopConsoleTest64 MapGuideNuget/DesktopConsoleTest64/Properties MapGuideNuget/DesktopViewerTest MapGuideNuget/DesktopViewerTest/Properties MapGuideNuget/DesktopViewerTest64 MapGuideNuget/DesktopViewerTest64/Properties MapGuideNuget/MapGuideNuget MapGuideNuget/MapGuideNuget/Properties MapGuideNuget/MapGuideNuget64 MapGuideNuget/MapGuideNuget64/Properties
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sun Jan 13 04:26:07 PST 2013
Author: jng
Date: 2013-01-13 04:26:06 -0800 (Sun, 13 Jan 2013)
New Revision: 7310
Added:
trunk/MgDev/nuget/MapGuideNuget/
trunk/MgDev/nuget/MapGuideNuget/.nuget/
trunk/MgDev/nuget/MapGuideNuget/.nuget/NuGet.Config
trunk/MgDev/nuget/MapGuideNuget/.nuget/NuGet.exe
trunk/MgDev/nuget/MapGuideNuget/.nuget/NuGet.targets
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/CoordSysEnumTest.csproj
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/MainForm.Designer.cs
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/MainForm.cs
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/MainForm.resx
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Program.cs
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/AssemblyInfo.cs
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Resources.Designer.cs
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Resources.resx
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Settings.Designer.cs
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Settings.settings
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/packages.config
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/CoordSysEnumTest.csproj
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/MainForm.Designer.cs
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/MainForm.cs
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/MainForm.resx
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Program.cs
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/AssemblyInfo.cs
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Resources.Designer.cs
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Resources.resx
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Settings.Designer.cs
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Settings.settings
trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/packages.config
trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/
trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/DesktopConsoleTest.csproj
trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/Program.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/Properties/
trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/Properties/AssemblyInfo.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/packages.config
trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/
trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/DesktopConsoleTest.csproj
trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/Program.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/Properties/
trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/Properties/AssemblyInfo.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/packages.config
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/DesktopViewerTest.csproj
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/MainForm.Designer.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/MainForm.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/MainForm.resx
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Program.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/AssemblyInfo.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Resources.Designer.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Resources.resx
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Settings.Designer.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Settings.settings
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/packages.config
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/DesktopViewerTest.csproj
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/MainForm.Designer.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/MainForm.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Program.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/AssemblyInfo.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Resources.Designer.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Resources.resx
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Settings.Designer.cs
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Settings.settings
trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/packages.config
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget.sln
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Default.aspx
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Default.aspx.cs
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Default.aspx.designer.cs
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Global.asax
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Global.asax.cs
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/MapGuideNuget.csproj
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/MapGuideNuget.csproj.user
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Properties/
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Properties/AssemblyInfo.cs
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Web.Debug.config
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Web.Release.config
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Web.config
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/packages.config
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/webconfig.ini
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64.sln
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Default.aspx
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Default.aspx.cs
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Default.aspx.designer.cs
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Global.asax
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Global.asax.cs
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/MapGuideNuget.csproj
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/MapGuideNuget.csproj.user
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Properties/
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Properties/AssemblyInfo.cs
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Web.Debug.config
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Web.Release.config
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Web.config
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/packages.config
trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/webconfig.ini
trunk/MgDev/nuget/MapGuideNuget/Web.sln
trunk/MgDev/nuget/MapGuideNuget/Web64.sln
Log:
Add a set of test applications (VS2012, .net 4.0) for testing our nuget packages
Property changes on: trunk/MgDev/nuget/MapGuideNuget
___________________________________________________________________
Added: bugtraq:number
+ true
Property changes on: trunk/MgDev/nuget/MapGuideNuget/.nuget
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/.nuget/NuGet.Config
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/.nuget/NuGet.Config (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/.nuget/NuGet.Config 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <solution>
+ <add key="disableSourceControlIntegration" value="true" />
+ </solution>
+</configuration>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/.nuget/NuGet.exe
===================================================================
(Binary files differ)
Property changes on: trunk/MgDev/nuget/MapGuideNuget/.nuget/NuGet.exe
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/MgDev/nuget/MapGuideNuget/.nuget/NuGet.targets
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/.nuget/NuGet.targets (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/.nuget/NuGet.targets 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
+
+ <!-- Enable the restore command to run before builds -->
+ <RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
+
+ <!-- Property that enables building a package from a project -->
+ <BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
+
+ <!-- Determines if package restore consent is required to restore packages -->
+ <RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
+
+ <!-- Download NuGet.exe if it does not already exist -->
+ <DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
+ </PropertyGroup>
+
+ <ItemGroup Condition=" '$(PackageSources)' == '' ">
+ <!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
+ <!--
+ <PackageSource Include="https://nuget.org/api/v2/" />
+ <PackageSource Include="https://my-nuget-source/nuget/" />
+ -->
+ </ItemGroup>
+
+ <PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
+ <!-- Windows specific commands -->
+ <NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
+ <PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
+ </PropertyGroup>
+
+ <PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
+ <!-- We need to launch nuget.exe with the mono command if we're not on windows -->
+ <NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
+ <PackagesConfig>packages.config</PackagesConfig>
+ </PropertyGroup>
+
+ <PropertyGroup>
+ <!-- NuGet command -->
+ <NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\nuget.exe</NuGetExePath>
+ <PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
+
+ <NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
+ <NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
+
+ <PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
+
+ <RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
+ <!-- Commands -->
+ <RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(RequireConsentSwitch) -solutionDir "$(SolutionDir) "</RestoreCommand>
+ <BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
+
+ <!-- We need to ensure packages are restored prior to assembly resolve -->
+ <ResolveReferencesDependsOn Condition="$(RestorePackages) == 'true'">
+ RestorePackages;
+ $(ResolveReferencesDependsOn);
+ </ResolveReferencesDependsOn>
+
+ <!-- Make the build depend on restore packages -->
+ <BuildDependsOn Condition="$(BuildPackage) == 'true'">
+ $(BuildDependsOn);
+ BuildPackage;
+ </BuildDependsOn>
+ </PropertyGroup>
+
+ <Target Name="CheckPrerequisites">
+ <!-- Raise an error if we're unable to locate nuget.exe -->
+ <Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
+ <SetEnvironmentVariable EnvKey="VisualStudioVersion" EnvValue="$(VisualStudioVersion)" Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' " />
+ <!--
+ Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
+ This effectively acts as a lock that makes sure that the download operation will only happen once and all
+ parallel builds will have to wait for it to complete.
+ -->
+ <MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT" />
+ </Target>
+
+ <Target Name="_DownloadNuGet">
+ <DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
+ </Target>
+
+ <Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(RestoreCommand)"
+ Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
+
+ <Exec Command="$(RestoreCommand)"
+ LogStandardErrorAsError="true"
+ Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
+ </Target>
+
+ <Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(BuildCommand)"
+ Condition=" '$(OS)' != 'Windows_NT' " />
+
+ <Exec Command="$(BuildCommand)"
+ LogStandardErrorAsError="true"
+ Condition=" '$(OS)' == 'Windows_NT' " />
+ </Target>
+
+ <UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
+ <ParameterGroup>
+ <OutputFilename ParameterType="System.String" Required="true" />
+ </ParameterGroup>
+ <Task>
+ <Reference Include="System.Core" />
+ <Using Namespace="System" />
+ <Using Namespace="System.IO" />
+ <Using Namespace="System.Net" />
+ <Using Namespace="Microsoft.Build.Framework" />
+ <Using Namespace="Microsoft.Build.Utilities" />
+ <Code Type="Fragment" Language="cs">
+ <![CDATA[
+ try {
+ OutputFilename = Path.GetFullPath(OutputFilename);
+
+ Log.LogMessage("Downloading latest version of NuGet.exe...");
+ WebClient webClient = new WebClient();
+ webClient.DownloadFile("https://nuget.org/nuget.exe", OutputFilename);
+
+ return true;
+ }
+ catch (Exception ex) {
+ Log.LogErrorFromException(ex);
+ return false;
+ }
+ ]]>
+ </Code>
+ </Task>
+ </UsingTask>
+
+ <UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
+ <ParameterGroup>
+ <EnvKey ParameterType="System.String" Required="true" />
+ <EnvValue ParameterType="System.String" Required="true" />
+ </ParameterGroup>
+ <Task>
+ <Using Namespace="System" />
+ <Code Type="Fragment" Language="cs">
+ <![CDATA[
+ try {
+ Environment.SetEnvironmentVariable(EnvKey, EnvValue, System.EnvironmentVariableTarget.Process);
+ }
+ catch {
+ }
+ ]]>
+ </Code>
+ </Task>
+ </UsingTask>
+</Project>
\ No newline at end of file
Property changes on: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/CoordSysEnumTest.csproj
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/CoordSysEnumTest.csproj (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/CoordSysEnumTest.csproj 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{1B74DF59-B3D2-49E8-80EF-9BC5A84552F3}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>CoordSysEnumTest</RootNamespace>
+ <AssemblyName>CoordSysEnumTest</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="OSGeo.MapGuide.Foundation">
+ <HintPath>..\packages\mapguide-api-base-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.Foundation.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Geometry">
+ <HintPath>..\packages\mapguide-api-base-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.Geometry.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.PlatformBase">
+ <HintPath>..\packages\mapguide-api-base-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.PlatformBase.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Deployment" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="MainForm.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="MainForm.Designer.cs">
+ <DependentUpon>MainForm.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <EmbeddedResource Include="MainForm.resx">
+ <DependentUpon>MainForm.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Resources.resx</DependentUpon>
+ </Compile>
+ <None Include="packages.config" />
+ <None Include="Properties\Settings.settings">
+ <Generator>SettingsSingleFileGenerator</Generator>
+ <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+ </None>
+ <Compile Include="Properties\Settings.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Settings.settings</DependentUpon>
+ <DesignTimeSharedInput>True</DesignTimeSharedInput>
+ </Compile>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
+ <PostBuildEvent>
+if not exist "$(TargetDir)Dictionaries" md "$(TargetDir)Dictionaries"
+xcopy /s /y "$(SolutionDir)packages\cs-map-dictionaries.2.4.0.7093\dictionaries\*.*" "$(TargetDir)Dictionaries"
+xcopy /s /y "$(SolutionDir)packages\mapguide-api-base-x86.2.4.0.7093\mapguide-api-base\*.*" "$(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">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/MainForm.Designer.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/MainForm.Designer.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/MainForm.Designer.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,73 @@
+namespace CoordSysEnumTest
+{
+ partial class MainForm
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.label1 = new System.Windows.Forms.Label();
+ this.lstCoordSysCategories = new System.Windows.Forms.ListBox();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(13, 13);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(400, 13);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "If you see these coordinate system categories, the MapGuide API base is working :" +
+ ")";
+ //
+ // lstCoordSysCategories
+ //
+ this.lstCoordSysCategories.FormattingEnabled = true;
+ this.lstCoordSysCategories.Location = new System.Drawing.Point(16, 47);
+ this.lstCoordSysCategories.Name = "lstCoordSysCategories";
+ this.lstCoordSysCategories.Size = new System.Drawing.Size(406, 186);
+ this.lstCoordSysCategories.TabIndex = 1;
+ //
+ // MainForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(434, 257);
+ this.Controls.Add(this.lstCoordSysCategories);
+ this.Controls.Add(this.label1);
+ this.Name = "MainForm";
+ this.Text = "Form1";
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.ListBox lstCoordSysCategories;
+ }
+}
+
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/MainForm.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/MainForm.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/MainForm.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+using OSGeo.MapGuide;
+
+namespace CoordSysEnumTest
+{
+ public partial class MainForm : Form
+ {
+ private MainForm()
+ {
+ InitializeComponent();
+ }
+
+ private MgCoordinateSystemFactory _fact;
+
+ public MainForm(MgCoordinateSystemFactory fact) : this()
+ {
+ _fact = fact;
+ }
+
+ protected override void OnLoad(EventArgs e)
+ {
+ base.OnLoad(e);
+ MgStringCollection categories = _fact.EnumerateCategories();
+ var items = new List<string>();
+ for (int i = 0; i < categories.GetCount(); i++)
+ items.Add(categories.GetItem(i));
+
+ lstCoordSysCategories.DataSource = items;
+ }
+ }
+}
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/MainForm.resx
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/MainForm.resx (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/MainForm.resx 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Program.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Program.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Program.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Windows.Forms;
+using OSGeo.MapGuide;
+using System.IO;
+
+namespace CoordSysEnumTest
+{
+ static class Program
+ {
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+
+ MgCoordinateSystemFactory fact = new MgCoordinateSystemFactory();
+ MgCoordinateSystemCatalog cat = fact.GetCatalog();
+ cat.SetDictionaryDir(Path.Combine(Application.StartupPath, "Dictionaries"));
+
+ Application.Run(new MainForm(fact));
+ }
+ }
+}
Property changes on: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/AssemblyInfo.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/AssemblyInfo.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/AssemblyInfo.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("CoordSysEnumTest")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("CoordSysEnumTest")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("c7322422-5546-4cd1-a5c8-67b65c671874")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Resources.Designer.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Resources.Designer.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Resources.Designer.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.269
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace CoordSysEnumTest.Properties
+{
+
+
+ /// <summary>
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// </summary>
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ /// <summary>
+ /// Returns the cached ResourceManager instance used by this class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CoordSysEnumTest.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Resources.resx
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Resources.resx (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Resources.resx 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Settings.Designer.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Settings.Designer.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Settings.Designer.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.269
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace CoordSysEnumTest.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Settings.settings
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Settings.settings (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/Properties/Settings.settings 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+ <Profiles>
+ <Profile Name="(Default)" />
+ </Profiles>
+ <Settings />
+</SettingsFile>
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/packages.config
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/packages.config (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest/packages.config 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="cs-map-dictionaries" version="2.4.0.7093" targetFramework="net40-Client" />
+ <package id="mapguide-api-base-x86" version="2.4.0.7093" targetFramework="net40-Client" />
+</packages>
\ No newline at end of file
Property changes on: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/CoordSysEnumTest.csproj
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/CoordSysEnumTest.csproj (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/CoordSysEnumTest.csproj 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{1B74DF59-B3D2-49E8-80EF-9BC5A84552F3}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>CoordSysEnumTest</RootNamespace>
+ <AssemblyName>CoordSysEnumTest</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+ <FileAlignment>512</FileAlignment>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\x64\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ <OutputPath>bin\x64\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <Optimize>true</Optimize>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="OSGeo.MapGuide.Foundation">
+ <HintPath>..\packages\mapguide-api-base-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.Foundation.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Geometry">
+ <HintPath>..\packages\mapguide-api-base-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.Geometry.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.PlatformBase">
+ <HintPath>..\packages\mapguide-api-base-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.PlatformBase.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Deployment" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="MainForm.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="MainForm.Designer.cs">
+ <DependentUpon>MainForm.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <EmbeddedResource Include="MainForm.resx">
+ <DependentUpon>MainForm.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Resources.resx</DependentUpon>
+ </Compile>
+ <None Include="packages.config" />
+ <None Include="Properties\Settings.settings">
+ <Generator>SettingsSingleFileGenerator</Generator>
+ <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+ </None>
+ <Compile Include="Properties\Settings.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Settings.settings</DependentUpon>
+ <DesignTimeSharedInput>True</DesignTimeSharedInput>
+ </Compile>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
+ <PostBuildEvent>
+if not exist "$(TargetDir)Dictionaries" md "$(TargetDir)Dictionaries"
+xcopy /s /y "$(SolutionDir)packages\cs-map-dictionaries.2.4.0.7093\dictionaries\*.*" "$(TargetDir)Dictionaries"
+xcopy /s /y "$(SolutionDir)packages\mapguide-api-base-x64.2.4.0.7093\mapguide-api-base\*.*" "$(TargetDir)"</PostBuildEvent>
+ </PropertyGroup>
+ <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
+ <!-- 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">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/MainForm.Designer.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/MainForm.Designer.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/MainForm.Designer.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,73 @@
+namespace CoordSysEnumTest
+{
+ partial class MainForm
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.label1 = new System.Windows.Forms.Label();
+ this.lstCoordSysCategories = new System.Windows.Forms.ListBox();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(13, 13);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(400, 13);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "If you see these coordinate system categories, the MapGuide API base is working :" +
+ ")";
+ //
+ // lstCoordSysCategories
+ //
+ this.lstCoordSysCategories.FormattingEnabled = true;
+ this.lstCoordSysCategories.Location = new System.Drawing.Point(16, 47);
+ this.lstCoordSysCategories.Name = "lstCoordSysCategories";
+ this.lstCoordSysCategories.Size = new System.Drawing.Size(406, 186);
+ this.lstCoordSysCategories.TabIndex = 1;
+ //
+ // MainForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(434, 257);
+ this.Controls.Add(this.lstCoordSysCategories);
+ this.Controls.Add(this.label1);
+ this.Name = "MainForm";
+ this.Text = "Form1";
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.ListBox lstCoordSysCategories;
+ }
+}
+
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/MainForm.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/MainForm.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/MainForm.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+using OSGeo.MapGuide;
+
+namespace CoordSysEnumTest
+{
+ public partial class MainForm : Form
+ {
+ private MainForm()
+ {
+ InitializeComponent();
+ }
+
+ private MgCoordinateSystemFactory _fact;
+
+ public MainForm(MgCoordinateSystemFactory fact) : this()
+ {
+ _fact = fact;
+ }
+
+ protected override void OnLoad(EventArgs e)
+ {
+ base.OnLoad(e);
+ MgStringCollection categories = _fact.EnumerateCategories();
+ var items = new List<string>();
+ for (int i = 0; i < categories.GetCount(); i++)
+ items.Add(categories.GetItem(i));
+
+ lstCoordSysCategories.DataSource = items;
+ }
+ }
+}
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/MainForm.resx
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/MainForm.resx (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/MainForm.resx 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Program.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Program.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Program.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Windows.Forms;
+using OSGeo.MapGuide;
+using System.IO;
+
+namespace CoordSysEnumTest
+{
+ static class Program
+ {
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+
+ MgCoordinateSystemFactory fact = new MgCoordinateSystemFactory();
+ MgCoordinateSystemCatalog cat = fact.GetCatalog();
+ cat.SetDictionaryDir(Path.Combine(Application.StartupPath, "Dictionaries"));
+
+ Application.Run(new MainForm(fact));
+ }
+ }
+}
Property changes on: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/AssemblyInfo.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/AssemblyInfo.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/AssemblyInfo.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("CoordSysEnumTest")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("CoordSysEnumTest")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("c7322422-5546-4cd1-a5c8-67b65c671874")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Resources.Designer.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Resources.Designer.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Resources.Designer.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.269
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace CoordSysEnumTest.Properties
+{
+
+
+ /// <summary>
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// </summary>
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ /// <summary>
+ /// Returns the cached ResourceManager instance used by this class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CoordSysEnumTest.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Resources.resx
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Resources.resx (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Resources.resx 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Settings.Designer.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Settings.Designer.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Settings.Designer.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.269
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace CoordSysEnumTest.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Settings.settings
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Settings.settings (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/Properties/Settings.settings 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+ <Profiles>
+ <Profile Name="(Default)" />
+ </Profiles>
+ <Settings />
+</SettingsFile>
Added: trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/packages.config
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/packages.config (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/CoordSysEnumTest64/packages.config 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="cs-map-dictionaries" version="2.4.0.7093" targetFramework="net40-Client" />
+ <package id="mapguide-api-base-x64" version="2.4.0.7093" targetFramework="net40-Client" />
+</packages>
\ No newline at end of file
Property changes on: trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/DesktopConsoleTest.csproj
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/DesktopConsoleTest.csproj (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/DesktopConsoleTest.csproj 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{87BA0B9E-F36E-4D45-89EC-C1CD95C73B62}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>DesktopConsoleTest</RootNamespace>
+ <AssemblyName>DesktopConsoleTest</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="OSGeo.MapGuide.Desktop, Version=2.4.0.7093, Culture=neutral, PublicKeyToken=e75f9fd7cf82dc3f, processorArchitecture=AMD64">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\mg-desktop-net40-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.Desktop.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Foundation, Version=2.4.0.7093, Culture=neutral, PublicKeyToken=f526c48929fda856, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\mapguide-api-base-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.Foundation.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Geometry, Version=2.4.0.7093, Culture=neutral, PublicKeyToken=f526c48929fda856, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\mapguide-api-base-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.Geometry.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.PlatformBase, Version=2.4.0.7093, Culture=neutral, PublicKeyToken=f526c48929fda856, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\mapguide-api-base-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.PlatformBase.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
+ <PostBuildEvent>
+if not exist "$(TargetDir)Dictionaries" md "$(TargetDir)Dictionaries"
+xcopy /s /y "$(SolutionDir)packages\cs-map-dictionaries.2.4.0.7093\dictionaries\*.*" "$(TargetDir)Dictionaries"
+xcopy /s /y "$(SolutionDir)packages\mapguide-api-base-x86.2.4.0.7093\mapguide-api-base\*.*" "$(TargetDir)"
+xcopy /s /y "$(SolutionDir)packages\mg-desktop-net40-x86.2.4.0.7093\mg-desktop\*.*" "$(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">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/Program.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/Program.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/Program.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,42 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using OSGeo.MapGuide;
+using System.IO;
+
+namespace DesktopConsoleTest
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ MgdPlatform.Initialize("Platform.ini");
+
+ string currentDir = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
+
+ //Test mapguide-api-base
+ MgCoordinateSystemFactory csFact = new MgCoordinateSystemFactory();
+
+ Console.WriteLine("Testing coordinate system categories");
+ MgStringCollection csCategories = csFact.EnumerateCategories();
+ for (int i = 0; i < csCategories.GetCount(); i++)
+ {
+ Console.WriteLine(csCategories.GetItem(i));
+ }
+
+ //Test mg-desktop
+ MgdServiceFactory serviceFact = new MgdServiceFactory();
+ Console.Write("Can we create a MgdFeatureService? ");
+ MgdFeatureService featSvc = (MgdFeatureService)serviceFact.CreateService(MgServiceType.FeatureService);
+ Console.WriteLine("yes");
+ Console.Write("Can we create a MgdResourceService? ");
+ MgdResourceService resSvc = (MgdResourceService)serviceFact.CreateService(MgServiceType.ResourceService);
+ Console.WriteLine("yes");
+
+ MgdPlatform.Terminate();
+ Console.WriteLine("Things look all good :) Press any key to continue");
+ Console.Read();
+ }
+ }
+}
Property changes on: trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/Properties
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/Properties/AssemblyInfo.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/Properties/AssemblyInfo.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/Properties/AssemblyInfo.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("DesktopConsoleTest")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("DesktopConsoleTest")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("cafc7a89-4da9-48b9-87e3-f564367718bd")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/packages.config
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/packages.config (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest/packages.config 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="cs-map-dictionaries" version="2.4.0.7093" targetFramework="net40-Client" />
+ <package id="mapguide-api-base-x86" version="2.4.0.7093" targetFramework="net40-Client" />
+ <package id="mg-desktop-net40-x86" version="2.4.0.7093" targetFramework="net40-Client" />
+</packages>
\ No newline at end of file
Property changes on: trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/DesktopConsoleTest.csproj
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/DesktopConsoleTest.csproj (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/DesktopConsoleTest.csproj 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{87BA0B9E-F36E-4D45-89EC-C1CD95C73B62}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>DesktopConsoleTest</RootNamespace>
+ <AssemblyName>DesktopConsoleTest</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+ <FileAlignment>512</FileAlignment>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\x64\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ <OutputPath>bin\x64\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <Optimize>true</Optimize>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="OSGeo.MapGuide.Desktop">
+ <HintPath>..\packages\mg-desktop-net40-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.Desktop.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Foundation">
+ <HintPath>..\packages\mapguide-api-base-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.Foundation.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Geometry">
+ <HintPath>..\packages\mapguide-api-base-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.Geometry.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.PlatformBase">
+ <HintPath>..\packages\mapguide-api-base-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.PlatformBase.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
+ <PostBuildEvent>
+if not exist "$(TargetDir)Dictionaries" md "$(TargetDir)Dictionaries"
+xcopy /s /y "$(SolutionDir)packages\cs-map-dictionaries.2.4.0.7093\dictionaries\*.*" "$(TargetDir)Dictionaries"
+xcopy /s /y "$(SolutionDir)packages\mapguide-api-base-x64.2.4.0.7093\mapguide-api-base\*.*" "$(TargetDir)"
+xcopy /s /y "$(SolutionDir)packages\mg-desktop-net40-x64.2.4.0.7093\mg-desktop\*.*" "$(TargetDir)"</PostBuildEvent>
+ </PropertyGroup>
+ <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
+ <!-- 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">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/Program.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/Program.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/Program.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,42 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using OSGeo.MapGuide;
+using System.IO;
+
+namespace DesktopConsoleTest
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ MgdPlatform.Initialize("Platform.ini");
+
+ string currentDir = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
+
+ //Test mapguide-api-base
+ MgCoordinateSystemFactory csFact = new MgCoordinateSystemFactory();
+
+ Console.WriteLine("Testing coordinate system categories");
+ MgStringCollection csCategories = csFact.EnumerateCategories();
+ for (int i = 0; i < csCategories.GetCount(); i++)
+ {
+ Console.WriteLine(csCategories.GetItem(i));
+ }
+
+ //Test mg-desktop
+ MgdServiceFactory serviceFact = new MgdServiceFactory();
+ Console.Write("Can we create a MgdFeatureService? ");
+ MgdFeatureService featSvc = (MgdFeatureService)serviceFact.CreateService(MgServiceType.FeatureService);
+ Console.WriteLine("yes");
+ Console.Write("Can we create a MgdResourceService? ");
+ MgdResourceService resSvc = (MgdResourceService)serviceFact.CreateService(MgServiceType.ResourceService);
+ Console.WriteLine("yes");
+
+ MgdPlatform.Terminate();
+ Console.WriteLine("Things look all good :) Press any key to continue");
+ Console.Read();
+ }
+ }
+}
Property changes on: trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/Properties
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/Properties/AssemblyInfo.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/Properties/AssemblyInfo.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/Properties/AssemblyInfo.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("DesktopConsoleTest")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("DesktopConsoleTest")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("cafc7a89-4da9-48b9-87e3-f564367718bd")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/packages.config
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/packages.config (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopConsoleTest64/packages.config 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="cs-map-dictionaries" version="2.4.0.7093" targetFramework="net40-Client" />
+ <package id="mapguide-api-base-x64" version="2.4.0.7093" targetFramework="net40-Client" />
+ <package id="mg-desktop-net40-x64" version="2.4.0.7093" targetFramework="net40-Client" />
+</packages>
\ No newline at end of file
Property changes on: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/DesktopViewerTest.csproj
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/DesktopViewerTest.csproj (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/DesktopViewerTest.csproj 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{A0DCC768-B341-426B-889A-0701A2399CE8}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>DesktopViewerTest</RootNamespace>
+ <AssemblyName>DesktopViewerTest</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="OSGeo.MapGuide.Desktop, Version=2.4.0.7093, Culture=neutral, PublicKeyToken=e75f9fd7cf82dc3f, processorArchitecture=AMD64">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\mg-desktop-net40-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.Desktop.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Foundation, Version=2.4.0.7093, Culture=neutral, PublicKeyToken=f526c48929fda856, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\mapguide-api-base-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.Foundation.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Geometry, Version=2.4.0.7093, Culture=neutral, PublicKeyToken=f526c48929fda856, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\mapguide-api-base-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.Geometry.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.PlatformBase, Version=2.4.0.7093, Culture=neutral, PublicKeyToken=f526c48929fda856, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\mapguide-api-base-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.PlatformBase.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Viewer, Version=2.4.0.7093, Culture=neutral, PublicKeyToken=e75f9fd7cf82dc3f, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\mg-desktop-viewer-net40-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.Viewer.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Viewer.Desktop, Version=2.4.0.7093, Culture=neutral, PublicKeyToken=e75f9fd7cf82dc3f, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\mg-desktop-viewer-net40-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.Viewer.Desktop.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Deployment" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="MainForm.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="MainForm.Designer.cs">
+ <DependentUpon>MainForm.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <EmbeddedResource Include="MainForm.resx">
+ <DependentUpon>MainForm.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Resources.resx</DependentUpon>
+ </Compile>
+ <None Include="packages.config" />
+ <None Include="Properties\Settings.settings">
+ <Generator>SettingsSingleFileGenerator</Generator>
+ <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+ </None>
+ <Compile Include="Properties\Settings.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Settings.settings</DependentUpon>
+ <DesignTimeSharedInput>True</DesignTimeSharedInput>
+ </Compile>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
+ <PostBuildEvent>
+if not exist "$(TargetDir)Dictionaries" md "$(TargetDir)Dictionaries"
+xcopy /s /y "$(SolutionDir)packages\cs-map-dictionaries.2.4.0.7093\dictionaries\*.*" "$(TargetDir)Dictionaries"
+xcopy /s /y "$(SolutionDir)packages\mapguide-api-base-x86.2.4.0.7093\mapguide-api-base\*.*" "$(TargetDir)"
+xcopy /s /y "$(SolutionDir)packages\mg-desktop-net40-x86.2.4.0.7093\mg-desktop\*.*" "$(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">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/MainForm.Designer.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/MainForm.Designer.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/MainForm.Designer.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,212 @@
+namespace DesktopViewerTest
+{
+ partial class MainForm
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.mgDefaultToolbar1 = new OSGeo.MapGuide.Viewer.MgDefaultToolbar();
+ this.statusStrip1 = new System.Windows.Forms.StatusStrip();
+ this.lblCoords = new System.Windows.Forms.ToolStripStatusLabel();
+ this.lblSelected = new System.Windows.Forms.ToolStripStatusLabel();
+ this.lblScale = new System.Windows.Forms.ToolStripStatusLabel();
+ this.lblSize = new System.Windows.Forms.ToolStripStatusLabel();
+ this.splitContainer1 = new System.Windows.Forms.SplitContainer();
+ this.splitContainer2 = new System.Windows.Forms.SplitContainer();
+ this.mgLegend1 = new OSGeo.MapGuide.Viewer.MgLegend();
+ this.mgPropertyPane1 = new OSGeo.MapGuide.Viewer.MgPropertyPane();
+ this.mgMapViewer1 = new OSGeo.MapGuide.Viewer.MgMapViewer();
+ this.statusStrip1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
+ this.splitContainer1.Panel1.SuspendLayout();
+ this.splitContainer1.Panel2.SuspendLayout();
+ this.splitContainer1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
+ this.splitContainer2.Panel1.SuspendLayout();
+ this.splitContainer2.Panel2.SuspendLayout();
+ this.splitContainer2.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // mgDefaultToolbar1
+ //
+ this.mgDefaultToolbar1.Location = new System.Drawing.Point(0, 0);
+ this.mgDefaultToolbar1.Name = "mgDefaultToolbar1";
+ this.mgDefaultToolbar1.Size = new System.Drawing.Size(613, 25);
+ this.mgDefaultToolbar1.TabIndex = 0;
+ this.mgDefaultToolbar1.Text = "mgDefaultToolbar1";
+ this.mgDefaultToolbar1.Viewer = null;
+ //
+ // statusStrip1
+ //
+ this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.lblCoords,
+ this.lblSelected,
+ this.lblScale,
+ this.lblSize});
+ this.statusStrip1.Location = new System.Drawing.Point(0, 484);
+ this.statusStrip1.Name = "statusStrip1";
+ this.statusStrip1.Size = new System.Drawing.Size(613, 22);
+ this.statusStrip1.TabIndex = 1;
+ this.statusStrip1.Text = "statusStrip1";
+ //
+ // lblCoords
+ //
+ this.lblCoords.Name = "lblCoords";
+ this.lblCoords.Size = new System.Drawing.Size(0, 17);
+ //
+ // lblSelected
+ //
+ this.lblSelected.Name = "lblSelected";
+ this.lblSelected.Size = new System.Drawing.Size(598, 17);
+ this.lblSelected.Spring = true;
+ this.lblSelected.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // lblScale
+ //
+ this.lblScale.Name = "lblScale";
+ this.lblScale.Size = new System.Drawing.Size(0, 17);
+ this.lblScale.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // lblSize
+ //
+ this.lblSize.Name = "lblSize";
+ this.lblSize.Size = new System.Drawing.Size(0, 17);
+ //
+ // splitContainer1
+ //
+ this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer1.Location = new System.Drawing.Point(0, 25);
+ this.splitContainer1.Name = "splitContainer1";
+ //
+ // splitContainer1.Panel1
+ //
+ this.splitContainer1.Panel1.Controls.Add(this.splitContainer2);
+ //
+ // splitContainer1.Panel2
+ //
+ this.splitContainer1.Panel2.Controls.Add(this.mgMapViewer1);
+ this.splitContainer1.Size = new System.Drawing.Size(613, 459);
+ this.splitContainer1.SplitterDistance = 204;
+ this.splitContainer1.TabIndex = 2;
+ //
+ // splitContainer2
+ //
+ this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer2.Location = new System.Drawing.Point(0, 0);
+ this.splitContainer2.Name = "splitContainer2";
+ this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
+ //
+ // splitContainer2.Panel1
+ //
+ this.splitContainer2.Panel1.Controls.Add(this.mgLegend1);
+ //
+ // splitContainer2.Panel2
+ //
+ this.splitContainer2.Panel2.Controls.Add(this.mgPropertyPane1);
+ this.splitContainer2.Size = new System.Drawing.Size(204, 459);
+ this.splitContainer2.SplitterDistance = 219;
+ this.splitContainer2.TabIndex = 0;
+ //
+ // mgLegend1
+ //
+ this.mgLegend1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.mgLegend1.GroupContextMenu = null;
+ this.mgLegend1.LayerContextMenu = null;
+ this.mgLegend1.Location = new System.Drawing.Point(0, 0);
+ this.mgLegend1.Name = "mgLegend1";
+ this.mgLegend1.ShowTooltips = true;
+ this.mgLegend1.Size = new System.Drawing.Size(204, 219);
+ this.mgLegend1.TabIndex = 0;
+ this.mgLegend1.ThemeCompressionLimit = 0;
+ //
+ // mgPropertyPane1
+ //
+ this.mgPropertyPane1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.mgPropertyPane1.Location = new System.Drawing.Point(0, 0);
+ this.mgPropertyPane1.Name = "mgPropertyPane1";
+ this.mgPropertyPane1.Size = new System.Drawing.Size(204, 236);
+ this.mgPropertyPane1.TabIndex = 0;
+ //
+ // mgMapViewer1
+ //
+ this.mgMapViewer1.Cursor = System.Windows.Forms.Cursors.Default;
+ this.mgMapViewer1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.mgMapViewer1.Location = new System.Drawing.Point(0, 0);
+ this.mgMapViewer1.MaxScale = 1000000000;
+ this.mgMapViewer1.MinScale = 10;
+ this.mgMapViewer1.MouseWheelDelayRenderInterval = 800;
+ this.mgMapViewer1.Name = "mgMapViewer1";
+ this.mgMapViewer1.PointPixelBuffer = 2;
+ this.mgMapViewer1.SelectionColor = System.Drawing.Color.Blue;
+ this.mgMapViewer1.Size = new System.Drawing.Size(405, 459);
+ this.mgMapViewer1.TabIndex = 0;
+ this.mgMapViewer1.Text = "mgMapViewer1";
+ this.mgMapViewer1.TooltipDelayInterval = 1000;
+ this.mgMapViewer1.ZoomInFactor = 0.5D;
+ this.mgMapViewer1.ZoomOutFactor = 2D;
+ this.mgMapViewer1.SelectionChanged += new System.EventHandler(this.mgMapViewer1_SelectionChanged);
+ //
+ // MainForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(613, 506);
+ this.Controls.Add(this.splitContainer1);
+ this.Controls.Add(this.statusStrip1);
+ this.Controls.Add(this.mgDefaultToolbar1);
+ this.Name = "MainForm";
+ this.Text = "mg-desktop Sample";
+ this.statusStrip1.ResumeLayout(false);
+ this.statusStrip1.PerformLayout();
+ this.splitContainer1.Panel1.ResumeLayout(false);
+ this.splitContainer1.Panel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
+ this.splitContainer1.ResumeLayout(false);
+ this.splitContainer2.Panel1.ResumeLayout(false);
+ this.splitContainer2.Panel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
+ this.splitContainer2.ResumeLayout(false);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private OSGeo.MapGuide.Viewer.MgDefaultToolbar mgDefaultToolbar1;
+ private System.Windows.Forms.StatusStrip statusStrip1;
+ private System.Windows.Forms.ToolStripStatusLabel lblCoords;
+ private System.Windows.Forms.ToolStripStatusLabel lblSelected;
+ private System.Windows.Forms.ToolStripStatusLabel lblScale;
+ private System.Windows.Forms.ToolStripStatusLabel lblSize;
+ private System.Windows.Forms.SplitContainer splitContainer1;
+ private OSGeo.MapGuide.Viewer.MgMapViewer mgMapViewer1;
+ private System.Windows.Forms.SplitContainer splitContainer2;
+ private OSGeo.MapGuide.Viewer.MgLegend mgLegend1;
+ private OSGeo.MapGuide.Viewer.MgPropertyPane mgPropertyPane1;
+ }
+}
+
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/MainForm.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/MainForm.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/MainForm.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,127 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+using OSGeo.MapGuide.Viewer;
+using OSGeo.MapGuide;
+using OSGeo.MapGuide.Viewer.Desktop;
+
+namespace DesktopViewerTest
+{
+ public partial class MainForm : Form, IMapStatusBar
+ {
+ public MainForm()
+ {
+ InitializeComponent();
+ }
+
+ protected override void OnLoad(EventArgs e)
+ {
+ mgMapViewer1.UseRenderMapIfTiledLayersExist = true;
+ mgMapViewer1.RespectFiniteDisplayScales = true;
+ new MapViewerController(mgMapViewer1, //The MgMapViewer
+ mgLegend1, //The MgLegend
+ this, //The IMapStatusBar
+ mgPropertyPane1, //The MgPropertyPane
+ mgDefaultToolbar1); //The MgDefaultToolbar
+
+ MgdServiceFactory factory = new MgdServiceFactory();
+ MgdResourceService resSvc = (MgdResourceService)factory.CreateService(MgServiceType.ResourceService);
+ MgResourceIdentifier mapDefId = new MgResourceIdentifier("Library://Samples/Sheboygan/MapsTiled/Sheboygan.MapDefinition");
+ //If this map definition doesn't exist, we ask the user to
+ //load the Sheboygan package
+ if (!resSvc.ResourceExists(mapDefId))
+ {
+ using (OpenFileDialog diag = new OpenFileDialog())
+ {
+ diag.Filter = "MapGuide Packages (*.mgp)|*.mgp";
+ if (diag.ShowDialog() == DialogResult.OK)
+ {
+ MgByteSource source = new MgByteSource(diag.FileName);
+ MgByteReader reader = source.GetReader();
+ resSvc.ApplyResourcePackage(reader);
+ }
+ else
+ {
+ //No map, nothing to do here
+ Application.Exit();
+ }
+ }
+ }
+
+ //Create our runtime map
+ MgdMap map = new MgdMap(mapDefId);
+ //Create our viewer provider
+ MgMapViewerProvider provider = new MgDesktopMapViewerProvider(map);
+ //Initialize our viewer with this provider
+ mgMapViewer1.Init(provider);
+ }
+
+ public void SetCursorPositionMessage(string message)
+ {
+ lblCoords.Text = message;
+ }
+
+ public void SetFeatureSelectedMessage(string message)
+ {
+ lblSelected.Text = message;
+ }
+
+ public void SetMapScaleMessage(string message)
+ {
+ lblScale.Text = message;
+ }
+
+ public void SetMapSizeMessage(string message)
+ {
+ lblSize.Text = message;
+ }
+
+ private void mgMapViewer1_SelectionChanged(object sender, EventArgs e)
+ {
+ MgSelectionBase selection = mgMapViewer1.GetSelection();
+ MgReadOnlyLayerCollection layers = selection.GetLayers();
+ if (layers != null)
+ {
+ for (int i = 0; i < layers.GetCount(); i++)
+ {
+ MgLayerBase layer = layers.GetItem(i);
+ if (layer.Name == "Parcels") //The selected layer is parcels
+ {
+ //Check that we only have one selected object
+ int count = selection.GetSelectedFeaturesCount(layer, layer.FeatureClassName);
+ if (count == 1)
+ {
+ MgFeatureReader reader = null;
+ try
+ {
+ reader = selection.GetSelectedFeatures(layer, layer.FeatureClassName, false);
+ if (reader.ReadNext())
+ {
+ //Address is in the RPROPAD property
+ if (reader.IsNull("RPROPAD"))
+ MessageBox.Show("Selected parcel has no address");
+ else
+ MessageBox.Show("Address: " + reader.GetString("RPROPAD"));
+ }
+ }
+ finally //Must close all readers, otherwise connections will leak
+ {
+ reader.Close();
+ }
+ }
+ else
+ {
+ MessageBox.Show("Please select only one parcel");
+ }
+ break;
+ }
+ }
+ }
+ }
+ }
+}
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/MainForm.resx
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/MainForm.resx (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/MainForm.resx 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <metadata name="mgDefaultToolbar1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>17, 17</value>
+ </metadata>
+ <metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>174, 17</value>
+ </metadata>
+</root>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Program.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Program.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Program.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Windows.Forms;
+using OSGeo.MapGuide;
+
+namespace DesktopViewerTest
+{
+ static class Program
+ {
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [STAThread]
+ static void Main()
+ {
+ MgdPlatform.Initialize("Platform.ini");
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new MainForm());
+ MgdPlatform.Terminate();
+ }
+ }
+}
Property changes on: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/AssemblyInfo.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/AssemblyInfo.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/AssemblyInfo.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("DesktopViewerTest")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("DesktopViewerTest")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("65637a5a-6232-4741-910e-d57f120d5806")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Resources.Designer.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Resources.Designer.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Resources.Designer.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.269
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace DesktopViewerTest.Properties
+{
+
+
+ /// <summary>
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// </summary>
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ /// <summary>
+ /// Returns the cached ResourceManager instance used by this class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DesktopViewerTest.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Resources.resx
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Resources.resx (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Resources.resx 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Settings.Designer.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Settings.Designer.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Settings.Designer.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.269
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace DesktopViewerTest.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Settings.settings
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Settings.settings (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/Properties/Settings.settings 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+ <Profiles>
+ <Profile Name="(Default)" />
+ </Profiles>
+ <Settings />
+</SettingsFile>
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/packages.config
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/packages.config (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest/packages.config 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="cs-map-dictionaries" version="2.4.0.7093" targetFramework="net40-Client" />
+ <package id="mapguide-api-base-x86" version="2.4.0.7093" targetFramework="net40-Client" />
+ <package id="mg-desktop-net40-x86" version="2.4.0.7093" targetFramework="net40-Client" />
+ <package id="mg-desktop-viewer-net40-x86" version="2.4.0.7093" targetFramework="net40-Client" />
+</packages>
\ No newline at end of file
Property changes on: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/DesktopViewerTest.csproj
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/DesktopViewerTest.csproj (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/DesktopViewerTest.csproj 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{A0DCC768-B341-426B-889A-0701A2399CE8}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>DesktopViewerTest</RootNamespace>
+ <AssemblyName>DesktopViewerTest</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+ <FileAlignment>512</FileAlignment>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\x64\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ <OutputPath>bin\x64\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <Optimize>true</Optimize>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="OSGeo.MapGuide.Desktop">
+ <HintPath>..\packages\mg-desktop-net40-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.Desktop.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Foundation">
+ <HintPath>..\packages\mapguide-api-base-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.Foundation.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Geometry">
+ <HintPath>..\packages\mapguide-api-base-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.Geometry.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.PlatformBase">
+ <HintPath>..\packages\mapguide-api-base-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.PlatformBase.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Viewer">
+ <HintPath>..\packages\mg-desktop-viewer-net40-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.Viewer.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Viewer.Desktop">
+ <HintPath>..\packages\mg-desktop-viewer-net40-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.Viewer.Desktop.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Deployment" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="MainForm.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="MainForm.Designer.cs">
+ <DependentUpon>MainForm.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Resources.resx</DependentUpon>
+ </Compile>
+ <None Include="packages.config" />
+ <None Include="Properties\Settings.settings">
+ <Generator>SettingsSingleFileGenerator</Generator>
+ <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+ </None>
+ <Compile Include="Properties\Settings.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Settings.settings</DependentUpon>
+ <DesignTimeSharedInput>True</DesignTimeSharedInput>
+ </Compile>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
+ <PostBuildEvent>
+if not exist "$(TargetDir)Dictionaries" md "$(TargetDir)Dictionaries"
+xcopy /s /y "$(SolutionDir)packages\cs-map-dictionaries.2.4.0.7093\dictionaries\*.*" "$(TargetDir)Dictionaries"
+xcopy /s /y "$(SolutionDir)packages\mapguide-api-base-x64.2.4.0.7093\mapguide-api-base\*.*" "$(TargetDir)"
+xcopy /s /y "$(SolutionDir)packages\mg-desktop-net40-x64.2.4.0.7093\mg-desktop\*.*" "$(TargetDir)"</PostBuildEvent>
+ </PropertyGroup>
+ <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
+ <!-- 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">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/MainForm.Designer.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/MainForm.Designer.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/MainForm.Designer.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,208 @@
+namespace DesktopViewerTest
+{
+ partial class MainForm
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.mgDefaultToolbar1 = new OSGeo.MapGuide.Viewer.MgDefaultToolbar();
+ this.statusStrip1 = new System.Windows.Forms.StatusStrip();
+ this.lblCoords = new System.Windows.Forms.ToolStripStatusLabel();
+ this.lblSelected = new System.Windows.Forms.ToolStripStatusLabel();
+ this.lblScale = new System.Windows.Forms.ToolStripStatusLabel();
+ this.lblSize = new System.Windows.Forms.ToolStripStatusLabel();
+ this.splitContainer1 = new System.Windows.Forms.SplitContainer();
+ this.splitContainer2 = new System.Windows.Forms.SplitContainer();
+ this.mgLegend1 = new OSGeo.MapGuide.Viewer.MgLegend();
+ this.mgPropertyPane1 = new OSGeo.MapGuide.Viewer.MgPropertyPane();
+ this.mgMapViewer1 = new OSGeo.MapGuide.Viewer.MgMapViewer();
+ this.statusStrip1.SuspendLayout();
+ this.splitContainer1.Panel1.SuspendLayout();
+ this.splitContainer1.Panel2.SuspendLayout();
+ this.splitContainer1.SuspendLayout();
+ this.splitContainer2.Panel1.SuspendLayout();
+ this.splitContainer2.Panel2.SuspendLayout();
+ this.splitContainer2.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // mgDefaultToolbar1
+ //
+ this.mgDefaultToolbar1.Location = new System.Drawing.Point(0, 0);
+ this.mgDefaultToolbar1.Name = "mgDefaultToolbar1";
+ this.mgDefaultToolbar1.Size = new System.Drawing.Size(613, 25);
+ this.mgDefaultToolbar1.TabIndex = 0;
+ this.mgDefaultToolbar1.Text = "mgDefaultToolbar1";
+ this.mgDefaultToolbar1.Viewer = null;
+ //
+ // statusStrip1
+ //
+ this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.lblCoords,
+ this.lblSelected,
+ this.lblScale,
+ this.lblSize});
+ this.statusStrip1.Location = new System.Drawing.Point(0, 484);
+ this.statusStrip1.Name = "statusStrip1";
+ this.statusStrip1.Size = new System.Drawing.Size(613, 22);
+ this.statusStrip1.TabIndex = 1;
+ this.statusStrip1.Text = "statusStrip1";
+ //
+ // lblCoords
+ //
+ this.lblCoords.Name = "lblCoords";
+ this.lblCoords.Size = new System.Drawing.Size(0, 17);
+ //
+ // lblSelected
+ //
+ this.lblSelected.Name = "lblSelected";
+ this.lblSelected.Size = new System.Drawing.Size(598, 17);
+ this.lblSelected.Spring = true;
+ this.lblSelected.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // lblScale
+ //
+ this.lblScale.Name = "lblScale";
+ this.lblScale.Size = new System.Drawing.Size(0, 17);
+ this.lblScale.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // lblSize
+ //
+ this.lblSize.Name = "lblSize";
+ this.lblSize.Size = new System.Drawing.Size(0, 17);
+ //
+ // splitContainer1
+ //
+ this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer1.Location = new System.Drawing.Point(0, 25);
+ this.splitContainer1.Name = "splitContainer1";
+ //
+ // splitContainer1.Panel1
+ //
+ this.splitContainer1.Panel1.Controls.Add(this.splitContainer2);
+ //
+ // splitContainer1.Panel2
+ //
+ this.splitContainer1.Panel2.Controls.Add(this.mgMapViewer1);
+ this.splitContainer1.Size = new System.Drawing.Size(613, 459);
+ this.splitContainer1.SplitterDistance = 204;
+ this.splitContainer1.TabIndex = 2;
+ //
+ // splitContainer2
+ //
+ this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer2.Location = new System.Drawing.Point(0, 0);
+ this.splitContainer2.Name = "splitContainer2";
+ this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
+ //
+ // splitContainer2.Panel1
+ //
+ this.splitContainer2.Panel1.Controls.Add(this.mgLegend1);
+ //
+ // splitContainer2.Panel2
+ //
+ this.splitContainer2.Panel2.Controls.Add(this.mgPropertyPane1);
+ this.splitContainer2.Size = new System.Drawing.Size(204, 459);
+ this.splitContainer2.SplitterDistance = 219;
+ this.splitContainer2.TabIndex = 0;
+ //
+ // mgLegend1
+ //
+ this.mgLegend1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.mgLegend1.GroupContextMenu = null;
+ this.mgLegend1.LayerContextMenu = null;
+ this.mgLegend1.Location = new System.Drawing.Point(0, 0);
+ this.mgLegend1.Name = "mgLegend1";
+ this.mgLegend1.ShowTooltips = true;
+ this.mgLegend1.Size = new System.Drawing.Size(204, 219);
+ this.mgLegend1.TabIndex = 0;
+ this.mgLegend1.ThemeCompressionLimit = 0;
+ //
+ // mgPropertyPane1
+ //
+ this.mgPropertyPane1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.mgPropertyPane1.Location = new System.Drawing.Point(0, 0);
+ this.mgPropertyPane1.Name = "mgPropertyPane1";
+ this.mgPropertyPane1.Size = new System.Drawing.Size(204, 236);
+ this.mgPropertyPane1.TabIndex = 0;
+ //
+ // mgMapViewer1
+ //
+ this.mgMapViewer1.Cursor = System.Windows.Forms.Cursors.Default;
+ this.mgMapViewer1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.mgMapViewer1.Location = new System.Drawing.Point(0, 0);
+ this.mgMapViewer1.MaxScale = 1000000000;
+ this.mgMapViewer1.MinScale = 10;
+ this.mgMapViewer1.MouseWheelDelayRenderInterval = 800;
+ this.mgMapViewer1.Name = "mgMapViewer1";
+ this.mgMapViewer1.PointPixelBuffer = 2;
+ this.mgMapViewer1.SelectionColor = System.Drawing.Color.Blue;
+ this.mgMapViewer1.Size = new System.Drawing.Size(405, 459);
+ this.mgMapViewer1.TabIndex = 0;
+ this.mgMapViewer1.Text = "mgMapViewer1";
+ this.mgMapViewer1.TooltipDelayInterval = 1000;
+ this.mgMapViewer1.ZoomInFactor = 0.5;
+ this.mgMapViewer1.ZoomOutFactor = 2;
+ this.mgMapViewer1.SelectionChanged += new System.EventHandler(this.mgMapViewer1_SelectionChanged);
+ //
+ // MainForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(613, 506);
+ this.Controls.Add(this.splitContainer1);
+ this.Controls.Add(this.statusStrip1);
+ this.Controls.Add(this.mgDefaultToolbar1);
+ this.Name = "MainForm";
+ this.Text = "mg-desktop Sample";
+ this.statusStrip1.ResumeLayout(false);
+ this.statusStrip1.PerformLayout();
+ this.splitContainer1.Panel1.ResumeLayout(false);
+ this.splitContainer1.Panel2.ResumeLayout(false);
+ this.splitContainer1.ResumeLayout(false);
+ this.splitContainer2.Panel1.ResumeLayout(false);
+ this.splitContainer2.Panel2.ResumeLayout(false);
+ this.splitContainer2.ResumeLayout(false);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private OSGeo.MapGuide.Viewer.MgDefaultToolbar mgDefaultToolbar1;
+ private System.Windows.Forms.StatusStrip statusStrip1;
+ private System.Windows.Forms.ToolStripStatusLabel lblCoords;
+ private System.Windows.Forms.ToolStripStatusLabel lblSelected;
+ private System.Windows.Forms.ToolStripStatusLabel lblScale;
+ private System.Windows.Forms.ToolStripStatusLabel lblSize;
+ private System.Windows.Forms.SplitContainer splitContainer1;
+ private OSGeo.MapGuide.Viewer.MgMapViewer mgMapViewer1;
+ private System.Windows.Forms.SplitContainer splitContainer2;
+ private OSGeo.MapGuide.Viewer.MgLegend mgLegend1;
+ private OSGeo.MapGuide.Viewer.MgPropertyPane mgPropertyPane1;
+ }
+}
+
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/MainForm.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/MainForm.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/MainForm.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,125 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+using OSGeo.MapGuide.Viewer;
+using OSGeo.MapGuide;
+using OSGeo.MapGuide.Viewer.Desktop;
+
+namespace DesktopViewerTest
+{
+ public partial class MainForm : Form, IMapStatusBar
+ {
+ public MainForm()
+ {
+ InitializeComponent();
+ }
+
+ protected override void OnLoad(EventArgs e)
+ {
+ new MapViewerController(mgMapViewer1, //The MgMapViewer
+ mgLegend1, //The MgLegend
+ this, //The IMapStatusBar
+ mgPropertyPane1, //The MgPropertyPane
+ mgDefaultToolbar1); //The MgDefaultToolbar
+
+ MgdServiceFactory factory = new MgdServiceFactory();
+ MgdResourceService resSvc = (MgdResourceService)factory.CreateService(MgServiceType.ResourceService);
+ MgResourceIdentifier mapDefId = new MgResourceIdentifier("Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition");
+ //If this map definition doesn't exist, we ask the user to
+ //load the Sheboygan package
+ if (!resSvc.ResourceExists(mapDefId))
+ {
+ using (OpenFileDialog diag = new OpenFileDialog())
+ {
+ diag.Filter = "MapGuide Packages (*.mgp)|*.mgp";
+ if (diag.ShowDialog() == DialogResult.OK)
+ {
+ MgByteSource source = new MgByteSource(diag.FileName);
+ MgByteReader reader = source.GetReader();
+ resSvc.ApplyResourcePackage(reader);
+ }
+ else
+ {
+ //No map, nothing to do here
+ Application.Exit();
+ }
+ }
+ }
+
+ //Create our runtime map
+ MgdMap map = new MgdMap(mapDefId);
+ //Create our viewer provider
+ MgMapViewerProvider provider = new MgDesktopMapViewerProvider(map);
+ //Initialize our viewer with this provider
+ mgMapViewer1.Init(provider);
+ }
+
+ public void SetCursorPositionMessage(string message)
+ {
+ lblCoords.Text = message;
+ }
+
+ public void SetFeatureSelectedMessage(string message)
+ {
+ lblSelected.Text = message;
+ }
+
+ public void SetMapScaleMessage(string message)
+ {
+ lblScale.Text = message;
+ }
+
+ public void SetMapSizeMessage(string message)
+ {
+ lblSize.Text = message;
+ }
+
+ private void mgMapViewer1_SelectionChanged(object sender, EventArgs e)
+ {
+ MgSelectionBase selection = mgMapViewer1.GetSelection();
+ MgReadOnlyLayerCollection layers = selection.GetLayers();
+ if (layers != null)
+ {
+ for (int i = 0; i < layers.GetCount(); i++)
+ {
+ MgLayerBase layer = layers.GetItem(i);
+ if (layer.Name == "Parcels") //The selected layer is parcels
+ {
+ //Check that we only have one selected object
+ int count = selection.GetSelectedFeaturesCount(layer, layer.FeatureClassName);
+ if (count == 1)
+ {
+ MgFeatureReader reader = null;
+ try
+ {
+ reader = selection.GetSelectedFeatures(layer, layer.FeatureClassName, false);
+ if (reader.ReadNext())
+ {
+ //Address is in the RPROPAD property
+ if (reader.IsNull("RPROPAD"))
+ MessageBox.Show("Selected parcel has no address");
+ else
+ MessageBox.Show("Address: " + reader.GetString("RPROPAD"));
+ }
+ }
+ finally //Must close all readers, otherwise connections will leak
+ {
+ reader.Close();
+ }
+ }
+ else
+ {
+ MessageBox.Show("Please select only one parcel");
+ }
+ break;
+ }
+ }
+ }
+ }
+ }
+}
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Program.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Program.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Program.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Windows.Forms;
+using OSGeo.MapGuide;
+
+namespace DesktopViewerTest
+{
+ static class Program
+ {
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [STAThread]
+ static void Main()
+ {
+ MgdPlatform.Initialize("Platform.ini");
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new MainForm());
+ MgdPlatform.Terminate();
+ }
+ }
+}
Property changes on: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/AssemblyInfo.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/AssemblyInfo.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/AssemblyInfo.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("DesktopViewerTest")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("DesktopViewerTest")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("65637a5a-6232-4741-910e-d57f120d5806")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Resources.Designer.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Resources.Designer.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Resources.Designer.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.269
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace DesktopViewerTest.Properties
+{
+
+
+ /// <summary>
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// </summary>
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ /// <summary>
+ /// Returns the cached ResourceManager instance used by this class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DesktopViewerTest.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Resources.resx
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Resources.resx (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Resources.resx 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Settings.Designer.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Settings.Designer.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Settings.Designer.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.269
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace DesktopViewerTest.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Settings.settings
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Settings.settings (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/Properties/Settings.settings 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+ <Profiles>
+ <Profile Name="(Default)" />
+ </Profiles>
+ <Settings />
+</SettingsFile>
Added: trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/packages.config
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/packages.config (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/DesktopViewerTest64/packages.config 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="cs-map-dictionaries" version="2.4.0.7093" targetFramework="net40-Client" />
+ <package id="mapguide-api-base-x64" version="2.4.0.7093" targetFramework="net40-Client" />
+ <package id="mg-desktop-net40-x64" version="2.4.0.7093" targetFramework="net40-Client" />
+ <package id="mg-desktop-viewer-net40-x64" version="2.4.0.7093" targetFramework="net40-Client" />
+</packages>
\ No newline at end of file
Property changes on: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Default.aspx
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Default.aspx (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Default.aspx 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MapGuideNuget.Default" %>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Default.aspx.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Default.aspx.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Default.aspx.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,23 @@
+using OSGeo.MapGuide;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace MapGuideNuget
+{
+ public partial class Default : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ MgUserInformation user = new MgUserInformation("Anonymous", "");
+ MgSite site = new MgSite();
+ site.Open(user);
+ string sessionId = site.CreateSession();
+ string wl = "Library://Samples/Sheboygan/Layouts/SheboyganAsp.WebLayout";
+ Response.Redirect("http://localhost/mapguide/mapviewerajax/?WEBLAYOUT=" + wl + "&SESSION=" + sessionId);
+ }
+ }
+}
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Default.aspx.designer.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Default.aspx.designer.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Default.aspx.designer.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,15 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace MapGuideNuget {
+
+
+ public partial class Default {
+ }
+}
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Global.asax
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Global.asax (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Global.asax 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1 @@
+<%@ Application Codebehind="Global.asax.cs" Inherits="MapGuideNuget.Global" Language="C#" %>
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Global.asax.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Global.asax.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Global.asax.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,49 @@
+using OSGeo.MapGuide;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.SessionState;
+
+namespace MapGuideNuget
+{
+ public class Global : System.Web.HttpApplication
+ {
+
+ protected void Application_Start(object sender, EventArgs e)
+ {
+ MapGuideApi.MgInitializeWebTier(Server.MapPath("~/webconfig.ini"));
+ }
+
+ protected void Session_Start(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_BeginRequest(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_AuthenticateRequest(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_Error(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Session_End(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_End(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/MapGuideNuget.csproj
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/MapGuideNuget.csproj (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/MapGuideNuget.csproj 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>
+ </ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{A4665445-2B49-4808-BD7A-8A6B6AAF5237}</ProjectGuid>
+ <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>MapGuideNuget</RootNamespace>
+ <AssemblyName>MapGuideNuget</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <UseIISExpress>false</UseIISExpress>
+ <IISExpressSSLPort />
+ <IISExpressAnonymousAuthentication />
+ <IISExpressWindowsAuthentication />
+ <IISExpressUseClassicPipelineMode />
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="OSGeo.MapGuide.Foundation">
+ <HintPath>..\packages\mapguide-api-base-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.Foundation.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Geometry">
+ <HintPath>..\packages\mapguide-api-base-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.Geometry.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.MapGuideCommon">
+ <HintPath>..\packages\mapguide-api-web-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.MapGuideCommon.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.PlatformBase">
+ <HintPath>..\packages\mapguide-api-base-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.PlatformBase.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Web">
+ <HintPath>..\packages\mapguide-api-web-x86.2.4.0.7093\lib\net40\OSGeo.MapGuide.Web.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.DynamicData" />
+ <Reference Include="System.Web.Entity" />
+ <Reference Include="System.Web.ApplicationServices" />
+ <Reference Include="System.ComponentModel.DataAnnotations" />
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="System.Web.Extensions" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Configuration" />
+ <Reference Include="System.Web.Services" />
+ <Reference Include="System.EnterpriseServices" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Default.aspx" />
+ <Content Include="Global.asax" />
+ <Content Include="Web.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Default.aspx.cs">
+ <DependentUpon>Default.aspx</DependentUpon>
+ <SubType>ASPXCodeBehind</SubType>
+ </Compile>
+ <Compile Include="Default.aspx.designer.cs">
+ <DependentUpon>Default.aspx</DependentUpon>
+ </Compile>
+ <Compile Include="Global.asax.cs">
+ <DependentUpon>Global.asax</DependentUpon>
+ </Compile>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="packages.config" />
+ <None Include="Web.Debug.config">
+ <DependentUpon>Web.config</DependentUpon>
+ </None>
+ <None Include="Web.Release.config">
+ <DependentUpon>Web.config</DependentUpon>
+ </None>
+ <Content Include="webconfig.ini" />
+ </ItemGroup>
+ <PropertyGroup>
+ <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
+ <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x86</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <Optimize>true</Optimize>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>x86</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <UseIIS>True</UseIIS>
+ <AutoAssignPort>True</AutoAssignPort>
+ <DevelopmentServerPort>58686</DevelopmentServerPort>
+ <DevelopmentServerVPath>/</DevelopmentServerVPath>
+ <IISUrl>http://localhost/MapGuideNuget</IISUrl>
+ <NTLMAuthentication>False</NTLMAuthentication>
+ <UseCustomServer>False</UseCustomServer>
+ <CustomServerUrl>
+ </CustomServerUrl>
+ <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+ <PropertyGroup>
+ <PostBuildEvent>
+xcopy /s /y "$(SolutionDir)packages\mapguide-api-base-x86.2.4.0.7093\mapguide-api-base\*.*" "$(TargetDir)"
+xcopy /s /y "$(SolutionDir)packages\mapguide-api-web-x86.2.4.0.7093\mapguide-api-web\*.*" "$(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">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/MapGuideNuget.csproj.user
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/MapGuideNuget.csproj.user (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/MapGuideNuget.csproj.user 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <StartPageUrl>
+ </StartPageUrl>
+ <StartAction>CurrentPage</StartAction>
+ <AspNetDebugging>True</AspNetDebugging>
+ <SilverlightDebugging>False</SilverlightDebugging>
+ <NativeDebugging>False</NativeDebugging>
+ <SQLDebugging>False</SQLDebugging>
+ <ExternalProgram>
+ </ExternalProgram>
+ <StartExternalURL>
+ </StartExternalURL>
+ <StartCmdLineArguments>
+ </StartCmdLineArguments>
+ <StartWorkingDirectory>
+ </StartWorkingDirectory>
+ <EnableENC>False</EnableENC>
+ <AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+</Project>
\ No newline at end of file
Property changes on: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Properties
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Properties/AssemblyInfo.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Properties/AssemblyInfo.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Properties/AssemblyInfo.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("MapGuideNuget")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("MapGuideNuget")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("43a5bb36-748c-4637-8a4e-386ed3a7aa82")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Web.Debug.config
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Web.Debug.config (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Web.Debug.config 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+ <!--
+ In the example below, the "SetAttributes" transform will change the value of
+ "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
+ finds an attribute "name" that has a value of "MyDB".
+
+ <connectionStrings>
+ <add name="MyDB"
+ connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
+ xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+ </connectionStrings>
+ -->
+ <system.web>
+ <!--
+ In the example below, the "Replace" transform will replace the entire
+ <customErrors> section of your web.config file.
+ Note that because there is only one customErrors section under the
+ <system.web> node, there is no need to use the "xdt:Locator" attribute.
+
+ <customErrors defaultRedirect="GenericError.htm"
+ mode="RemoteOnly" xdt:Transform="Replace">
+ <error statusCode="500" redirect="InternalError.htm"/>
+ </customErrors>
+ -->
+ </system.web>
+</configuration>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Web.Release.config
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Web.Release.config (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Web.Release.config 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+ <!--
+ In the example below, the "SetAttributes" transform will change the value of
+ "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
+ finds an attribute "name" that has a value of "MyDB".
+
+ <connectionStrings>
+ <add name="MyDB"
+ connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
+ xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+ </connectionStrings>
+ -->
+ <system.web>
+ <compilation xdt:Transform="RemoveAttributes(debug)" />
+ <!--
+ In the example below, the "Replace" transform will replace the entire
+ <customErrors> section of your web.config file.
+ Note that because there is only one customErrors section under the
+ <system.web> node, there is no need to use the "xdt:Locator" attribute.
+
+ <customErrors defaultRedirect="GenericError.htm"
+ mode="RemoteOnly" xdt:Transform="Replace">
+ <error statusCode="500" redirect="InternalError.htm"/>
+ </customErrors>
+ -->
+ </system.web>
+</configuration>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Web.config
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Web.config (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/Web.config 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+
+<!--
+ For more information on how to configure your ASP.NET application, please visit
+ http://go.microsoft.com/fwlink/?LinkId=169433
+ -->
+
+<configuration>
+ <system.web>
+ <compilation debug="true" targetFramework="4.0" />
+ </system.web>
+
+</configuration>
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/packages.config
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/packages.config (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/packages.config 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="mapguide-api-base-x86" version="2.4.0.7093" targetFramework="net40" />
+ <package id="mapguide-api-web-x86" version="2.4.0.7093" targetFramework="net40" />
+</packages>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/webconfig.ini
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/webconfig.ini (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget/webconfig.ini 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,198 @@
+# *****************************************************************************
+# MapGuide Web Configuration File
+#
+# WARNING: BE VERY CAREFUL WHEN MODIFYING THIS FILE AS IT COULD
+# ADVERSLY IMPACT SERVER PERFORMANCE
+# *****************************************************************************
+# COMMON VALIDATION INFORMATION
+#
+# (Unless otherwise noted under the property description)
+# -----------------------------------------------------------------------------
+# String Property Range of String Length Reserved Characters
+# -----------------------------------------------------------------------------
+# File Name 0 < Length <= 128 \/:*?"<>|
+# Folder Name 0 < Length <= 128 \/:*?"<>|
+# Log Parameters 0 <= Length <= 1024
+# Password 0 <= Length <= 64 \t\r\n\v\f
+# Path 0 < Length <= 255 *?"<>|
+# -----------------------------------------------------------------------------
+# Numeric Property Range of Numeric Value
+# -----------------------------------------------------------------------------
+# Port Number 0 <= Value <= 65535
+# *****************************************************************************
+
+[GeneralProperties]
+# *****************************************************************************
+# G E N E R A L
+#
+# Property Name Description
+# -----------------------------------------------------------------------------
+# DefaultMessageLocale ISO 639-1 name for the message locale
+# Length = 2
+# Example: en
+# or
+# Length = 5
+# Example: en-US
+#
+# WARNING: if a 5 character locale is specified
+# the first 2 characters must be lower
+# case and the last 2 characters must
+# be upper case.
+#
+# LogsPath Path where log files are stored
+# MentorDictionaryPath The path where the CS-Map Coordinate System Dictionaries are installed
+# ResourcesPath Path where the localization resource files are stored
+# TcpIpMtu The TCP/IP maximum transmission unit
+# 0 < Value <= 65535
+# TempPath Path where the temporary files are stored
+# FailoverRetryTime Time in seconds for when to retry connecting
+# to a MapGuide server that has gone offline.
+# Note: For a single Web Tier and MapGuide server
+# pair use 1. For a load balanced
+# configuration with multiple MapGuide
+# servers use 60. Values other than 1 will
+# cause a delay when re-establishing a
+# connection with the Web Tier after
+# restarting a MapGuide server.
+#
+# *****************************************************************************
+DefaultMessageLocale = en
+LogsPath = Logs/
+MentorDictionaryPath =C:\Program Files\OSGeo\MapGuide\CS-Map\Dictionaries\
+ResourcesPath =C:\Program Files\OSGeo\MapGuide\Web\www\mapagent\Resources
+TcpIpMtu = 1460
+TempPath =C:\Program Files\OSGeo\MapGuide\Web\Temp\
+FailoverRetryTime = 1
+
+[AdministrativeConnectionProperties]
+# *****************************************************************************
+# A D M I N I S T R A T I V E C O N N E C T I O N
+#
+# Property Name Description
+# -----------------------------------------------------------------------------
+# MaxConnections The maximum allowed concurrent connections for this port.
+# Default value of 2 is for a typical load when the web
+# is connected to a quad core server machine.
+#
+# Port The port to use for administration operations
+#
+# WARNING: If you change the port # here you
+# must also change the corresponding
+# port # for the server configuration
+# file.
+#
+# *****************************************************************************
+MaxConnections = 2
+Port =2810
+
+[ClientConnectionProperties]
+# *****************************************************************************
+# C L I E N T C O N N E C T I O N
+#
+# Property Name Description
+# -----------------------------------------------------------------------------
+# MaxConnections The maximum allowed concurrent connections for this port.
+# Default value of 12 is for a typical load when the web
+# is connected to a quad core server machine.
+#
+# Port The port to use for client operations
+#
+# WARNING: If you change the port # here you
+# must also change the corresponding
+# port # for the server configuration
+# file.
+#
+# *****************************************************************************
+MaxConnections = 12
+Port =2811
+
+[SiteConnectionProperties]
+# *****************************************************************************
+# S I T E C O N N E C T I O N
+#
+# Property Name Description
+# -----------------------------------------------------------------------------
+# IpAddress The IP address of the site server
+# 0 < Length <= 255
+#
+# MaxConnections The maximum allowed concurrent connections for this port.
+# Default value of 6 is for a typical load when the web
+# is connected to a quad core server machine.
+#
+# Port The port to use for site operations
+#
+# WARNING: If you change the port # here you
+# must also change the corresponding
+# port # for the server configuration
+# file.
+#
+# *****************************************************************************
+IpAddress =127.0.0.1
+MaxConnections = 6
+Port =2812
+
+[AgentProperties]
+# *****************************************************************************
+# M A P A G E N T
+#
+# Property Name Description
+# -----------------------------------------------------------------------------
+# DebugPause Number of seconds the agent pauses before
+# each request, for debugging purpose
+# 0 <= Value <= 86400
+# DisableAuthoring Disables Authoring HTTP requests
+# 0 = false and 1 = true
+# DisableWfs Disables OGC Wfs HTTP requests
+# 0 = false and 1 = true
+# DisableWms Disables OGC Wms HTTP requests
+# 0 = false and 1 = true
+# ErrorLogEnabled 0 = log disabled, 1 = log enabled
+# ErrorLogFilename Name of the log file
+# RequestLogEnabled 0 = log disabled, 1 = log enabled
+# RequestLogFilename Name of the log file
+# *****************************************************************************
+DebugPause = 0
+DisableAuthoring = 0
+DisableWfs = 0
+DisableWms = 0
+ErrorLogEnabled = 0
+ErrorLogFilename = Error.log
+RequestLogEnabled = 0
+RequestLogFilename = Request.log
+
+[OgcProperties]
+# *****************************************************************************
+# O G C S E T T I N G S
+#
+# Property Name Description
+# -----------------------------------------------------------------------------
+# WfsPassword Password to be used for credentials in WFS
+# requests
+# WmsPassword Password to be used for credentials in WMS
+# requests
+# CITEWfsEnabled Enable OGC CITE Test for WFS
+# Consider unknown requests as OGC Wfs HTTP requests
+# 0 = false and 1 = true
+# CITEWmsEnabled Enable OGC CITE Test for WMS
+# Consider unknown requests as OGC Wms HTTP requests
+# 0 = false and 1 = true
+# *****************************************************************************
+WfsPassword = wfs
+WmsPassword = wms
+CITEWfsEnabled = 0
+CITEWmsEnabled = 0
+
+[WebApplicationProperties]
+# *****************************************************************************
+# W E B A P P L I C A T I O N S E T T I N G S
+#
+# Property Name Description
+# -----------------------------------------------------------------------------
+# TemplateRootFolder The root folder containing the viewer
+# templates
+# WidgetInfoFolder The folder containing widget info files
+# ContainerInfoFolder The folder containing container info files
+# *****************************************************************************
+TemplateRootFolder =C:\Program Files\OSGeo\MapGuide\Web\www\fusion\templates\mapguide
+WidgetInfoFolder =C:\Program Files\OSGeo\MapGuide\Web\www\fusion\widgets\widgetinfo
+ContainerInfoFolder =C:\Program Files\OSGeo\MapGuide\Web\www\fusion\containerinfo
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget.sln
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget.sln (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget.sln 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,32 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Express 2012 for Windows Desktop
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoordSysEnumTest", "CoordSysEnumTest\CoordSysEnumTest.csproj", "{1B74DF59-B3D2-49E8-80EF-9BC5A84552F3}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DesktopConsoleTest", "DesktopConsoleTest\DesktopConsoleTest.csproj", "{87BA0B9E-F36E-4D45-89EC-C1CD95C73B62}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DesktopViewerTest", "DesktopViewerTest\DesktopViewerTest.csproj", "{A0DCC768-B341-426B-889A-0701A2399CE8}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {1B74DF59-B3D2-49E8-80EF-9BC5A84552F3}.Debug|x86.ActiveCfg = Debug|x86
+ {1B74DF59-B3D2-49E8-80EF-9BC5A84552F3}.Debug|x86.Build.0 = Debug|x86
+ {1B74DF59-B3D2-49E8-80EF-9BC5A84552F3}.Release|x86.ActiveCfg = Release|x86
+ {1B74DF59-B3D2-49E8-80EF-9BC5A84552F3}.Release|x86.Build.0 = Release|x86
+ {87BA0B9E-F36E-4D45-89EC-C1CD95C73B62}.Debug|x86.ActiveCfg = Debug|x86
+ {87BA0B9E-F36E-4D45-89EC-C1CD95C73B62}.Debug|x86.Build.0 = Debug|x86
+ {87BA0B9E-F36E-4D45-89EC-C1CD95C73B62}.Release|x86.ActiveCfg = Release|x86
+ {87BA0B9E-F36E-4D45-89EC-C1CD95C73B62}.Release|x86.Build.0 = Release|x86
+ {A0DCC768-B341-426B-889A-0701A2399CE8}.Debug|x86.ActiveCfg = Debug|x86
+ {A0DCC768-B341-426B-889A-0701A2399CE8}.Debug|x86.Build.0 = Debug|x86
+ {A0DCC768-B341-426B-889A-0701A2399CE8}.Release|x86.ActiveCfg = Release|x86
+ {A0DCC768-B341-426B-889A-0701A2399CE8}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
Property changes on: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Default.aspx
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Default.aspx (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Default.aspx 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MapGuideNuget.Default" Trace="true" %>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Default.aspx.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Default.aspx.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Default.aspx.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,50 @@
+using OSGeo.MapGuide;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace MapGuideNuget
+{
+ public partial class Default : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ MgUserInformation user = new MgUserInformation("Anonymous", "");
+ MgSite site = new MgSite();
+ site.Open(user);
+ string sessionId = site.CreateSession();
+ user.SetMgSessionId(sessionId);
+
+ MgSiteConnection siteConn = new MgSiteConnection();
+ siteConn.Open(user);
+
+ MgResourceIdentifier mdfId = new MgResourceIdentifier("Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition");
+
+ System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();
+ sw.Start();
+ MgMap map1 = new MgMap(siteConn);
+ map1.Create(mdfId, "ColdStart");
+ sw.Stop();
+ Trace.Write("ColdStart - " + sw.ElapsedMilliseconds + "ms");
+
+ sw.Reset();
+
+ sw.Start();
+ MgMap map2 = new MgMap(siteConn);
+ map2.Create(mdfId, "WarmStart");
+ sw.Stop();
+
+ Trace.Write("WarmStart - " + sw.ElapsedMilliseconds + "ms");
+
+ sw.Start();
+ MgMap map3 = new MgMap(siteConn);
+ map3.Create(mdfId, "WarmStart2");
+ sw.Stop();
+
+ Trace.Write("WarmStart2 - " + sw.ElapsedMilliseconds + "ms");
+ }
+ }
+}
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Default.aspx.designer.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Default.aspx.designer.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Default.aspx.designer.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,15 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace MapGuideNuget {
+
+
+ public partial class Default {
+ }
+}
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Global.asax
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Global.asax (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Global.asax 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1 @@
+<%@ Application Codebehind="Global.asax.cs" Inherits="MapGuideNuget.Global" Language="C#" %>
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Global.asax.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Global.asax.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Global.asax.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,49 @@
+using OSGeo.MapGuide;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.SessionState;
+
+namespace MapGuideNuget
+{
+ public class Global : System.Web.HttpApplication
+ {
+
+ protected void Application_Start(object sender, EventArgs e)
+ {
+ MapGuideApi.MgInitializeWebTier(Server.MapPath("~/webconfig.ini"));
+ }
+
+ protected void Session_Start(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_BeginRequest(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_AuthenticateRequest(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_Error(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Session_End(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_End(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/MapGuideNuget.csproj
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/MapGuideNuget.csproj (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/MapGuideNuget.csproj 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,143 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>
+ </ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{A4665445-2B49-4808-BD7A-8A6B6AAF5237}</ProjectGuid>
+ <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>MapGuideNuget</RootNamespace>
+ <AssemblyName>MapGuideNuget</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <UseIISExpress>false</UseIISExpress>
+ <IISExpressSSLPort />
+ <IISExpressAnonymousAuthentication />
+ <IISExpressWindowsAuthentication />
+ <IISExpressUseClassicPipelineMode />
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="OSGeo.MapGuide.Foundation">
+ <HintPath>..\packages\mapguide-api-base-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.Foundation.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Geometry">
+ <HintPath>..\packages\mapguide-api-base-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.Geometry.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.MapGuideCommon">
+ <HintPath>..\packages\mapguide-api-web-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.MapGuideCommon.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.PlatformBase">
+ <HintPath>..\packages\mapguide-api-base-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.PlatformBase.dll</HintPath>
+ </Reference>
+ <Reference Include="OSGeo.MapGuide.Web">
+ <HintPath>..\packages\mapguide-api-web-x64.2.4.0.7093\lib\net40\OSGeo.MapGuide.Web.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Web.DynamicData" />
+ <Reference Include="System.Web.Entity" />
+ <Reference Include="System.Web.ApplicationServices" />
+ <Reference Include="System.ComponentModel.DataAnnotations" />
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="System.Web.Extensions" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Configuration" />
+ <Reference Include="System.Web.Services" />
+ <Reference Include="System.EnterpriseServices" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Default.aspx" />
+ <Content Include="Global.asax" />
+ <Content Include="Web.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Default.aspx.cs">
+ <DependentUpon>Default.aspx</DependentUpon>
+ <SubType>ASPXCodeBehind</SubType>
+ </Compile>
+ <Compile Include="Default.aspx.designer.cs">
+ <DependentUpon>Default.aspx</DependentUpon>
+ </Compile>
+ <Compile Include="Global.asax.cs">
+ <DependentUpon>Global.asax</DependentUpon>
+ </Compile>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="packages.config" />
+ <None Include="Web.Debug.config">
+ <DependentUpon>Web.config</DependentUpon>
+ </None>
+ <None Include="Web.Release.config">
+ <DependentUpon>Web.config</DependentUpon>
+ </None>
+ <Content Include="webconfig.ini" />
+ </ItemGroup>
+ <PropertyGroup>
+ <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
+ <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <Optimize>true</Optimize>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <UseIIS>True</UseIIS>
+ <AutoAssignPort>True</AutoAssignPort>
+ <DevelopmentServerPort>58686</DevelopmentServerPort>
+ <DevelopmentServerVPath>/</DevelopmentServerVPath>
+ <IISUrl>http://localhost/MapGuideNuget64</IISUrl>
+ <NTLMAuthentication>False</NTLMAuthentication>
+ <UseCustomServer>False</UseCustomServer>
+ <CustomServerUrl>
+ </CustomServerUrl>
+ <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+ <PropertyGroup>
+ <PostBuildEvent>
+xcopy /s /y "$(SolutionDir)packages\mapguide-api-base-x64.2.4.0.7093\mapguide-api-base\*.*" "$(TargetDir)"
+xcopy /s /y "$(SolutionDir)packages\mapguide-api-web-x64.2.4.0.7093\mapguide-api-web\*.*" "$(TargetDir)"</PostBuildEvent>
+ </PropertyGroup>
+ <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
+ <!-- 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">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/MapGuideNuget.csproj.user
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/MapGuideNuget.csproj.user (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/MapGuideNuget.csproj.user 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <StartPageUrl>
+ </StartPageUrl>
+ <StartAction>CurrentPage</StartAction>
+ <AspNetDebugging>True</AspNetDebugging>
+ <SilverlightDebugging>False</SilverlightDebugging>
+ <NativeDebugging>False</NativeDebugging>
+ <SQLDebugging>False</SQLDebugging>
+ <ExternalProgram>
+ </ExternalProgram>
+ <StartExternalURL>
+ </StartExternalURL>
+ <StartCmdLineArguments>
+ </StartCmdLineArguments>
+ <StartWorkingDirectory>
+ </StartWorkingDirectory>
+ <EnableENC>False</EnableENC>
+ <AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+</Project>
\ No newline at end of file
Property changes on: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Properties
___________________________________________________________________
Added: bugtraq:number
+ true
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Properties/AssemblyInfo.cs
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Properties/AssemblyInfo.cs (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Properties/AssemblyInfo.cs 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("MapGuideNuget")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("MapGuideNuget")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("43a5bb36-748c-4637-8a4e-386ed3a7aa82")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Web.Debug.config
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Web.Debug.config (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Web.Debug.config 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+ <!--
+ In the example below, the "SetAttributes" transform will change the value of
+ "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
+ finds an attribute "name" that has a value of "MyDB".
+
+ <connectionStrings>
+ <add name="MyDB"
+ connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
+ xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+ </connectionStrings>
+ -->
+ <system.web>
+ <!--
+ In the example below, the "Replace" transform will replace the entire
+ <customErrors> section of your web.config file.
+ Note that because there is only one customErrors section under the
+ <system.web> node, there is no need to use the "xdt:Locator" attribute.
+
+ <customErrors defaultRedirect="GenericError.htm"
+ mode="RemoteOnly" xdt:Transform="Replace">
+ <error statusCode="500" redirect="InternalError.htm"/>
+ </customErrors>
+ -->
+ </system.web>
+</configuration>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Web.Release.config
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Web.Release.config (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Web.Release.config 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+ <!--
+ In the example below, the "SetAttributes" transform will change the value of
+ "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
+ finds an attribute "name" that has a value of "MyDB".
+
+ <connectionStrings>
+ <add name="MyDB"
+ connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
+ xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+ </connectionStrings>
+ -->
+ <system.web>
+ <compilation xdt:Transform="RemoveAttributes(debug)" />
+ <!--
+ In the example below, the "Replace" transform will replace the entire
+ <customErrors> section of your web.config file.
+ Note that because there is only one customErrors section under the
+ <system.web> node, there is no need to use the "xdt:Locator" attribute.
+
+ <customErrors defaultRedirect="GenericError.htm"
+ mode="RemoteOnly" xdt:Transform="Replace">
+ <error statusCode="500" redirect="InternalError.htm"/>
+ </customErrors>
+ -->
+ </system.web>
+</configuration>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Web.config
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Web.config (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/Web.config 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+
+<!--
+ For more information on how to configure your ASP.NET application, please visit
+ http://go.microsoft.com/fwlink/?LinkId=169433
+ -->
+
+<configuration>
+ <system.web>
+ <compilation debug="true" targetFramework="4.0" />
+ </system.web>
+
+</configuration>
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/packages.config
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/packages.config (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/packages.config 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="mapguide-api-base-x64" version="2.4.0.7093" targetFramework="net40" />
+ <package id="mapguide-api-web-x64" version="2.4.0.7093" targetFramework="net40" />
+</packages>
\ No newline at end of file
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/webconfig.ini
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/webconfig.ini (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64/webconfig.ini 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,198 @@
+# *****************************************************************************
+# MapGuide Web Configuration File
+#
+# WARNING: BE VERY CAREFUL WHEN MODIFYING THIS FILE AS IT COULD
+# ADVERSLY IMPACT SERVER PERFORMANCE
+# *****************************************************************************
+# COMMON VALIDATION INFORMATION
+#
+# (Unless otherwise noted under the property description)
+# -----------------------------------------------------------------------------
+# String Property Range of String Length Reserved Characters
+# -----------------------------------------------------------------------------
+# File Name 0 < Length <= 128 \/:*?"<>|
+# Folder Name 0 < Length <= 128 \/:*?"<>|
+# Log Parameters 0 <= Length <= 1024
+# Password 0 <= Length <= 64 \t\r\n\v\f
+# Path 0 < Length <= 255 *?"<>|
+# -----------------------------------------------------------------------------
+# Numeric Property Range of Numeric Value
+# -----------------------------------------------------------------------------
+# Port Number 0 <= Value <= 65535
+# *****************************************************************************
+
+[GeneralProperties]
+# *****************************************************************************
+# G E N E R A L
+#
+# Property Name Description
+# -----------------------------------------------------------------------------
+# DefaultMessageLocale ISO 639-1 name for the message locale
+# Length = 2
+# Example: en
+# or
+# Length = 5
+# Example: en-US
+#
+# WARNING: if a 5 character locale is specified
+# the first 2 characters must be lower
+# case and the last 2 characters must
+# be upper case.
+#
+# LogsPath Path where log files are stored
+# MentorDictionaryPath The path where the CS-Map Coordinate System Dictionaries are installed
+# ResourcesPath Path where the localization resource files are stored
+# TcpIpMtu The TCP/IP maximum transmission unit
+# 0 < Value <= 65535
+# TempPath Path where the temporary files are stored
+# FailoverRetryTime Time in seconds for when to retry connecting
+# to a MapGuide server that has gone offline.
+# Note: For a single Web Tier and MapGuide server
+# pair use 1. For a load balanced
+# configuration with multiple MapGuide
+# servers use 60. Values other than 1 will
+# cause a delay when re-establishing a
+# connection with the Web Tier after
+# restarting a MapGuide server.
+#
+# *****************************************************************************
+DefaultMessageLocale = en
+LogsPath = Logs/
+MentorDictionaryPath =C:\Program Files\OSGeo\MapGuide\CS-Map\Dictionaries\
+ResourcesPath =C:\Program Files\OSGeo\MapGuide\Web\www\mapagent\Resources
+TcpIpMtu = 1460
+TempPath =C:\Program Files\OSGeo\MapGuide\Web\Temp\
+FailoverRetryTime = 1
+
+[AdministrativeConnectionProperties]
+# *****************************************************************************
+# A D M I N I S T R A T I V E C O N N E C T I O N
+#
+# Property Name Description
+# -----------------------------------------------------------------------------
+# MaxConnections The maximum allowed concurrent connections for this port.
+# Default value of 2 is for a typical load when the web
+# is connected to a quad core server machine.
+#
+# Port The port to use for administration operations
+#
+# WARNING: If you change the port # here you
+# must also change the corresponding
+# port # for the server configuration
+# file.
+#
+# *****************************************************************************
+MaxConnections = 2
+Port =2810
+
+[ClientConnectionProperties]
+# *****************************************************************************
+# C L I E N T C O N N E C T I O N
+#
+# Property Name Description
+# -----------------------------------------------------------------------------
+# MaxConnections The maximum allowed concurrent connections for this port.
+# Default value of 12 is for a typical load when the web
+# is connected to a quad core server machine.
+#
+# Port The port to use for client operations
+#
+# WARNING: If you change the port # here you
+# must also change the corresponding
+# port # for the server configuration
+# file.
+#
+# *****************************************************************************
+MaxConnections = 12
+Port =2811
+
+[SiteConnectionProperties]
+# *****************************************************************************
+# S I T E C O N N E C T I O N
+#
+# Property Name Description
+# -----------------------------------------------------------------------------
+# IpAddress The IP address of the site server
+# 0 < Length <= 255
+#
+# MaxConnections The maximum allowed concurrent connections for this port.
+# Default value of 6 is for a typical load when the web
+# is connected to a quad core server machine.
+#
+# Port The port to use for site operations
+#
+# WARNING: If you change the port # here you
+# must also change the corresponding
+# port # for the server configuration
+# file.
+#
+# *****************************************************************************
+IpAddress =127.0.0.1
+MaxConnections = 6
+Port =2812
+
+[AgentProperties]
+# *****************************************************************************
+# M A P A G E N T
+#
+# Property Name Description
+# -----------------------------------------------------------------------------
+# DebugPause Number of seconds the agent pauses before
+# each request, for debugging purpose
+# 0 <= Value <= 86400
+# DisableAuthoring Disables Authoring HTTP requests
+# 0 = false and 1 = true
+# DisableWfs Disables OGC Wfs HTTP requests
+# 0 = false and 1 = true
+# DisableWms Disables OGC Wms HTTP requests
+# 0 = false and 1 = true
+# ErrorLogEnabled 0 = log disabled, 1 = log enabled
+# ErrorLogFilename Name of the log file
+# RequestLogEnabled 0 = log disabled, 1 = log enabled
+# RequestLogFilename Name of the log file
+# *****************************************************************************
+DebugPause = 0
+DisableAuthoring = 0
+DisableWfs = 0
+DisableWms = 0
+ErrorLogEnabled = 0
+ErrorLogFilename = Error.log
+RequestLogEnabled = 0
+RequestLogFilename = Request.log
+
+[OgcProperties]
+# *****************************************************************************
+# O G C S E T T I N G S
+#
+# Property Name Description
+# -----------------------------------------------------------------------------
+# WfsPassword Password to be used for credentials in WFS
+# requests
+# WmsPassword Password to be used for credentials in WMS
+# requests
+# CITEWfsEnabled Enable OGC CITE Test for WFS
+# Consider unknown requests as OGC Wfs HTTP requests
+# 0 = false and 1 = true
+# CITEWmsEnabled Enable OGC CITE Test for WMS
+# Consider unknown requests as OGC Wms HTTP requests
+# 0 = false and 1 = true
+# *****************************************************************************
+WfsPassword = wfs
+WmsPassword = wms
+CITEWfsEnabled = 0
+CITEWmsEnabled = 0
+
+[WebApplicationProperties]
+# *****************************************************************************
+# W E B A P P L I C A T I O N S E T T I N G S
+#
+# Property Name Description
+# -----------------------------------------------------------------------------
+# TemplateRootFolder The root folder containing the viewer
+# templates
+# WidgetInfoFolder The folder containing widget info files
+# ContainerInfoFolder The folder containing container info files
+# *****************************************************************************
+TemplateRootFolder =C:\Program Files\OSGeo\MapGuide\Web\www\fusion\templates\mapguide
+WidgetInfoFolder =C:\Program Files\OSGeo\MapGuide\Web\www\fusion\widgets\widgetinfo
+ContainerInfoFolder =C:\Program Files\OSGeo\MapGuide\Web\www\fusion\containerinfo
Added: trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64.sln
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64.sln (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/MapGuideNuget64.sln 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,39 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Express 2012 for Windows Desktop
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoordSysEnumTest", "CoordSysEnumTest64\CoordSysEnumTest.csproj", "{1B74DF59-B3D2-49E8-80EF-9BC5A84552F3}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DesktopConsoleTest", "DesktopConsoleTest64\DesktopConsoleTest.csproj", "{87BA0B9E-F36E-4D45-89EC-C1CD95C73B62}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DesktopViewerTest", "DesktopViewerTest64\DesktopViewerTest.csproj", "{A0DCC768-B341-426B-889A-0701A2399CE8}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{A4AD55B7-4C81-4238-846D-F78A67B138B8}"
+ ProjectSection(SolutionItems) = preProject
+ .nuget\NuGet.Config = .nuget\NuGet.Config
+ .nuget\NuGet.exe = .nuget\NuGet.exe
+ .nuget\NuGet.targets = .nuget\NuGet.targets
+ EndProjectSection
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x64 = Debug|x64
+ Release|x64 = Release|x64
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {1B74DF59-B3D2-49E8-80EF-9BC5A84552F3}.Debug|x64.ActiveCfg = Debug|x64
+ {1B74DF59-B3D2-49E8-80EF-9BC5A84552F3}.Debug|x64.Build.0 = Debug|x64
+ {1B74DF59-B3D2-49E8-80EF-9BC5A84552F3}.Release|x64.ActiveCfg = Release|x64
+ {1B74DF59-B3D2-49E8-80EF-9BC5A84552F3}.Release|x64.Build.0 = Release|x64
+ {87BA0B9E-F36E-4D45-89EC-C1CD95C73B62}.Debug|x64.ActiveCfg = Debug|x64
+ {87BA0B9E-F36E-4D45-89EC-C1CD95C73B62}.Debug|x64.Build.0 = Debug|x64
+ {87BA0B9E-F36E-4D45-89EC-C1CD95C73B62}.Release|x64.ActiveCfg = Release|x64
+ {87BA0B9E-F36E-4D45-89EC-C1CD95C73B62}.Release|x64.Build.0 = Release|x64
+ {A0DCC768-B341-426B-889A-0701A2399CE8}.Debug|x64.ActiveCfg = Debug|x64
+ {A0DCC768-B341-426B-889A-0701A2399CE8}.Debug|x64.Build.0 = Debug|x64
+ {A0DCC768-B341-426B-889A-0701A2399CE8}.Release|x64.ActiveCfg = Release|x64
+ {A0DCC768-B341-426B-889A-0701A2399CE8}.Release|x64.Build.0 = Release|x64
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
Added: trunk/MgDev/nuget/MapGuideNuget/Web.sln
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/Web.sln (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/Web.sln 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Express 2012 for Web
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MapGuideNuget", "MapGuideNuget\MapGuideNuget.csproj", "{A4665445-2B49-4808-BD7A-8A6B6AAF5237}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {A4665445-2B49-4808-BD7A-8A6B6AAF5237}.Debug|x86.ActiveCfg = Debug|x86
+ {A4665445-2B49-4808-BD7A-8A6B6AAF5237}.Debug|x86.Build.0 = Debug|x86
+ {A4665445-2B49-4808-BD7A-8A6B6AAF5237}.Release|x86.ActiveCfg = Release|x86
+ {A4665445-2B49-4808-BD7A-8A6B6AAF5237}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
Added: trunk/MgDev/nuget/MapGuideNuget/Web64.sln
===================================================================
--- trunk/MgDev/nuget/MapGuideNuget/Web64.sln (rev 0)
+++ trunk/MgDev/nuget/MapGuideNuget/Web64.sln 2013-01-13 12:26:06 UTC (rev 7310)
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Express 2012 for Web
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MapGuideNuget", "MapGuideNuget64\MapGuideNuget.csproj", "{A4665445-2B49-4808-BD7A-8A6B6AAF5237}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x64 = Debug|x64
+ Release|x64 = Release|x64
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {A4665445-2B49-4808-BD7A-8A6B6AAF5237}.Debug|x64.ActiveCfg = Debug|x64
+ {A4665445-2B49-4808-BD7A-8A6B6AAF5237}.Debug|x64.Build.0 = Debug|x64
+ {A4665445-2B49-4808-BD7A-8A6B6AAF5237}.Release|x64.ActiveCfg = Release|x64
+ {A4665445-2B49-4808-BD7A-8A6B6AAF5237}.Release|x64.Build.0 = Release|x64
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
More information about the mapguide-commits
mailing list