-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find Visual Studio. VS2015 or VS2017 (with C++) needs to be installed. #3825
Comments
Do you have the C++ features installed? |
I have the C++ development environment and SDK installed and I can build c++ program. |
This might be total crap, but easy to do (and harmless). I'm not sure that that version of VS17 has vswhere installed. I don't have time to check (or feel like it) how the detection in vcpkg works, but there is simple way to check that (and whether it has any effect). You can download the tool here and put it somewhere in your path. Then try again. (I've added this back, just for others to read). |
@degski vswhere is not installed.
It works, Thanks! By the way, why not read registry value |
Well, great, you're welcome, not crap after all then. The idea of the tool is that it knows and can be queried about all relevant paths in all versions of VS (since the begin of time), but for this information to be generated selectively in case you have several versions installed. I guess that the just read the registry solution does not do a good job in that situation. (you can close the issue then) |
Added some stuff, this message is just to let you know that, I'll delete it later. |
@degski I see.
However, this is not friendly to users who use the old version vs. Not all users are willing to upgrade vs. |
Another problem: #3842 |
I ran into something similar today. The version of vswhere that I have is 1.0.62, which doesn't have the |
same to mee, i fix it by change the below. This is due to the vswhere.exe return EMPTY without -all parameter in some case |
i got the same problem. i read the comments but did not understand. someone can help me? |
1 similar comment
i got the same problem. i read the comments but did not understand. someone can help me? |
while running bootstrap-vcpkg.bat i am getting following error. Could not find MSBuild version with C++ support. VS2015, VS2017, or VS2019 (with C++) needs to be installed. I have already install VS 2017 Community Edition. and found vswhere.exe file also. |
@nisarggandhewar Could you run |
Dear sir,
I did not understand how to run this in cmd prompt.still I have run this
C:\>cd Program Files (x86)\Microsoft Visual Studio\Installer
C:\Program Files (x86)\Microsoft Visual Studio\Installer>cd vswhere.exe
The directory name is invalid.
C:\Program Files (x86)\Microsoft Visual Studio\Installer>-prerelease
-legacy -products * -format xml
'-prerelease' is not recognized as an internal or external command,
operable program or batch file.
kindly help me.
…On Sun, May 10, 2020 at 2:18 PM linquize ***@***.***> wrote:
@nisarggandhewar <https://github.com/nisarggandhewar> Could you run "C:\Program
Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -prerelease
-legacy -products * -format xml and post the content here?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3825 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKI3D2KZU3IIWL4GZ4XUPZLRQZS6XANCNFSM4FHZLVXA>
.
|
|
Thanks sir, Following is output that i obtain for executing above command
C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere.exe
-prerelease -legacy -products * -format xml
<?xml version="1.0"?>
<instances>
<instance>
<instanceId>9c09f4a9</instanceId>
<installDate>2020-05-10T06:21:16Z</installDate>
<installationName>VisualStudio/15.9.22+28307.1093</installationName>
<installationPath>C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community</installationPath>
<installationVersion>15.9.28307.1093</installationVersion>
<productId>Microsoft.VisualStudio.Product.Community</productId>
<productPath>C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\Common7\IDE\devenv.exe</productPath>
<state>4294967295</state>
<isComplete>1</isComplete>
<isLaunchable>1</isLaunchable>
<isPrerelease>0</isPrerelease>
<isRebootRequired>0</isRebootRequired>
<displayName>Visual Studio Community 2017</displayName>
<description>Free, fully-featured IDE for students, open-source and
individual developers</description>
<channelId>VisualStudio.15.Release</channelId>
<channelUri>https://aka.ms/vs/15/release/channel</channelUri>
<enginePath>C:\Program Files (x86)\Microsoft Visual
Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service</enginePath>
<releaseNotes>https://go.microsoft.com/fwlink/?LinkId=660692#15.9.22
</releaseNotes>
<thirdPartyNotices>https://go.microsoft.com/fwlink/?LinkId=660708
</thirdPartyNotices>
<updateDate>2020-05-10T06:21:16.9847371Z</updateDate>
<catalog>
<buildBranch>d15.9</buildBranch>
<buildVersion>15.9.28307.1093</buildVersion>
<id>VisualStudio/15.9.22+28307.1093</id>
<localBuild>build-lab</localBuild>
<manifestName>VisualStudio</manifestName>
<manifestType>installer</manifestType>
<productDisplayVersion>15.9.22</productDisplayVersion>
<productLine>Dev15</productLine>
<productLineVersion>2017</productLineVersion>
<productMilestone>RTW</productMilestone>
<productMilestoneIsPreRelease>False</productMilestoneIsPreRelease>
<productName>Visual Studio</productName>
<productPatchVersion>22</productPatchVersion>
<productPreReleaseMilestoneSuffix>1.0</productPreReleaseMilestoneSuffix>
<productRelease>RTW</productRelease>
<productSemanticVersion>15.9.22+28307.1093</productSemanticVersion>
<requiredEngineVersion>1.18.1059.4691</requiredEngineVersion>
</catalog>
<properties>
<campaignId>1165781126.1588502346</campaignId>
<channelManifestId>VisualStudio.15.Release/15.9.22+28307.1093</channelManifestId>
<nickname></nickname>
<setupEngineFilePath>C:\Program Files (x86)\Microsoft Visual
Studio\Installer\vs_installershell.exe</setupEngineFilePath>
</properties>
</instance>
<instance>
<instanceId>a0080b06</instanceId>
<installDate>2020-05-03T11:00:27Z</installDate>
<installationName>VisualStudio/16.5.4+30011.22</installationName>
<installationPath>C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community</installationPath>
<installationVersion>16.5.30011.22</installationVersion>
<productId>Microsoft.VisualStudio.Product.Community</productId>
<productPath>C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\Common7\IDE\devenv.exe</productPath>
<state>4294967295</state>
<isComplete>1</isComplete>
<isLaunchable>1</isLaunchable>
<isPrerelease>0</isPrerelease>
<isRebootRequired>0</isRebootRequired>
<displayName>Visual Studio Community 2019</displayName>
<description>Powerful IDE, free for students, open-source contributors,
and individuals</description>
<channelId>VisualStudio.16.Release</channelId>
<channelUri>https://aka.ms/vs/16/release/channel</channelUri>
<enginePath>C:\Program Files (x86)\Microsoft Visual
Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service</enginePath>
<releaseNotes>https://go.microsoft.com/fwlink/?LinkId=660893#16.5.4
</releaseNotes>
<thirdPartyNotices>https://go.microsoft.com/fwlink/?LinkId=660909
</thirdPartyNotices>
<updateDate>2020-05-03T11:00:27.1069499Z</updateDate>
<catalog>
<buildBranch>d16.5</buildBranch>
<buildVersion>16.5.30011.22</buildVersion>
<id>VisualStudio/16.5.4+30011.22</id>
<localBuild>build-lab</localBuild>
<manifestName>VisualStudio</manifestName>
<manifestType>installer</manifestType>
<productDisplayVersion>16.5.4</productDisplayVersion>
<productLine>Dev16</productLine>
<productLineVersion>2019</productLineVersion>
<productMilestone>RTW</productMilestone>
<productMilestoneIsPreRelease>False</productMilestoneIsPreRelease>
<productName>Visual Studio</productName>
<productPatchVersion>4</productPatchVersion>
<productPreReleaseMilestoneSuffix>1.0</productPreReleaseMilestoneSuffix>
<productSemanticVersion>16.5.4+30011.22</productSemanticVersion>
<requiredEngineVersion>2.5.2141.57745</requiredEngineVersion>
</catalog>
<properties>
<campaignId>1165781126.1588502346</campaignId>
<canceled>0</canceled>
<channelManifestId>VisualStudio.16.Release/16.5.4+30011.22</channelManifestId>
<nickname></nickname>
<setupEngineFilePath>C:\Program Files (x86)\Microsoft Visual
Studio\Installer\vs_installershell.exe</setupEngineFilePath>
</properties>
</instance>
</instances>
kindly guide me
…On Mon, May 11, 2020 at 11:22 AM linquize ***@***.***> wrote:
C:\>cd Program Files (x86)\Microsoft Visual Studio\Installer
C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere.exe -prerelease -legacy -products * -format xml
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3825 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKI3D2OPANAA3SQ5V2N2YGTRQ6HAFANCNFSM4FHZLVXA>
.
|
Dear sir,
Kindly reply. How can I recover from this error.
On Mon 11 May, 2020, 12:12 PM Nisarg Gandhewar, <nisarg.gandhewar@gmail.com>
wrote:
… Thanks sir, Following is output that i obtain for executing above command
C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere.exe
-prerelease -legacy -products * -format xml
<?xml version="1.0"?>
<instances>
<instance>
<instanceId>9c09f4a9</instanceId>
<installDate>2020-05-10T06:21:16Z</installDate>
<installationName>VisualStudio/15.9.22+28307.1093</installationName>
<installationPath>C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community</installationPath>
<installationVersion>15.9.28307.1093</installationVersion>
<productId>Microsoft.VisualStudio.Product.Community</productId>
<productPath>C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\Common7\IDE\devenv.exe</productPath>
<state>4294967295</state>
<isComplete>1</isComplete>
<isLaunchable>1</isLaunchable>
<isPrerelease>0</isPrerelease>
<isRebootRequired>0</isRebootRequired>
<displayName>Visual Studio Community 2017</displayName>
<description>Free, fully-featured IDE for students, open-source and
individual developers</description>
<channelId>VisualStudio.15.Release</channelId>
<channelUri>https://aka.ms/vs/15/release/channel</channelUri>
<enginePath>C:\Program Files (x86)\Microsoft Visual
Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service</enginePath>
<releaseNotes>https://go.microsoft.com/fwlink/?LinkId=660692#15.9.22
</releaseNotes>
<thirdPartyNotices>https://go.microsoft.com/fwlink/?LinkId=660708
</thirdPartyNotices>
<updateDate>2020-05-10T06:21:16.9847371Z</updateDate>
<catalog>
<buildBranch>d15.9</buildBranch>
<buildVersion>15.9.28307.1093</buildVersion>
<id>VisualStudio/15.9.22+28307.1093</id>
<localBuild>build-lab</localBuild>
<manifestName>VisualStudio</manifestName>
<manifestType>installer</manifestType>
<productDisplayVersion>15.9.22</productDisplayVersion>
<productLine>Dev15</productLine>
<productLineVersion>2017</productLineVersion>
<productMilestone>RTW</productMilestone>
<productMilestoneIsPreRelease>False</productMilestoneIsPreRelease>
<productName>Visual Studio</productName>
<productPatchVersion>22</productPatchVersion>
<productPreReleaseMilestoneSuffix>1.0</productPreReleaseMilestoneSuffix>
<productRelease>RTW</productRelease>
<productSemanticVersion>15.9.22+28307.1093</productSemanticVersion>
<requiredEngineVersion>1.18.1059.4691</requiredEngineVersion>
</catalog>
<properties>
<campaignId>1165781126.1588502346</campaignId>
<channelManifestId>VisualStudio.15.Release/15.9.22+28307.1093</channelManifestId>
<nickname></nickname>
<setupEngineFilePath>C:\Program Files (x86)\Microsoft Visual
Studio\Installer\vs_installershell.exe</setupEngineFilePath>
</properties>
</instance>
<instance>
<instanceId>a0080b06</instanceId>
<installDate>2020-05-03T11:00:27Z</installDate>
<installationName>VisualStudio/16.5.4+30011.22</installationName>
<installationPath>C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community</installationPath>
<installationVersion>16.5.30011.22</installationVersion>
<productId>Microsoft.VisualStudio.Product.Community</productId>
<productPath>C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\Common7\IDE\devenv.exe</productPath>
<state>4294967295</state>
<isComplete>1</isComplete>
<isLaunchable>1</isLaunchable>
<isPrerelease>0</isPrerelease>
<isRebootRequired>0</isRebootRequired>
<displayName>Visual Studio Community 2019</displayName>
<description>Powerful IDE, free for students, open-source
contributors, and individuals</description>
<channelId>VisualStudio.16.Release</channelId>
<channelUri>https://aka.ms/vs/16/release/channel</channelUri>
<enginePath>C:\Program Files (x86)\Microsoft Visual
Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service</enginePath>
<releaseNotes>https://go.microsoft.com/fwlink/?LinkId=660893#16.5.4
</releaseNotes>
<thirdPartyNotices>https://go.microsoft.com/fwlink/?LinkId=660909
</thirdPartyNotices>
<updateDate>2020-05-03T11:00:27.1069499Z</updateDate>
<catalog>
<buildBranch>d16.5</buildBranch>
<buildVersion>16.5.30011.22</buildVersion>
<id>VisualStudio/16.5.4+30011.22</id>
<localBuild>build-lab</localBuild>
<manifestName>VisualStudio</manifestName>
<manifestType>installer</manifestType>
<productDisplayVersion>16.5.4</productDisplayVersion>
<productLine>Dev16</productLine>
<productLineVersion>2019</productLineVersion>
<productMilestone>RTW</productMilestone>
<productMilestoneIsPreRelease>False</productMilestoneIsPreRelease>
<productName>Visual Studio</productName>
<productPatchVersion>4</productPatchVersion>
<productPreReleaseMilestoneSuffix>1.0</productPreReleaseMilestoneSuffix>
<productSemanticVersion>16.5.4+30011.22</productSemanticVersion>
<requiredEngineVersion>2.5.2141.57745</requiredEngineVersion>
</catalog>
<properties>
<campaignId>1165781126.1588502346</campaignId>
<canceled>0</canceled>
<channelManifestId>VisualStudio.16.Release/16.5.4+30011.22</channelManifestId>
<nickname></nickname>
<setupEngineFilePath>C:\Program Files (x86)\Microsoft Visual
Studio\Installer\vs_installershell.exe</setupEngineFilePath>
</properties>
</instance>
</instances>
kindly guide me
On Mon, May 11, 2020 at 11:22 AM linquize ***@***.***>
wrote:
> C:\>cd Program Files (x86)\Microsoft Visual Studio\Installer
>
> C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere.exe -prerelease -legacy -products * -format xml
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#3825 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AKI3D2OPANAA3SQ5V2N2YGTRQ6HAFANCNFSM4FHZLVXA>
> .
>
|
Dear sir,
Is their any solution to above problem.
Kindly reply.
On Tue 12 May, 2020, 11:17 AM Nisarg Gandhewar, <nisarg.gandhewar@gmail.com>
wrote:
… Dear sir,
Kindly reply. How can I recover from this error.
On Mon 11 May, 2020, 12:12 PM Nisarg Gandhewar, <
***@***.***> wrote:
> Thanks sir, Following is output that i obtain for executing above command
>
> C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere.exe
> -prerelease -legacy -products * -format xml
>
> <?xml version="1.0"?>
> <instances>
> <instance>
> <instanceId>9c09f4a9</instanceId>
> <installDate>2020-05-10T06:21:16Z</installDate>
> <installationName>VisualStudio/15.9.22+28307.1093</installationName>
> <installationPath>C:\Program Files (x86)\Microsoft Visual
> Studio\2017\Community</installationPath>
> <installationVersion>15.9.28307.1093</installationVersion>
> <productId>Microsoft.VisualStudio.Product.Community</productId>
> <productPath>C:\Program Files (x86)\Microsoft Visual
> Studio\2017\Community\Common7\IDE\devenv.exe</productPath>
> <state>4294967295</state>
> <isComplete>1</isComplete>
> <isLaunchable>1</isLaunchable>
> <isPrerelease>0</isPrerelease>
> <isRebootRequired>0</isRebootRequired>
> <displayName>Visual Studio Community 2017</displayName>
> <description>Free, fully-featured IDE for students, open-source and
> individual developers</description>
> <channelId>VisualStudio.15.Release</channelId>
> <channelUri>https://aka.ms/vs/15/release/channel</channelUri>
> <enginePath>C:\Program Files (x86)\Microsoft Visual
> Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service</enginePath>
> <releaseNotes>https://go.microsoft.com/fwlink/?LinkId=660692#15.9.22
> </releaseNotes>
> <thirdPartyNotices>https://go.microsoft.com/fwlink/?LinkId=660708
> </thirdPartyNotices>
> <updateDate>2020-05-10T06:21:16.9847371Z</updateDate>
> <catalog>
> <buildBranch>d15.9</buildBranch>
> <buildVersion>15.9.28307.1093</buildVersion>
> <id>VisualStudio/15.9.22+28307.1093</id>
> <localBuild>build-lab</localBuild>
> <manifestName>VisualStudio</manifestName>
> <manifestType>installer</manifestType>
> <productDisplayVersion>15.9.22</productDisplayVersion>
> <productLine>Dev15</productLine>
> <productLineVersion>2017</productLineVersion>
> <productMilestone>RTW</productMilestone>
> <productMilestoneIsPreRelease>False</productMilestoneIsPreRelease>
> <productName>Visual Studio</productName>
> <productPatchVersion>22</productPatchVersion>
>
> <productPreReleaseMilestoneSuffix>1.0</productPreReleaseMilestoneSuffix>
> <productRelease>RTW</productRelease>
> <productSemanticVersion>15.9.22+28307.1093</productSemanticVersion>
> <requiredEngineVersion>1.18.1059.4691</requiredEngineVersion>
> </catalog>
> <properties>
> <campaignId>1165781126.1588502346</campaignId>
>
> <channelManifestId>VisualStudio.15.Release/15.9.22+28307.1093</channelManifestId>
> <nickname></nickname>
> <setupEngineFilePath>C:\Program Files (x86)\Microsoft Visual
> Studio\Installer\vs_installershell.exe</setupEngineFilePath>
> </properties>
> </instance>
> <instance>
> <instanceId>a0080b06</instanceId>
> <installDate>2020-05-03T11:00:27Z</installDate>
> <installationName>VisualStudio/16.5.4+30011.22</installationName>
> <installationPath>C:\Program Files (x86)\Microsoft Visual
> Studio\2019\Community</installationPath>
> <installationVersion>16.5.30011.22</installationVersion>
> <productId>Microsoft.VisualStudio.Product.Community</productId>
> <productPath>C:\Program Files (x86)\Microsoft Visual
> Studio\2019\Community\Common7\IDE\devenv.exe</productPath>
> <state>4294967295</state>
> <isComplete>1</isComplete>
> <isLaunchable>1</isLaunchable>
> <isPrerelease>0</isPrerelease>
> <isRebootRequired>0</isRebootRequired>
> <displayName>Visual Studio Community 2019</displayName>
> <description>Powerful IDE, free for students, open-source
> contributors, and individuals</description>
> <channelId>VisualStudio.16.Release</channelId>
> <channelUri>https://aka.ms/vs/16/release/channel</channelUri>
> <enginePath>C:\Program Files (x86)\Microsoft Visual
> Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service</enginePath>
> <releaseNotes>https://go.microsoft.com/fwlink/?LinkId=660893#16.5.4
> </releaseNotes>
> <thirdPartyNotices>https://go.microsoft.com/fwlink/?LinkId=660909
> </thirdPartyNotices>
> <updateDate>2020-05-03T11:00:27.1069499Z</updateDate>
> <catalog>
> <buildBranch>d16.5</buildBranch>
> <buildVersion>16.5.30011.22</buildVersion>
> <id>VisualStudio/16.5.4+30011.22</id>
> <localBuild>build-lab</localBuild>
> <manifestName>VisualStudio</manifestName>
> <manifestType>installer</manifestType>
> <productDisplayVersion>16.5.4</productDisplayVersion>
> <productLine>Dev16</productLine>
> <productLineVersion>2019</productLineVersion>
> <productMilestone>RTW</productMilestone>
> <productMilestoneIsPreRelease>False</productMilestoneIsPreRelease>
> <productName>Visual Studio</productName>
> <productPatchVersion>4</productPatchVersion>
>
> <productPreReleaseMilestoneSuffix>1.0</productPreReleaseMilestoneSuffix>
> <productSemanticVersion>16.5.4+30011.22</productSemanticVersion>
> <requiredEngineVersion>2.5.2141.57745</requiredEngineVersion>
> </catalog>
> <properties>
> <campaignId>1165781126.1588502346</campaignId>
> <canceled>0</canceled>
>
> <channelManifestId>VisualStudio.16.Release/16.5.4+30011.22</channelManifestId>
> <nickname></nickname>
> <setupEngineFilePath>C:\Program Files (x86)\Microsoft Visual
> Studio\Installer\vs_installershell.exe</setupEngineFilePath>
> </properties>
> </instance>
> </instances>
>
> kindly guide me
>
> On Mon, May 11, 2020 at 11:22 AM linquize ***@***.***>
> wrote:
>
>> C:\>cd Program Files (x86)\Microsoft Visual Studio\Installer
>>
>> C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere.exe -prerelease -legacy -products * -format xml
>>
>> —
>> You are receiving this because you were mentioned.
>> Reply to this email directly, view it on GitHub
>> <#3825 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AKI3D2OPANAA3SQ5V2N2YGTRQ6HAFANCNFSM4FHZLVXA>
>> .
>>
>
|
Did you install C++ features from Visual Studio Installer? |
I think that a part of the problem may be, that under Windows 7 64-bit Enterprise at least, one cannot " install C++ features from Visual Studio Installer". It is necessary to first "" install the Visual Studio [2019 Enterprise] Installer" and then modify its configuration to support C++ (and any others features that do not come supported out of the box). Philip Taylor |
I've installed the vs2017, but I still can't install vcpkg
My Visual Studio Version:
The text was updated successfully, but these errors were encountered: