Open a C++ Visual studio code in an older version RRS feed

  • Question

  • Hello,

    for university i had to write a code and hand it in. Problem is that i used Visual Studio 2019, but my teachers runs the 2017 version. Will there be any problems when she tries to run the code or do i have to save it in a specific way?

    thanks alot
    • Edited by berbel2020 Saturday, December 14, 2019 1:37 PM
    Saturday, December 14, 2019 1:36 PM

All replies

  • It should be ok if you dont use any VS 2019 only project types like .net core 3 for example
    Saturday, December 14, 2019 8:51 PM
  • As Ken T. wrote, this should be OK. C++ projects are very similar in VS 2019 and 2017. But better ask your teacher first to be sure.

    If they insist on the 2017 compiler, you can install it into VS 2019. In the installer, go to individual components and install "MSVC v141 - VS2017 C++ x64/x86 build tools".

    Then go to the project properties and select this as the Platform toolset.

    -- pa

    Saturday, December 14, 2019 9:23 PM
  • thanks alot to both of you!
    Sunday, December 15, 2019 11:26 AM
  • As Pavel said, ask your instructor.

    It is not clear what it is you are required to hand in. If the source code only then it is likely there is not a problem.

    You do not say what libraries you will be using. Visual Studio typically uses different versions of libraries but you probably can set your VS 2019 project to use the relevant previous version. That will help you avoid features that do not work in VS 2017. Also, you might need to change the version of the compiler. Your instructor should be able to explain how to do all that.

    Sam Hobbs

    Sunday, December 15, 2019 6:25 PM