Skip to content

Receiving CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' using MSBuild.exe #4559

@soumyabrata201

Description

@soumyabrata201

I am trying to build a dotnet solution using the below command but getting error: CS0234 and CS0246

Command:

"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" Test.1.8.131.sln

error CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

error CS0246: The type or namespace name 'TestClass' could not be found (are you missing a using directive or an assembly reference?)

error CS0246: The type or namespace name 'TestInitialize' could not be found (are you missing a using directive or an assembly reference?)

error CS0246: The type or namespace name 'TestMethod' could not be found (are you missing a using directive or an assembly reference?)

Can anyone please tell if I am missing something.

All these are failing while trying to build the test Projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions