Compiler Error when using VB Namespace

R

Rick

I get an error when use Microsoft.VisualBasic.CompilerServices:
Compiler Error Message: CS0234: The type or namespace name
'CompilerServices' does not exist in the namespace 'Microsoft.VisualBasic'
(are you missing an assembly reference?)


using Microsoft.VisualBasic.CompilerServices;
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
 
M

Mr. Arnold

Rick said:
I get an error when use Microsoft.VisualBasic.CompilerServices:
Compiler Error Message: CS0234: The type or namespace name
'CompilerServices' does not exist in the namespace 'Microsoft.VisualBasic'
(are you missing an assembly reference?)


using Microsoft.VisualBasic.CompilerServices;
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;

Sometimes you have to delete the reference out of the project and put it
back to fix it.
 
A

Arne Vajhøj

I get an error when use Microsoft.VisualBasic.CompilerServices:
Compiler Error Message: CS0234: The type or namespace name
'CompilerServices' does not exist in the namespace 'Microsoft.VisualBasic'
(are you missing an assembly reference?)

using Microsoft.VisualBasic.CompilerServices;
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;


Do you have a ref to Microsoft.VisualBasic.dll ?

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top