how to get target platform 8.1 back with visual studio 2015 after installing studio 2017?
up vote
0
down vote
favorite
I have existing projects that run (need) visual studio 2015 and target
platform 8.1. I also have projects that need visual studio 2017.
So i recently installed 2017. This worked fine, for some time, for the new 2017-based projects.
Now i need to do a bug fix on the 2015-based projects.
What i see in the IDE in Properties->General->Target Platfrom is 10.0.10586.0.
One can see a dropdown that lists "10.0.17134.0 and 8.1". Selecting 8.1 works for a second but the selection is then not taken. It jumps back to 10.0.10586.0.
Without 8.1 the whole windows.h include files are not found, compilation doesnt work.
Now the fun part - i still have yet another (tiny) project that uses 2015.
This project does list 8.1 as target platform. And it compiles.
So my overall machine install must be good.
Somehow installing 2017 must have messed a part of my 2015 projects, but
not all. This looks really bizare as the .vcproject shows as unchanged in tortoisesvn.
Does anybody know how to verify environment variables etc that are used by visual studio with respect to the sdk ? Or does Microsoft use yet another database to
store project related extra information ?
EDIT
Here is my solution : I did create a new project from scratch. This has 8.1 as default and works fine. I then opened both the old .vcproj file and copied the
<ItemGroup>
<ClCompile Include="myfile1.cpp" />
<ClCompile Include="myfile2.cpp" />
<ClCompile Include="etc.cpp" />
</ItemGroup>
This way at least all my source files can be rescued to the new project file in a minute. The xml syntax for ItemGroups is clean. For all other settings i used the IDE. Opened 2 session of visual studio and copied manually the settings for libs, paths, flags etc. Now it works again. Doing a windiff on both .vcxproj files doesnt give a clear answer.
The new project does have entries like :
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>false</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
I didnt test to retrofit this to the old vcxproj since i am running out of time,
and i have a working solution now. I double checked - my old vcxproj had been indeed under source control, so it did -not- change. The most likely candidate is now Cuda.
Cuda has very nice and helpful extensions for visual studio.
my squence had been
september - visual studio 2015 works
october - added cuda 9, worked with cuda. Did not touch projects from september. Most likely the problem happened here, but i didnt see because i do not builds every day/week.
Later in october i installed Unreal Engine & Visual Studio 2017. This looked
good back then, but i again didnt build the vs 2015 projects. So
there is a possibility that this had an impact.
Last but not least i installed Intel Embree, which doesnt look suspicious.
It doesnt change anything with visual studio. The Intel Embree guys dont use the Microsoft Compiler. I just mention it so the group of possible suspect is identified.
So if you run into the same problem - build the solution (project) from scratch.
visual-studio-2015 visual-studio-2017
add a comment |
up vote
0
down vote
favorite
I have existing projects that run (need) visual studio 2015 and target
platform 8.1. I also have projects that need visual studio 2017.
So i recently installed 2017. This worked fine, for some time, for the new 2017-based projects.
Now i need to do a bug fix on the 2015-based projects.
What i see in the IDE in Properties->General->Target Platfrom is 10.0.10586.0.
One can see a dropdown that lists "10.0.17134.0 and 8.1". Selecting 8.1 works for a second but the selection is then not taken. It jumps back to 10.0.10586.0.
Without 8.1 the whole windows.h include files are not found, compilation doesnt work.
Now the fun part - i still have yet another (tiny) project that uses 2015.
This project does list 8.1 as target platform. And it compiles.
So my overall machine install must be good.
Somehow installing 2017 must have messed a part of my 2015 projects, but
not all. This looks really bizare as the .vcproject shows as unchanged in tortoisesvn.
Does anybody know how to verify environment variables etc that are used by visual studio with respect to the sdk ? Or does Microsoft use yet another database to
store project related extra information ?
EDIT
Here is my solution : I did create a new project from scratch. This has 8.1 as default and works fine. I then opened both the old .vcproj file and copied the
<ItemGroup>
<ClCompile Include="myfile1.cpp" />
<ClCompile Include="myfile2.cpp" />
<ClCompile Include="etc.cpp" />
</ItemGroup>
This way at least all my source files can be rescued to the new project file in a minute. The xml syntax for ItemGroups is clean. For all other settings i used the IDE. Opened 2 session of visual studio and copied manually the settings for libs, paths, flags etc. Now it works again. Doing a windiff on both .vcxproj files doesnt give a clear answer.
The new project does have entries like :
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>false</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
I didnt test to retrofit this to the old vcxproj since i am running out of time,
and i have a working solution now. I double checked - my old vcxproj had been indeed under source control, so it did -not- change. The most likely candidate is now Cuda.
Cuda has very nice and helpful extensions for visual studio.
my squence had been
september - visual studio 2015 works
october - added cuda 9, worked with cuda. Did not touch projects from september. Most likely the problem happened here, but i didnt see because i do not builds every day/week.
Later in october i installed Unreal Engine & Visual Studio 2017. This looked
good back then, but i again didnt build the vs 2015 projects. So
there is a possibility that this had an impact.
Last but not least i installed Intel Embree, which doesnt look suspicious.
It doesnt change anything with visual studio. The Intel Embree guys dont use the Microsoft Compiler. I just mention it so the group of possible suspect is identified.
So if you run into the same problem - build the solution (project) from scratch.
visual-studio-2015 visual-studio-2017
"It jumps bacK" is quite unusual, very hard to imagine that you didn't do something else. Maybe you ought to focus on the more obvious mishap, there is no good reason why the #include should fail with other SDK versions. That's pretty bad, we can't generally recommend the "reformat disk drive" solution although that almost surely will fix the problem.
– Hans Passant
Nov 13 at 12:49
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have existing projects that run (need) visual studio 2015 and target
platform 8.1. I also have projects that need visual studio 2017.
So i recently installed 2017. This worked fine, for some time, for the new 2017-based projects.
Now i need to do a bug fix on the 2015-based projects.
What i see in the IDE in Properties->General->Target Platfrom is 10.0.10586.0.
One can see a dropdown that lists "10.0.17134.0 and 8.1". Selecting 8.1 works for a second but the selection is then not taken. It jumps back to 10.0.10586.0.
Without 8.1 the whole windows.h include files are not found, compilation doesnt work.
Now the fun part - i still have yet another (tiny) project that uses 2015.
This project does list 8.1 as target platform. And it compiles.
So my overall machine install must be good.
Somehow installing 2017 must have messed a part of my 2015 projects, but
not all. This looks really bizare as the .vcproject shows as unchanged in tortoisesvn.
Does anybody know how to verify environment variables etc that are used by visual studio with respect to the sdk ? Or does Microsoft use yet another database to
store project related extra information ?
EDIT
Here is my solution : I did create a new project from scratch. This has 8.1 as default and works fine. I then opened both the old .vcproj file and copied the
<ItemGroup>
<ClCompile Include="myfile1.cpp" />
<ClCompile Include="myfile2.cpp" />
<ClCompile Include="etc.cpp" />
</ItemGroup>
This way at least all my source files can be rescued to the new project file in a minute. The xml syntax for ItemGroups is clean. For all other settings i used the IDE. Opened 2 session of visual studio and copied manually the settings for libs, paths, flags etc. Now it works again. Doing a windiff on both .vcxproj files doesnt give a clear answer.
The new project does have entries like :
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>false</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
I didnt test to retrofit this to the old vcxproj since i am running out of time,
and i have a working solution now. I double checked - my old vcxproj had been indeed under source control, so it did -not- change. The most likely candidate is now Cuda.
Cuda has very nice and helpful extensions for visual studio.
my squence had been
september - visual studio 2015 works
october - added cuda 9, worked with cuda. Did not touch projects from september. Most likely the problem happened here, but i didnt see because i do not builds every day/week.
Later in october i installed Unreal Engine & Visual Studio 2017. This looked
good back then, but i again didnt build the vs 2015 projects. So
there is a possibility that this had an impact.
Last but not least i installed Intel Embree, which doesnt look suspicious.
It doesnt change anything with visual studio. The Intel Embree guys dont use the Microsoft Compiler. I just mention it so the group of possible suspect is identified.
So if you run into the same problem - build the solution (project) from scratch.
visual-studio-2015 visual-studio-2017
I have existing projects that run (need) visual studio 2015 and target
platform 8.1. I also have projects that need visual studio 2017.
So i recently installed 2017. This worked fine, for some time, for the new 2017-based projects.
Now i need to do a bug fix on the 2015-based projects.
What i see in the IDE in Properties->General->Target Platfrom is 10.0.10586.0.
One can see a dropdown that lists "10.0.17134.0 and 8.1". Selecting 8.1 works for a second but the selection is then not taken. It jumps back to 10.0.10586.0.
Without 8.1 the whole windows.h include files are not found, compilation doesnt work.
Now the fun part - i still have yet another (tiny) project that uses 2015.
This project does list 8.1 as target platform. And it compiles.
So my overall machine install must be good.
Somehow installing 2017 must have messed a part of my 2015 projects, but
not all. This looks really bizare as the .vcproject shows as unchanged in tortoisesvn.
Does anybody know how to verify environment variables etc that are used by visual studio with respect to the sdk ? Or does Microsoft use yet another database to
store project related extra information ?
EDIT
Here is my solution : I did create a new project from scratch. This has 8.1 as default and works fine. I then opened both the old .vcproj file and copied the
<ItemGroup>
<ClCompile Include="myfile1.cpp" />
<ClCompile Include="myfile2.cpp" />
<ClCompile Include="etc.cpp" />
</ItemGroup>
This way at least all my source files can be rescued to the new project file in a minute. The xml syntax for ItemGroups is clean. For all other settings i used the IDE. Opened 2 session of visual studio and copied manually the settings for libs, paths, flags etc. Now it works again. Doing a windiff on both .vcxproj files doesnt give a clear answer.
The new project does have entries like :
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>false</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
I didnt test to retrofit this to the old vcxproj since i am running out of time,
and i have a working solution now. I double checked - my old vcxproj had been indeed under source control, so it did -not- change. The most likely candidate is now Cuda.
Cuda has very nice and helpful extensions for visual studio.
my squence had been
september - visual studio 2015 works
october - added cuda 9, worked with cuda. Did not touch projects from september. Most likely the problem happened here, but i didnt see because i do not builds every day/week.
Later in october i installed Unreal Engine & Visual Studio 2017. This looked
good back then, but i again didnt build the vs 2015 projects. So
there is a possibility that this had an impact.
Last but not least i installed Intel Embree, which doesnt look suspicious.
It doesnt change anything with visual studio. The Intel Embree guys dont use the Microsoft Compiler. I just mention it so the group of possible suspect is identified.
So if you run into the same problem - build the solution (project) from scratch.
visual-studio-2015 visual-studio-2017
visual-studio-2015 visual-studio-2017
edited Nov 13 at 17:19
asked Nov 13 at 11:04
MatthiasL
214
214
"It jumps bacK" is quite unusual, very hard to imagine that you didn't do something else. Maybe you ought to focus on the more obvious mishap, there is no good reason why the #include should fail with other SDK versions. That's pretty bad, we can't generally recommend the "reformat disk drive" solution although that almost surely will fix the problem.
– Hans Passant
Nov 13 at 12:49
add a comment |
"It jumps bacK" is quite unusual, very hard to imagine that you didn't do something else. Maybe you ought to focus on the more obvious mishap, there is no good reason why the #include should fail with other SDK versions. That's pretty bad, we can't generally recommend the "reformat disk drive" solution although that almost surely will fix the problem.
– Hans Passant
Nov 13 at 12:49
"It jumps bacK" is quite unusual, very hard to imagine that you didn't do something else. Maybe you ought to focus on the more obvious mishap, there is no good reason why the #include should fail with other SDK versions. That's pretty bad, we can't generally recommend the "reformat disk drive" solution although that almost surely will fix the problem.
– Hans Passant
Nov 13 at 12:49
"It jumps bacK" is quite unusual, very hard to imagine that you didn't do something else. Maybe you ought to focus on the more obvious mishap, there is no good reason why the #include should fail with other SDK versions. That's pretty bad, we can't generally recommend the "reformat disk drive" solution although that almost surely will fix the problem.
– Hans Passant
Nov 13 at 12:49
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53279614%2fhow-to-get-target-platform-8-1-back-with-visual-studio-2015-after-installing-stu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
"It jumps bacK" is quite unusual, very hard to imagine that you didn't do something else. Maybe you ought to focus on the more obvious mishap, there is no good reason why the #include should fail with other SDK versions. That's pretty bad, we can't generally recommend the "reformat disk drive" solution although that almost surely will fix the problem.
– Hans Passant
Nov 13 at 12:49