VC++ 2019 folder location - visual-c++

I was reading this FAQ from Cefsharp and they refeer that I should copy over to my project the contents of this folder:
# Visual Studio 2015
# For VC++ 2015 (x86)
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x86\Microsoft.VC140.CRT
# For VC++ 2015 (x64)
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x64\Microsoft.VC140.CRT
I'm using Visual Studio 2019 and VC+2019 and I can't find these folders.
Does anyone knows where I can find the required files?

I was missing the installation of Desktop development with C++.
After installing this I found the DLL's I was looking for here:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Redist\MSVC\14.25.28508\x64
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Redist\MSVC\14.25.28508\x86

Following #Pedro Faustino's advice to install 'Desktop development with C++' (see screenshot), the VC folder can now be found in this path
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\

Related

vcvarsall.bat missing after installing Visual Studio 2019

Previously on my Visual Studio 2017, I had the file vcvarsall.bat located at this location - "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
But later my office installed Visual Studio 2019 and I dont see vcvarsall.bat file anywhere.
Can anyone advise how to get the file, I did read some forums but could not find any solution.
Please advise.
Thanks.
You can find the vcvarsall.bat file for VS2019 at:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Your VS Edition\VC\Auxiliary\Build\vcvarsall.bat
And one point we should know, this file is under VC folder. So it's part of C++ workload. If you can't find the file in the location above, please make sure you've installed the C++ related workload. (In VS, go Tools menu=>Get Tools and Features=>Install the Desktop Development With C++ workload)
In addition: The path you mentioned above refers to the vcvarsall.bat for VS2015. The vcvarsall.bat for VS2017 should be under C:\Program Files (x86)\Microsoft Visual Studio\2017\... directory. VS2015=>vs version 14.0 while VS2017=>15.0.

Cannot locate VS 2015 Enterprise executable

Installed VS 2015 Enterprise in location
C:\Program Files(x86)\Microsoft Visual Studio 14.0
From previous posts with other versions it is supposed to be in the Common\IDE folder somewhere. In Control Panel it already shows as installed. Can't locate it.
As said in comments, the path is:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe

Where can I find makecert.exe? Visual Studio Ultimate 2012

Attempting to use a makecert UI tool to make it easier to generate a self-signed code certificates I'm trying to find the DIR location of makecert.exe
I followed this previous answer and all the command line switches worked without error. - However when attempting to use the UI tool I received the error:
So I assumed that I would need to place the tool in the same directory as the makecert.exe and pvk2pfx.exe
Here are the places I've looked:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin (empty)
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools
C:\Program Files (x86)\Microsoft Visual Studio 11.0\SDK\v3.5\Bin
C:\Program Files\Microsoft Visual Studio 11.0 (no relevant folders)
Found it: C:\Program Files (x86)\Windows Kits\8.0\bin\x64
or for Visual Studio 2013: C:\Program Files (x86)\Windows Kits\8.1\bin\x64
Makecert has been deprecated, you can find a PowerShell script that does the same on TechNet: https://gallery.technet.microsoft.com/scriptcenter/Self-signed-certificate-5920a7c6
Can't find it on my 2012 or 2013 versions, but 2008 has it under
\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SDKTools
\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin
\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin
Guessing it was removed?
For VS 2017 , Windows 10 found it in the following locations:
C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86
C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64

VS2012 changes assembly location after adding the reference

I have a TFS Policy for VS2010, I want to use it in VS2012 also so I created a new project (a library targeting Framework 4.5) and started the migration, the problem is that VS2012 insist on changing the paths of my references, for example:
C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\envdte.dll
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VSSDK\VisualStudioIntegration\Common\Assemblies\v2.0\Microsoft.VisualStudio.Shell.Interop.dll
VS2012 changes it to:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\envdte.dll
C:\Program Files (x86)\Microsoft Visual Studio 2010 SDK SP1\VisualStudioIntegration\Common\Assemblies\v2.0\Microsoft.VisualStudio.Shell.Interop.dll
Is there a way to avoid this?, I added a HintPath to the .proj file with the full path but Im afraid it will not compile on the server if cant find the exact same path.

Visual C++ includes directories

I want to read some library files and I went to Tools>Options>Projects and Solutions>VC++ directories and I found the following :
$VSInstalldir/...
$VSInstalldir/...
$FrameworkSDKdir/
$WindowsSDKdir/...
$PATH
$SystemRoot/Syswow64/....
And I could locate only files inside $VSInstalldir .
Where are $FrameworkSDKdir, $WindowsSDKdir, $PATH, $SystemRoot/Syswow64 supposed to be in Windows???
Most of those variables are set using batch files. You can find each one by going to your Visual Studio installation folder, then the VC subfolder and tracing through vcvarsall.bat.
For instance, on my VS2008 installation on WinXP:
Open C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat
Go to the x86 label, that points to C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat
That file points to C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat
This file (finally) contains all the variable definitions.
Another, easier, way is to open the Visual Studio Command Prompt under Microsoft Visual Studio 2008 -> Visual Studio Tools and then use the echo command to print all those variables.
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
C:\Program Files\Microsoft Visual Studio 9.0\VC>echo %FrameworkDir%
C:\WINDOWS\Microsoft.NET\Framework
C:\Program Files\Microsoft Visual Studio 9.0\VC>echo %VSInstalldir%
C:\Program Files\Microsoft Visual Studio 9.0

Resources