Skip to content

Hot-Swapping not working with VS 2017 + v140 toolset (w/o VS 2015 IDE installed) #11

@benjaminbojko

Description

@benjaminbojko

This block is amazing! I haven't gotten around to actually integrating it into one of our active projects, but got the samples running and oh boy, this will change a lot for us.

One thing I stumbled over was that I was trying to get the sample running in VS 2017 Community Edition (latest version) with the 2015 toolset installed (without installing the full VS 2015 IDE). The project would successfully recompile on changes without error, but the running app wouldn't update.

Once I installed VS 2015 Community Edition (also latest version) and after another minor issue (see blow) the app successfully recompiled and reloaded.

Do you know of any compatibility issues between the v140 toolsets or runtimes available in VS 2017 vs 2015?

A bit more of a trivial (?) problem was that when switching between VS 2015 and 2017 I had to manually delete the proj/build/ folder because otherwise VS would keep complaining about missing PCH files (cleaning the solution via Build / Clean Solution wouldn't do the trick):

1>/../src/Test.cpp: fatal error C1083: Cannot open precompiled header file: '[...]\Cinder-0.9.2\blocks\Cinder-Runtime\samples\ImGui\vc2015\build\x64\Debug_Shared\intermediate\runtime\Test\build\Test.pch': No such file or directory
1>/build/x64/Debug_Shared/intermediate/runtime/Test/TestFactory.cpp: fatal error C1083: Cannot open precompiled header file: '[...]\Cinder-0.9.2\blocks\Cinder-Runtime\samples\ImGui\vc2015\build\x64\Debug_Shared\intermediate\runtime\Test\build\Test.pch': No such file or directory

Once I had the 2015 IDE installed and the project build dir manually wiped, I could run the app in both VS 2015 and 2017, so ultimately the only real price to pay was to install the full VS 2015 IDE, but would love to help investigate this more further (or at least point it out for other VS 2017 users).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions