Ask Your Question
2

After switching from Visual Studio 2015 to 2022, Google tests are linked to the incorrect project. What steps can be taken to resolve this issue?

asked 2022-06-30 11:00:00 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-05-24 07:00:00 +0000

woof gravatar image

There are several steps that can be taken to resolve the issue of incorrect project linkage in Google tests after switching from Visual Studio 2015 to 2022. Some of these steps are:

  1. Check the project settings: Go to the project settings and ensure that the corresponding project is selected for Google tests.

  2. Check the test settings: Verify that the necessary Google test settings such as the test project paths and configuration are set correctly.

  3. Clean and rebuild the project: Clean the project and rebuild it to ensure that all the files are up-to-date and that the correct project is linked to Google tests.

  4. Delete the Google test project and create a new one: In some cases, it may be necessary to delete the existing Google test project and create a new one, linking it to the correct test project.

  5. Check the test adapter settings: Ensure that the necessary test adapters are installed and set up correctly.

  6. Check for compatibility issues: Ensure that both Visual Studio versions are compatible and that the Google test framework is compatible with Visual Studio 2022.

If none of these steps resolve the issue, it may be necessary to seek further assistance from the Visual Studio support team or the Google test community.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-06-30 11:00:00 +0000

Seen: 8 times

Last updated: May 24 '21