None of my projects (all C++) load on new computer

Ed Broughton 31 Reputation points
2020-08-28T13:24:35.677+00:00

I recently replaced a computer.

On the new computer, none of my Visual Studio projects will load (they are all C++).

I receive the following error message:

error : Project "" does not contain any configuration.

The lack of useful information in the error message is quite lame.

I suspect that the problem may be related to my use of the following files:

Microsoft.Cpp.Win32.user.props
Microsoft.Cpp.x64.user.props

These files are critical (and, indirectly, provide the needed configurations).

The latest version of Visual Studio 2019 (on the new computer) does not create those files.

This does not seem to occur on my new computer.

On my “old” computer, they exist in

C:\Users\Me\AppData\Local\Microsoft\MSBuild\v4.0

That directory did not even exist on the new computer - so I created it, and put the above 2 .props files there.

I also copied them to :

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160

[Where many other .props files exist.]

I read an online post that stated that, although Visual Studio no longer creates those files, it will use them, if they exist.

However, I suspect that they are not being used on my new computer.

That is:

On my old computer, 64 bit builds automatically import Microsoft.Cpp.x64.user.props, and 32 bit builds automatically import Microsoft.Cpp.Win32.user.props. Apparently, this does not occur on my new computer.

Again, it is absurdly lame that Visual Studio does not provide details regarding failure to load a project.

So, my question is, how do I handle this?

  • Must I somehow tell Visual Studio to use those files?
  • Is there another location in which they should reside?
  • Is there another file (or files) that now serves the same purpose?

Basically, how do I get the functionality that I previously obtained via those two .props files?

Thanks in advance

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,753 questions
0 comments No comments
{count} votes

Accepted answer
  1. RLWA32 45,691 Reputation points
    2020-08-28T13:33:53.57+00:00

    From how-to-set-up-global-include-path-for-c.html

    See suggested alternatives in the solution contained in the above link.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.