Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have been trying to learn C recently. I've been using VS Code and run into a big problem. The start menu does not show a Developer Command Prompt and so I can't compile the code. I have searched everywhere for this program, I don't even have a folder named "Microsoft Visual Studio" under my Program Files (x86). I already tried reinstalling the software and nothing changes.
My problem: I can't find the VS Developer Command Prompt, which I would like to use to compile my code.
VSCode is much more light-weight and is, in essence, a completely different product. VSCode doesn't ship with a complete setup of MsBuild and of the compiler frameworks that ship with the full version of Visual Studio. You can install these alongside VSCode if You need them by installing "Build Tools for Visual Studio 2017", you can find the installer all the way at the bottom of the Visual Studio download page.
With these tools installed, you should be able to build your code. I'm not 100% convinced this will bring back the Visual Studio Developer Command Prompt, but what this command prompt has which makes it work, is a number of pre-configured path statements to the right version of msbuild.exe and locations of other tools required to compile a .NET application. Manually configuring your user's PATH environment variable should work as well, after installing the right set of tools and SDKs.
Some variables that you may depend on, like:
VCIDEInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\
VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\
VisualStudioVersion=15.0
VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\
VSCMD_ARG_app_plat=Desktop
VSCMD_ARG_HOST_ARCH=x86
VSCMD_ARG_TGT_ARCH=x86
VSCMD_VER=15.5.3
VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\
VSSDK150INSTALL=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VSSDK
Have no direct equivalent in VSCode. If you are reliant on these, you'll need to also install Visual Studio (Community | Pro | Enterprise) on the same machine, or you will need to change your build scripts to break this dependency on items that are specific to the Visual Studio IDE.
I am not sure for what purpose you need vs command prompt but
There is developer terminal for visual studio code, you can access it through, view -> Integrated Terminal or ctr+`
Related
I wants to use Arduino in vs code Visual Studio Code.
I installed arduino IDE on my local machine on C:\Program Files\Arduino IDE I also added arduino path my Visual Studio Code's setting .json
"arduino.path": "C:\\Program Files\\Arduino IDE",
setting .json
I am using arduino extension.
This is the pic of extension
Any suggestion or recommendations would greatly aid me. I've been struggling to find a solution for this problem for 6 hours.
This was giving me issues for the longest time, too. It seems that the Arduino 2.X IDE doesn't work well with VSCode.
To resolve, use the legacy IDE (Arduino 1.8.X). First, uninstall the 2.X version of Arduino. As of February 2023, you can download the legacy version by going to the Arduino Downloads page and scrolling down to the "Legacy IDE (1.8.X)" section. There's a few different download options. I opted for the one labeled "Windows Win 7 and Newer" since it's a neatly contained executable to install Arduino.
From here, run the executable and install normally. I also reinstalled the Arduino plugin in the Visual Studio marketplace (not sure if necessary, but it doesn't hurt). There's at least three places you could potentially enter the arduino.path:
The one in YOUR PROJECT FILEPATH/.vscode/settings.json
The one in the VS Code User Settings (File>Preferences>Settings> User tab> Search for arduino.path in the search bar)
Same as above, but on the "Workspace" tab instead of "User"
For me, leaving all three empty worked fine. I believe that's because the installer added Arduino to the Windows Path variable. Here's a related post, though, where someone had to configure the path variable in case that doesn't work for you.
As mentioned here I've tried to build the QGIS on Windows 7.
There are two methods one using Visual Studio Express Edition installer and the second one using MinGW.
I've found both of them broken and don't know what to do next
In building using Visual Studio
The link to visual studio actually installs the version 2010 but documentation assumes it version 2009. So "set VS90COMNTOOLS=%PROGRAMFILES%\Microsoft Visual Studio 9.0\Common7\Tools\" path is not found.
Also I'm confused about the context of this line:
If the path to bison and flex contains blanks, you need to use the
short name for the directory (i.e. C:\Program Files should be
rewritten to C:\Progra~n, where n is the number as shown in `dir /x
C:``).
In Building using MinGW 4.2.1. MSYS link is not found(404) but when I try to build step by step I find XDR 4.0 not found(404) in this page
So what's the way to build it?
All I want is to change the title and startup photo of QGIS Desktop software.
Using another application I'm now able to change the title of running QGIS but don't know where to change the photo which shows "Loading plugins...".
The build instructions for Windows 7 are a tad long in the tooth, but they work for the most part. I did not try MinGW.
I immediately changed the VS90COMNTOOLS path to point to the Visual Studio 2010 directory and it seemed to work for me:
set VS90COMNTOOLS=%PROGRAMFILES%\Microsoft Visual Studio 10.0\Common7\Tools\
Regarding bison and flex configuration, I used the latest version of CMake (3.3.1 as of now) and didn't encounter any warnings/errors pertaining to bison or flex. Are you encountering any right now? If not, you should be able to proceed.
I am relatively new to Rational Rhapsody, and SysML in general, so the errors are likely to be at my end.
I have been scouring Google (and SOF) looking for ways to run Rhapsody animations without Visual Studio. It was my impression that if Rhapsody had access to another IDE, say Eclipse, then the other IDE could deal with the animations. Is this correct, or is VS absolutely required to run animations and debugging tools in Rhapsody?
I have been getting a similar error to that of the user in How to fix Rational Rhapsody error :"Current value is "VC11", but no Visual Studio installation was not found in the directory ""."; my error is "VC10." However, I do not have, or plan to have, Visual Studio run the animations; I'd rather have the animations run using Eclipse, but this is not working either (the same "VC10" error occurs).
I also chatted with a contact at IBM and he suggested trying cygwin as a compiler, but under my circumstances, I cannot download that software.
Thanks in advance for the assistance.
The Rhapsody workflow:
Rhapsody generates code from your model. (UML => C++)
To compile the code you need a compiler. Rhapsody does not have its own compiler. If you are on Windows, you can use the VS or cygwin compiler. (C++ => EXE)
If you have enabled the animation instrumentation for your application, then if you start the application, it will connect (using TCP/IP) to a running Rhapsody instance. The animation will run in Rhapsody.
... is VS absolutely required to run animations and debugging tools in Rhapsody?
A compiler (eg. VS or cygwin) is absolutely required to compile the code that has been generated by Rhapsody. Rhapsody is required if you want to see animated state-charts or sequence-diagrams while your application is running.
See also: configure Rhapsody 8.x to use the VS 2013 compiler.
There are many different questions. I try to give you some clarifications.
To run your Rhapsody model with animation you need Rhapsody and a compiler. The compiler could be Visual Studio compiler or Cygwin gcc. Those frameworks are already provided by Rhapsody.
Visual Studio or Eclipse you only need to edit your code. This can easily be done with right klick on your configuration and change it to the corresponding IDE.
I guess you question is related to the VS Version. In the properties of your configuration you must adjust your Visual Studio version. Search for property with VCxx content. Can't remember the exact name of the property at the moment.
I have a perl script that locates a Visual C install on a machine. It works on a colleagues machine. It fails on my machine. I think it is because I have a different version of Visual Studio and it is installed in a different location.
Here is where I think it is failing
$needpath = 1;
$path = $ENV{"PATH"};
if(grep(/VC/, $path)) {
print "Found Visual C on path\n";
$needpath = 0;
}
Q1. Can someone explain what $ENV{"PATH"}; is? The grep function says it is a LIST. A LIST of what?
Q2. My VS location is “C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\” Why can’t this script find it?
I’ve never used perl before. Please be kind! Thanks.
$ENV{"PATH"} is perl PATH environment variable. In your example grep filters list which size equals one, so same effect could be issued by
if ($path =~ /VC/) { .. }
It seems that your VS is not in the path, which can be checked from command line by set path
I have VS 2010 and VS 2013 installed on my machine.
Have nothing in my path and I believe that visual studio works with relative path.
I think you need something similar like this to look at the installed software.
Visual Studio does not update the PATH for a normal install. There are several command-line toolsets available in Visual Studio versions and some computers have two or more versions installed. These would lead to issues of which version should be placed in the PATH. To avoid this Visual Studio installs a number of shortcuts to command windows with the correct paths set for various purposes. These are written to the start menu folders for "Visual Studio 2013\Visual Studio Tools" and for "Microsoft Visual Studio 2012\Visual Studio Tools".
To find the version(s) installed you may be better looking in the directories where the Visual Studio software is installed. Places such as C:\Program Files and similar.
If a file is modified in Visual Studio, the files are automatically checked out from Team Foundation Server. However, sometimes there are files not modified in VS, is there command to check out those modified files only?
If you download the Team Foundation Server power tools, you can use the "tfpt online" command line.
That said, I would try and avoid this way of working. TFS much prefers to know about files that you are checking out before you start editing them and your interaction with TFS will be much happier if you can do this.
The same power tools can optionally install Windows Explorer integration for TFS which will allow you to check the files out easily outside of Visual Studio.