Getting Started

98 views
Skip to first unread message

kirsten

unread,
Aug 28, 2011, 3:04:36 PM8/28/11
to magellan-friends
Hello
I am trying to set up the getting started calculator demo, but I get
the following error.
The type or namespace name 'ViewModel' could not be found

I have the reference to Magellan.dll and using Magellan;
Any ideas?
Thanks
Kirsten

Paul Stovell

unread,
Aug 29, 2011, 6:33:30 PM8/29/11
to magellan...@googlegroups.com
Hi Kirsten,

You may need to include 'using Magellan.Framework' as well

Regards,
Paul Stovell

kirsten

unread,
Aug 29, 2011, 7:29:42 PM8/29/11
to magellan-friends
Thanks Paul
Now I just have
The type or namespace name 'ICommand' could not be found (are you
missing a using directive or an assembly reference?)
What reference would that be?
Regards
Kirsten Greed
> > Kirsten- Hide quoted text -
>
> - Show quoted text -

Caleb Vear

unread,
Aug 29, 2011, 7:34:13 PM8/29/11
to magellan...@googlegroups.com
ICommand is found in System.Windows.Input which is in PresentationCore.dll

I couldn't remember this off the top of my head so I searched for WPF ICommand and the msdn page was the first thing to come up.  You can use this technique for pretty much any class in the .net framework if your not sure which assemblies you need to add a reference to.

Caleb

kirsten

unread,
Aug 29, 2011, 9:17:57 PM8/29/11
to magellan-friends
Thanks Celeb
The next problem is where I find UrlParameter
Google seems to say system.web.mvc but I dont know where that comes
from
Kirsten

On Aug 30, 9:34 am, Caleb Vear <caleb.v...@gmail.com> wrote:
> ICommand
> <http://msdn.microsoft.com/en-us/library/system.windows.input.icommand...>is
> > > - Show quoted text -- Hide quoted text -

Caleb Vear

unread,
Aug 29, 2011, 9:30:40 PM8/29/11
to magellan...@googlegroups.com
I suspect you are after Magellan.Routing.UrlParameter.  It is in the Magellan.dll assembly.  Are you using Visual Studio?  Normally if you type the name of a type which you don't have the appropriate using <namespace> statement for if there is a type with that name in a referenced assembly it will show a little blue square under the type name (if you have the caret over the missing type name).  
image.png 
When that box is visible click on it or press Control + . (the period key) it will popup a list of actions you can perform to fix problem.  One of the actions will be to add the required using statement.
image.png

Cheers,

Caleb
image.png
image.png

kirsten greed

unread,
Aug 29, 2011, 9:57:14 PM8/29/11
to magellan...@googlegroups.com
Hi Caleb and Paul
I added using Magellan.Routing
next problem is
Error 1 The namespace '<global namespace>' already contains a definition for 'MagellanHelloWorld' C:\learn\magellan\magel\magel\obj\x86\Debug\views\Result\ResultView.g.cs 44 22 MagellanHelloWorld
I did rename all the namespaces to MagellanHelloWorld 
 
Do you happen to have a completed .zip file of the getting started project?
Thanks
Kirsten

image.png
image.png

Caleb Vear

unread,
Aug 29, 2011, 10:12:00 PM8/29/11
to magellan...@googlegroups.com
There are a number of samples included in the magellan sources.  Head over to http://code.google.com/p/magellan-framework/ clone a copy of repository (or download the latest copy of the source from the downloads page).  The samples can be found under src\Samples.

You can also download the Visual Studio project template from the magellan home page which might help you get started.

Caleb
image.png
image.png
Reply all
Reply to author
Forward
0 new messages