On my desktop installation, when I open a new project I don't see any templates (e.g. console application) but the empty solution
here
How can I open console application?
(I dont have an option to install it)
You can reinstall the default templates without reinstalling Visual Studio, to do this you need to open the VS location in command prompt, followed by the /installvstemplates command
Note: You need to run the command as an administrator
Express Version:
> cd C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\
> WDExpress.exe /installvstemplates
Other versions:
> cd C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\
> devenv.exe /installvstemplates
If that doesn't work, you will need to reinstall Visual Studio. You might want to check out this question, essentially you may have to uninstall and then reinstall Visual Studio, or "repair" it through the installer.
Most likely anyone could give you the files necessary but I don't believe Microsoft wants them distributed unofficially.
Related
Whether user can customize the below vswhere.exe path while visual studio installation?
C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
Reason for asking this query is ,I used vswhere exe for find the VS2017 & 19 installation path in my project.
"VSWHERE=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
Suggest any other way to find the Vswhere exe path.
From Microsoft ( https://github.com/Microsoft/vswhere/wiki/Installing ) :
Starting with Visual Studio 15.2 (26418.1 Preview) vswhere.exe is installed in
%ProgramFiles(x86)%\Microsoft Visual Studio\Installer.
(use %ProgramFiles% in a 32-bit program prior to Windows 10).
This is a fixed location that will be maintained.
This means that vswhere will be located at %ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe no matter what options the user chose on the Visual Studio installer or MSBuild Tools installer.
Note that if you install vswhere using Chocolatey (instead of the VS/MSBuild installer), it will be located at %ProgramData%\chocolatey\lib\vswhere\tools\vswhere.exe
I have a Visual Studio 2013 extension that has a reference to Microsoft.VisualStudio.TeamFoundation.VersionControl.dll, from which the following type can be obtained:
Microsoft.VisualStudio.TeamFoundation.VersionControl.VersionControlEx
Today I uninstalled all previous installations of Visual Studio and then installed Visual Studio 2017 Enterprise with the options ".NET desktop development" and "Visual Studio extension development".
I opened the project with Visual Studio 2017 and had to replace some of the references (EnvDTE, envdte80, Microsoft.VisualStudio.Shell.15, etc) and also installed the nuget package Microsoft.TeamFoundation.VersionControl.All.
Unfortunately the namespace Microsoft.VisualStudio.TeamFoundation and therefore VersionControlEx are not recognized.
I have searched the file on my machine with FileLocator Lite and it does not exist.
Any idea how has this changed in Visual Studio 2017?
I basically to access the PendingChanges window.
Thanks in advance.
By doing a search, I was able to find the file in there:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer
I also found copies associated with other versions of Visual Studio. Given the path of the file, it appears to be included along with Team Explorer.
I suspect the reason you were not able to find the file on your machine is that you had uninstalled your prior versions of Visual Studio and Visual Studio 2017 did not release with Team Explorer.
If you update your version of Visual Studio or you run the standalone installer, I expect that you will be able to find the file.
Consider:
class First
{
static void Main()
{
System.Console.WriteLine("piyush");
}
}
I first started the developer command prompt by start menu → Optimize Programs → Visual Studio 2013 → Visual Studio Tools → Developer command prompt
This is shown on start:
ERROR: Cannot determine the location of the VS Common Tools folder.
C:\Program Files (x86)\Microsoft Visual Studio 12.0>
The echo command is only showing the given below:
%VS120COMNTOOLS%
After a while, it is also automatically closing itself.
The result of set VS is:
VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
Also, is there a way to compile and run the above program as it’s possible in Eclipse for core Java without depending on the developer command prompt?
Your Path environment variable should point to below path:
C:\Windows\Microsoft.NET\Framework64\vX.X.XXX
Or alternatively you can browse to the below path and run csc.exe:
csc C:/Dot.Net/First.cs
As others have mentioned, you need to ensure your PATH environment variable includes the path to your installed command-line tools.
However, if you installed Visual Studio, it already includes a batch command, vcvars.bat, that does that, and includes another batch command, VsDevCmd.bat, that runs that batch command and several other ones useful for command-line development. A shortcut to that command should have been installed in your Start menu under Microsoft Visual Studio → Visual Studio Tools. You should always run Visual Studio commands from that CLI window.
In response to the new version; if set vs shows no environment variables starting with “VS12” then either you did not run the Visual Studio 12's (Visual Studio 2013) VsDevCmd.bat command or it is not installed. Get Properties of the Developer Command Prompt shortcut you opened and tell us the value of the Shortcut/Target field.
You should have a C:\Program Files (x86)\Microsoft Visual Studio 12.0 directory.
i want to use vs 2010 and 2012 side by side on my single windows instance. I had vs 2012 installed and created a project in it, now I install vs 2010 and tried to run it but their is no run option for it, there are many options like configure, info etc but no run option ,it showed that vs 2010 was successfully installed, there were no errors at that time while installing ,,,, please help
Go to this file directory and run this EXE and VS2010 should start for you if you had no install errors. I have both running just fine on my single windows instance.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
How does the Developer command prompt for Visual studio 2012 search the location of ildasm.exe. Running command window Developer command prompt for Visual studio 2012 will point to location C:\Program Files (x86)\Microsoft visual studio 11.0 but at this location ildasm.exe couldn't be found. In fact input to command window, ildasm.exe will open the ildasm tool.
Can any one clarify how does Developer command prompt for Visual studio 2012 locate the physical ildasm.exe.
When you start Developer command prompt for Visual studio 2012 the command (it is a bat script) modifies environment PATH (and other things that does not matter in this case).
You can see the difference when you type set in Developer command prompt for Visual studio 2012 and in classic cmd.
When you open Developer command prompt for Visual studio 2012 it is true that you land in
C:\Program Files (x86)\Microsoft visual studio 11.0 but thanks to the modified PATH variable windows will look in every directory mentioned by this variable.
It will find ildasm.exe in i.e. c:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\.
please check following section. I am using VS 2013 & 2015.
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.1 Tools
If you want to use them from Visual Studio Directly. You can try following URL
Launch ildasm tool from inside visual studio itself how
There are various developer command prompts for different targets, each starts a batch file that modifies the PATH and some other things so that various developer programs can work.
Note that each command window started by these batch files starts with the PATH specified via the user and system environment settings. The batch files then modify the PATH etc within just that command window. Starting a new command window will not get the settings from the batch file as it does not modify the user and system environment settings.
If you really want easy access to ildasm.exe frequently from a command window you can modify the user environment settings. On Windows 7 you can access these settings via the properties of the computer where you select "advanced system settings" and then "environment variables".
You can find it in the below path in Windows 10 machine.
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools