Visual Studio Cannot find file - visual-studio

When I run Visual Studio as Administrator, visual Studio cannot find some files. Everything will compile and run though. When I run normally, it can find all the files without any issues. Does anyone know why this is happening?
Here is what the properties of the exe looks like
Target = "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe"

Related

Can Visual Studio C++ header/lib files be used to build on a machine without Visual Studio installed?

I am attempting to cross-compile a Windows application on Linux using Clang, and based on their CMake file, it looks like I need to copy the header and lib files from a Visual Studio installation. I have Visual Studio 2015, but it looks like the list of redistributable files doesn't include those. They are in "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include" for me, and that's not on the list. So, am I allowed to use those header/lib files on a machine that doesn't have a Visual Studio license, or is there some other way to get these files?

Code . not working in visual studio

Have added C:\Program Files (x86)\Microsoft Visual Studio to the path, restarted computer, verified that path includes C:\Program Files (x86)\Microsoft Visual Studio. I still get an error on running code . as
'code' is not recognized as an internal or external command, operable
program or batch file.
System specs: Windows 10, VS 2017
Regards
code . is a command for visual studio code, if i'm right you installed Visual Studio, no visual studio code, the path should be Microsoft VS Code.
if it is Code what you installed, maybe you should check the envrioment variables.
if you have not installed VS code go Here

Visual Studio it wants me to Modify, Repair or Uninstall

When it finished installing it worked OK, then I closed it, and when I re-opened , it wanted me to Modify, Repair or Uninstall (couldn't bypass it). I chose Repair, but when I close and re-open it again, it does the same and I can't seem to launch Visual Studio. The only way to use the program is through the solution I found here ( C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv (open devenv) and directly open devenv application it won't give you any error about modify repair uninstall) I should mention that I have 2 Microsoft visual studio files 12.0 and 14.0
However, is there a faster way to open it? when I click on the icon in desktop it does not work.
Thanks
I think your shortcut is corrupted.
The standard Target location of Visual studio is: "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ "
with target devenv.exe.
Please check the shortcut target.
this is the correct one:
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe"
(don't forget to include the quotation marks)

Can't find the Visual Studio 2012 Express for Web installation

I am pretty sure I installed VS 2012 Express on my new laptop a month ago. I even posted on Facebook about how I didn't like the default themes because the window borders were too light in color.
Now, I can't seem to find the VS 2012 Express installation. Where should I look?
I've looked for devenv.exe or any exe under C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common\IDE and in C:\Program Files\Microsoft Visual Studio 11.0\Common\IDE.
Okay, I found it. The exe name is VWDExpress.exe and it is located at C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common\IDE
If you are using the Ultimate version go to
C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE
and look for "devenv" with visualStudio Icon .
I had the same problem. I found it in
Local Disk > Program Files 86 > Common7 > IDE > WDExpress
It wasn't an .exe when I found it, it was an application that I launched.

Error Code -1073741515 When Using EDITBIN

I'm using EditBin to increase the stack size of an application I'm writing. I have this in the post-build event command line for Visual Studio:
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\editbin.exe" /STACK:268435456 "$(TargetPath)"
When I build my project, I get this error:
Error 470 The command ""C:\Program
Files (x86)\Microsoft Visual Studio
10.0\VC\bin\editbin.exe" /STACK:268435456 "[Target Executable]"" exited
with code -1073741515.
I have both of the following in my PATH environment variable:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin
The command also works when I run it manually with cmd.exe. Does anyone know what the problem is here?
I had the same issue, how I resolved it:
Ran msbuild.exe <my.sln> /t:<mytargetproject> from a VS2010 command prompt, where <my.sln> is your solution name and <mytargetproject> is the project you are trying to build. For e.g. msbuild.exe helloworld.sln /t:mainproj.
When you do this or at least when I ran this, a dialog box popped up and said "foo.dll" cannot be found, I added the path of that dll to my "PATH" environment variable and the problem was solved! See ChrisF's comment to the question, as it says, the error is that some dll/component is missing.
From the dll name it complained about, I believe this is not contained to VS2010 libs/dlls, for me it was a third-party dll (which I am using and supposed to be available during the build) it was complaining about.
The best solution is to run the vcvarsall.bat located in the root of the visual studio install folder(C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC). That sets up the search folders for all MSVC compiler related tools.
I got this to work for now by copying mspdb100.dll into the same directory as editbin.exe, but this is not an optimal solution because every developer on my team will need to do the same thing.

Resources