question

ChuDejun-6230 avatar image
0 Votes"
ChuDejun-6230 asked PengGe-MSFT commented

Visual Sdudio 2017 Professional failed to build but no errors

My Visual Studio 2017 Professional failed to build any solution/project even a newly created template project for example a simple console application.

Each time I got "Rebuild All: 0 succeeded, x failed, 0 skipped" on output, and nothing in Error List.

I even could not clean a solution/project (got failed message for the cleaning)

vs-msbuild
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi , @ChuDejun-6230
May I know if you have got any chance to check my answer?

0 Votes 0 ·
cooldadtx avatar image
0 Votes"
cooldadtx answered ChuDejun-6230 commented

I'm assuming here that you are using the full version of VS 2017 and not just the shell from, say SSMS. I'm also assuming that everything is installed correctly and that you don't have a pending reboot in order.

What type of project(s) are you trying to build? I assume you see the appropriate templates in the New Project dialog?

Under Tools \ Options -> Projects and Solutions \ Build and Run did you accidentally set the build output to Quiet from the default of minimal?

If you go to the Dev command line and then to the solution directory and run msbuild directly does it produce errors?

· 9
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I can build using Dev command prompt without errors.

0 Votes 0 ·

That means your project file and MSBuild environment are good. In your solution how many projects do you have? Can you enable the detailed logging in MSBuild output and show us the logs?

0 Votes 0 ·

Visual Studio is failing to build any solution/project even a newly created console template project without any
code added as below,

 class Program
 {
     static void Main(string[] args)
     {
     }
 }

Visual Studio build Output

1>------ Build started: Project: ConsoleXYZ, Configuration: Debug Any CPU ------
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========




0 Votes 0 ·
Show more comments
PengGe-MSFT avatar image
0 Votes"
PengGe-MSFT answered

Hi @ChuDejun-6230

I cannot reproduce your issue on my side.
You can try to repair Visual Studio, or use Devenv.exe /safemode command to start Visual Studio. If the problem persists, I suggest you can start a new thread and report this issue to VS Product Team in our Developer Community with some reproduced or detailed information. if you do report this issue, please share the link here who are interested or meet the same or similar issue can go to vote for this thread.

Sincerely,
Peng


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.