Cannot add file to filter in Visual Studio 2015, Qt Visual Sudio Tools
I've installed Qt 5.9 from the online installer chosing msvc2015 64 bit it's at the version 5.9.0-201705292002, then installed Qt Visual Studio Tools extension(version 2.1.1) in Visual Studio 2015, added Qt's installation path to Qt options inside Visual Studio, then i proceed to create a new Qt Gui Application it starts to create the solution after a few seconds it fails with the following message: Cannot add solutionname.cpp to filter.
If try to create a Qt Console Application or Qt Class Library it just works or if I try to create a new project in Qt Creator it works also and I can run it.
There's my visual studio info:
Hi enghell and welcome to the Qt forum,
I've good news for you. On my windows 8.1 system with Qt 5.9 I can make a Gui application in VS community 2015 using Qt Visual Studio Tools 2.1.1. Now we need to see what is different in your case.
If I understand you correctly you start a new project in VS community like this? :
Select New Project > Installed > Templates > Visual C++ > Qt > Qt GUI Application.
The reason I ask there is a bug when starting from Qt Creator and using the pro file in VS community 2015 : QTBUG-60059
I'm on windows 10 and indeed I create the project from inside Visual Studio 2015 templates.
could be a lucky shot, but do you have administrator rights on your pc ?
Could you test bycreating a new project after starting visual studio as administrator=
RMB on executable and select "run as administrator"
VS is rather restrictive on this
Thanks for the follow up, I've tried running VS as admin but didn't work, will try in VS 2017 as well VS 2010 just to check if it's something related to the VS version, or maybe a problem with my machine setup and update with the results.
It works well in VS 2017(using VS Tools 2.1beta extension), still no clue about why it does not work in VS2015. For futher debug I may try to build VS Tools source for VS 2015 and see what information i can get with the debug build. This last is just to know why, since I can use any toolchain in VS 2017 and Target.
After a bit of playing with VS 2017 i could replicate this behavior, and it's directly related to problems with the installation of VS itself so the fix is uninstall and reinstall or repair VS, same for VS 2015.