Click to See Complete Forum and Search --> : Passing Framework as Parameter:Please reply
CodeMaker
Feb 17th, 2006, 05:48 AM
hi
i am having problem in following Line
i have shown in RED
public static void DisplaySwitchingToRefWarning(Framework framework, string sampleTitle)
Error is:
The type or namespace name 'Framework' could not be found (are you missing a using directive or an assembly reference?)
I have added aFrameWork Reference still this error comes
I am sending this question since many days
Please reply
jmcilhinney
Feb 17th, 2006, 06:08 AM
You either haven't added a reference to the assembly that contains the class to your project, or else you haven't imported the namespace of which the class is a member with a 'using' statement. If you have added the reference then you either need to import the namespace or qualify the class name in code with the namespace.
CodeMaker
Feb 17th, 2006, 06:48 AM
I have added reference Microsoft.Build.Framework
also
directive
using Microsoft.Build;
Still it says same problem.
I double clicked on References->Microsoft.Build.Framework in Solution Explorere
but there is no Types like Frame work.
Is there any other reasons
You either haven't added a reference to the assembly that contains the class to your project, or else you haven't imported the namespace of which the class is a member with a 'using' statement. If you have added the reference then you either need to import the namespace or qualify the class name in code with the namespace.
CodeMaker
Feb 17th, 2006, 07:03 AM
Actually Problem is in the file
C:\Program Files\Microsoft DirectX 9.0 SDK (February 2005)\Samples\Managed\Common and select the dxmutmisc.cs file.
So if u have DirectX installed u can check this..
You either haven't added a reference to the assembly that contains the class to your project, or else you haven't imported the namespace of which the class is a member with a 'using' statement. If you have added the reference then you either need to import the namespace or qualify the class name in code with the namespace.
jmcilhinney
Feb 17th, 2006, 07:04 AM
What is the fully qualified name of the class you are trying to use? If you've added a reference to the Microsoft.Build.Framework assembly then I very much doubt that you're using a class of that same name, so importing the Microsoft.Build namespace and specifying a class named Framework is not likely to produce the result you want.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.