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
Related
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\
I just created a MFC application from Visual Studio.NET 2012.
Didn't write a scratch, but build.
And it returns several error like
error C2059: syntax error : ')' c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h 350
error C2065: '__In_impl_' : undeclared identifier c:\program files (x86)\windows kits\8.0\include\shared\driverspecs.h 350
IntelliSense: expected a ';' c:\Program Files (x86)\Windows Kits\8.0\Include\um\winnt.h 369
I don't know where to start to fix this problem.
Here is the screen capture.
The oly thing I am suspicious about is that I am using Visual Studio.NET 2005, 2010 and 2012 in one computer.
Anyone has any idea about this problem?
__In_impl_ is a SAL annotation that used to told compiler infomation about params. i am not such familiar with visual studio, try to check SAL options.
Project Properties -> VC++ Directories -> Include Directories -> Add C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include
====
Each VisualStudio version contains a sal.h file:
VS2010 - C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\sal.h
VS2012 - C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\sal.h
VS2010's sal.h not define __In_impl_ .
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.
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
I have a old install of visual c++ 6.0. I'd like to bring things more nearly up to date particularly for include files. Here is a list of what my TOOLS->OPTIONS->DIRECTORIES->INCLUDE FILES shows...
c:\program files\microsoft visual studio\vc98\include
c:\program files\microsoft visual studio\vc98\mfc\include
c:\program files\microsoft visual studio\vc98\atl\include
c:\windows\microsoftnet\framework\v2.0.50727
c:\program files\microsoft html help workshop\include
c:\program files\microsoft sdks\windows\v7.0\include
So, the questions is: Are there newer versions of these include directories compatible with my visual c++?
The last SDK that works with VC 6.0 is the February 2003 Edition. .Net 2.0 SDK and
Windows 7 SDK won't work with VC6. Since you put them after VC6's include path, they are likely not used anyway.
Html help workshop has not been updated since 2003. It works with VC6.