How to disable VS intellisense when devenv is called to build a command line?

We use devenv to create the source code on the command line, for example:

devenv xyz.sln /build 

I noticed that even if the GUI is not open, intellisense is still loading. Messages like this make me believe this:

 [Failure] Could not find file 'C:\xyz\Services\Platform\DataProcessor\WebServiceClient.g.cs'. 

This is a generated file, so of course it does not exist at the beginning. In any case, such messages indicate that intellisense is running, and therefore resources are being lost.

Can I disable it when devenv builds the code on the command line, but did it allow otherwise?

Explanation

The assembly will not work! This is due to the fact that from the point of view of the assembly there are no problems - the source dependency files are generated before projects that actually depend on them. So, in terms of clean assembly, everything is in order.

This error is generated by Intellisense, which looks ahead and notices that some projects link to non-existing files. This is completely unnecessary when devenv is used to build on the command line, on the contrary, it creates noise at the console output.

+8
visual-studio-2015 intellisense
source share
1 answer

I do not think this is due to indexing (IntelliSense).

This error is caused by the fact that solution or project files have a link to this particular file. If the file is missing from the file system during build, you will get this error.

I would recommend looking at the build order in your project. This article describes how to ensure that your project is built in the expected manner.

In particular, try first creating the source file, and then other projects that require them.

-one
source share

All Articles