how to solve the type and namespace could not be found

101 views Asked by At

I am trying to make a cross platform application using MONO. i developed the project into c#(windows) and I want to run that project into Linux. For that purpose i am using MONO.But when i am running my project then I am getting error that the type and namespace could not be found.Actually I have created two partition of the project ,one is main function and other is the rest of the logic.And to access the other functionality i am using the namespace.but when i am running i am getting error

enter image description here

Here is the line where i am getting error in line 2 and 3

enter image description here

1

There are 1 answers

4
Suresh Kumar Veluswamy On BEST ANSWER

You need to pass the referenced assembly path using -pkg switch. I think you did not reference VehicleRoutPlannerCore dll while compiling.

Please refer to http://linux.die.net/man/1/mcs

you should invoke it like

mcs -pkg:path-to-VehicleRoutPlannerCore-assembly VehicleRoutingConsole.cs