We use devenv to build our source code on the command line, like this:
devenv xyz.sln /build
I noticed that even though no GUI is open, intellisense is still loaded. Messages like this make me believe this is the case:
[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. Anyway, messages like this indicate that intellisense is running and hence resources are wasted.
Can I disable it when devenv builds the code on the command line, but have it enabled otherwise?
Clarification
The build does not fail! This is because there is no problem from the build perspective - the dependency source files are generated before the projects that actually depend on them. So, from the pure build perspective everything is fine.
This error is produced by the Intellisense, which looks forward and notices that some projects reference non existing files. This is totally not needed when devenv is used to build on the command line, on the contrary, it makes noise on the console output.
EDIT 1
We moved away from using devenv for command line builds about a year ago when we migrated to VS 2017. The developers do not seem to experience the concurrency issues we sometimes have with msbuild on the CI servers when running parallel build. This happens when building our Silverlight solution. The CI build sometimes fails complaining about a zip file being in use. Developers do not face it, because they do not compile it very often (it is being phased out, after all).
So, no devenv command line builds any more.