Build and Edit with Visual Studio Express

Apr 27, 2011 at 8:51 AM

I am using Visual Studio Express and attempting to build the solutions.

I have substituted the 'devenv command' with 'msbuild' and successfully built the Appendises solution.

===============================

  AppendixG.WPF -> C:\Users\alain\Documents\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\WPF\Bin\MilSym.AppendixG.WPF.dll
Done Building Project "C:\Users\alain\Documents\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\WPF\AppendixG\AppendixG.WPF.csproj" (default targets).

Done Building Project "C:\Users\alain\Documents\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Appendices.sln" (default targets).


Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:23.06

===============================

I am having difficulty building MilSym solution.  I get the following errors:

===============================

Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.1]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build started 27/04/2011 5:48:06 PM.
Project "C:\Users\alain\Documents\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\MilSym.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|Mixed Platforms".

<<<<< Lots of compile messages snipped >>>>>

Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
  C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE;SILVERLIGHT /reference:"C:\Users\ala
  in\Documents\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\MilGraph\Bin\Debug\MilSym.MilGraph.dll" /reference:"C:\Users\alain\Documents\Visual Studio 20
  10\Projects\Visual C#\Mil Symbol Generator\Silverlight\MilSymbol\Bin\Debug\MilSym.MilSymbol.dll" /reference:"c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silv
  erlight\v4.0\mscorlib.dll" /reference:"c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\System.Core.dll" /reference:"c:\Program Files (x86)\Refer
  ence Assemblies\Microsoft\Framework\Silverlight\v4.0\system.dll" /reference:"c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\System.Net.dll" /re
  ference:"c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\System.Windows.Browser.dll" /reference:"c:\Program Files (x86)\Reference Assemblies\Mic
  rosoft\Framework\Silverlight\v4.0\System.Windows.dll" /reference:"c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\System.Xml.dll" /debug+ /debug
  :full /optimize- /out:obj\Debug\MilSym.EsriSupport.dll /target:library EsriLocationEnumerator.cs EsriPolyLayer.cs EsriLocation.cs EsriLocationCollection.cs EsriLocationRect.cs E
  sriMilSymFactory.cs EsriMilSymLayer.cs Properties\AssemblyInfo.cs "C:\Users\alain\AppData\Local\Temp\Silverlight,Version=v4.0.AssemblyAttributes.cs"
EsriPolyLayer.cs(19,11): error CS0246: The type or namespace name 'ESRI' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Documents
\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriPolyLayer.cs(20,11): error CS0246: The type or namespace name 'ESRI' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Documents
\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriPolyLayer.cs(21,11): error CS0246: The type or namespace name 'ESRI' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Documents
\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriPolyLayer.cs(28,34): error CS0246: The type or namespace name 'GraphicsLayer' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\
Documents\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriLocation.cs(18,11): error CS0246: The type or namespace name 'ESRI' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Documents\
Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriLocation.cs(24,33): error CS0246: The type or namespace name 'MapPoint' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Docume
nts\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriLocationCollection.cs(19,11): error CS0246: The type or namespace name 'ESRI' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\
Documents\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriLocationCollection.cs(25,43): error CS0246: The type or namespace name 'PointCollection' could not be found (are you missing a using directive or an assembly reference?) [C:\U
sers\alain\Documents\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriLocationRect.cs(18,11): error CS0246: The type or namespace name 'ESRI' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Docume
nts\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriLocationRect.cs(24,37): error CS0246: The type or namespace name 'Envelope' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Do
cuments\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriMilSymFactory.cs(18,11): error CS0246: The type or namespace name 'ESRI' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Docum
ents\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriMilSymLayer.cs(21,11): error CS0246: The type or namespace name 'ESRI' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Documen
ts\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriMilSymLayer.cs(22,11): error CS0246: The type or namespace name 'ESRI' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Documen
ts\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriMilSymLayer.cs(23,11): error CS0246: The type or namespace name 'ESRI' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Documen
ts\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriMilSymLayer.cs(31,36): error CS0246: The type or namespace name 'ElementLayer' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain
\Documents\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriPolyLayer.cs(23,29): error CS0246: The type or namespace name 'ESRI' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Documents
\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriLocationRect.cs(35,33): error CS0246: The type or namespace name 'MapPoint' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Do
cuments\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriLocationRect.cs(35,47): error CS0246: The type or namespace name 'MapPoint' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Do
cuments\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriLocationRect.cs(46,33): error CS0246: The type or namespace name 'Envelope' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Do
cuments\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriMilSymLayer.cs(89,17): error CS0246: The type or namespace name 'Envelope' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Doc
uments\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriMilSymLayer.cs(99,17): error CS0246: The type or namespace name 'Map' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Document
s\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]
EsriMilSymLayer.cs(151,16): error CS0246: The type or namespace name 'Map' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\alain\Documen
ts\Visual Studio 2010\Projects\Visual C#\Mil Symbol Generator\Silverlight\EsriSupport\EsriSupport.csproj]

====================================

I would appreciate knowing if I am pursuing a dead end trying to use Express edition to build this or if it can be overcome.  Trying to use the IDE also fails because Express does not support solution Folders.

Regards,

PJ

 

 

Coordinator
Apr 28, 2011 at 3:19 AM

I believe MSBuild should work. I've used MSBuild on both the SLN and the CSPROJ files.

The problem may be in where MSBuild expects to find the ESRI developer libraries. MilSym doesn't include the ESRI developer libraries since ESRI expects individual developers to sign up for a developer license prior to accessing these files. You can see this if you compare the BingSupport.csproj and the EsriSupport.csproj files, so a possible approach might be to include hard-coded relative paths in the EsriSupport.csproj file to local copies of the ESRI libraries (similar to those that are present in the BingSupport.csproj file). If you're not using ESRI you should be able drop the ESRI-specific projects entirely (those that begin with ESRI).

Apr 29, 2011 at 12:22 PM

Thanks for your kind response.  That gives me what I need to go forward on getting the tools built.

Thanks,

PJ

Feb 21, 2012 at 8:48 AM
Edited Feb 21, 2012 at 10:55 AM

Currently, it not possible to build MilSym solution using VS Express 2010 out of the box by just opening the solution because some of the MilSym project files are using a feature that is not supported by VS Express but available in VS Pro and Ultimate. VS Express can not build projects with embedded folders. So you have to mannually clear out this "usupported feature" in the csproj files and clean up references. I assume that the author of MilSym uses VS Pro or Ultimate and didn't noticed this difference between the Express and Pro/Ultimate versions. It would be cool if M$ would introduce this feature for VS Express, too. (Or the the author should not use this feature usage for an Open Source community project if he wants to "invite" everyone to take part in the development... by the way, I use VS 2008 Pro and build ability with Express 2010 would be a cool option to debug and understand the code more easily.)

Coordinator
Feb 27, 2012 at 3:33 AM

OK - I'll check into the embedded folders issue. I think it may be setup that way to support both WPF and Silverlight in the same project.

I don't know exactly how this will play out at this time.