dotnet / dotnet/msbuild

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

Open
#4,559 3 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.