Reputation: 5
The type or namespace name
CameraSpace
could not be found (are you missing a using directive or an assembly reference?)"
What I have tried :
I have tested all the packages are installed properly but i still have this error shows. I added these new .NET frameworks, namely, System.windows.forms
, System.data.Linq
, System.configuration
AND as i already said all the mentions packages are installed. I'm using VS2015 and I'm not sure whether it's somehow related to VS or not. And needless to say, I'm new to C#. I spend too much time to solve it my own and watching some videos but all the errors are different with the same name 'CS0246' Please Please help me.
I have this following code :
using System;
using System.ComponentModel;
using Baselabs.Statistics.Spaces;
using Baselabs.Statistics.Models.AdditiveNoise;
namespace DataFusion
{
[DisplayName("..........")]
[Description("..............")]
class CameraMeasurementModel : MeasurementModel<CameraSpace, CVComponentsSpace>
I also want to add, using Baselabs.Statistics.Spaces;
this package give the CameraSpace
namespace
Upvotes: 0
Views: 5500
Reputation: 18954
Make sure you have added CameraSpace
assembly reference correctly.
According to Microsoft docs :
A type or namespace that is used in the program was not found. You might have forgotten to reference (-reference) the assembly that contains the type, or you might not have added the required using directive. Or, there might be an issue with the assembly you are trying to reference.
Track the possible cases in the page.
Upvotes: 2