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.
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\
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.
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
For example I wan't my classes and interfaces to be StyleCop compliant. In non-express editions we can find and change the class template at:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ItemTemplates\CSharp\Code\1033\Class
But it doesn't work for express edition.
Templates are in this folder for 2012 web express edition
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\VWDExpress\ItemTemplates
And this for 2012 windows express edition
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\WDExpress\ItemTemplates
Caveat when updating templates that require you to edit the .vstemplate file (such as multi-file templates) in 2012 Express editions:
In Visual Studio Express for Desktop 2012 (WDExpress.exe), I have had no luck updating Item Templates using the method in How to: Update Existing Templates (under "Manually Updating an Existing Template"), which entails copying the updated .zip file to
C:\Users\<username>\Documents\Visual Studio 2012\My Exported Templates
What turned out to work instead, was to copy the .zip file to
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\WDExpress\ItemTemplates\VisualC\1033
(as described by A. Karimi), and then running
wdexpress /installvstemplates
on the "Developer Command-Line" as Administrator. (If you do not do this as Administrator, the process will fail, and a dialog is shown with the unhelpful error message "The operation could not be completed".)
Guess: It seems that successful installation can verified by checking if the template .zip file has been copied to
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\WDExpress\ItemTemplatesCache\VisualC\1033
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