How do I install a Windows Service created with Visual Studio 2013? - visual-studio-2012

I'm creating a Windows service, using this article as guidance.
In the "Installing the Windows Service" section, it says to "Go to "Start" >> "All Programs" >> "Microsoft Visual Studio 2012" >> "Visual Studio Tools" then click "Developer Command Prompt for VS2012".
First, I thought that strange because it seems as if this could/should be done from within Visual Studio itself, rather than going through a side door, however the "Tools" menu in VS 2013 doesn't have a likely-looking candidate. The article talks about VS 2012, and I'm using VS 2013, but thought the process (no pun intended) should be quite similar. IOW, I thought there should be Start" >> "All Programs" >> "Microsoft Visual Studio 2013" >> "Visual Studio Tools" but there's not:
...and, in fact, I have no "Visual Studio Tools" there, just "Cross Tools" and "Native Tools" thingamajigs.
So what do I need to do to install my Windows service?

I was right that the process would be similar for VS2013, but didn't notice that the naming in the Start menu had changed, removing the "Microsoft" prepended to the previous versions of Visual Studio. So there it is in the "V"s:
...and then selecting "Visual Studio Tools" opens an Explorer window with the sought-after Developer Command Prompt (for VS2013):

Related

What Azure permission does a programmer need to run Visual Studio 2019?

I have Visual Studio 2019 installed on an Azure machine and every time I run it, it asks for username and password which I enter. It then says Elevation is required. The System Admin grants this but it is only for 15 mins. What permission do I need to be able to run VS19 without permission or elevation? Systems Admin doesn't know either.
Run Visual Studio as an administrator follow these steps to open the IDE:
NOTE: These instructions are for Windows 10. They are similar for other versions of Windows.
Open the Start menu, and scroll to Visual Studio 2019.
From the right-click or context menu of Visual Studio 2019, select More > Run as administrator.
When Visual Studio starts, (Administrator) appears after the product name in the title bar.
You can also modify the application shortcut to always run with administrative permissions:
Open the Start menu, scroll to the version of Visual Studio that you're using, and then select More > Open file location.
In File Explorer, locate the Visual Studio shortcut for the version that you're using. Then, right-click the shortcut and select Send to > Desktop (create shortcut).
On the Windows desktop, right-click the Visual Studio shortcut, and then select Properties.
Select the Advanced button, and then select the Run as administrator check box.
Select OK, and then select OK again.
For reference follow this Visual Studio 2019 troubleshoot
Or, When it shows elevation is required ,
Please close the VS Installer and try running it as administrator from start menu.
Or trying to run
C:\Program Files (x86)\Microsoft VisualStudio\Installer\vs_installer.exe directly.

Application Insights missing from Visual Studio 2019

As the title states I cannot find any Application Insights menu's or options in Visual Studio 2019.
Searching has been fruitless and I see no updated documentation from Microsoft around support for Application Insights in Visual Studio 2019.
Is this something that is not available yet?
Double check what you have installed as part of your Visual Studio 2019 installation. The product required is (aptly named) "Application Insights Tools for Visual Studio Package"
I had the same issue.
The Toolbar disappeared when updating Visual Studio 2019 from version 16.0.0 to 16.0.2.
The solution for me was to just enable the Toolbar again.
Go to "Tools/Customize..." and select "Application Insights" in the Toolbars pane (See picture).
Customize VS Toolbars
Same problem, I recently applied some updates and went to Version 16.11.7, and couldn't find my App Insights window anywhere!
I had to rerun the Visual Studio Installer and then modify my install, then on the tab 'Individual Components', check the box to install 'Developer Analytics Tools'.
Then after a restart, it re-appeared....but was super tiny.
After dragging it back to a more reasonable place, it was back in action.

Visual studio in Administrator mode

my visual studio is not opening in administrator mode on opening a project by clicking a solution. By default i set it as run as administrator. but, still it is not opening if i directly open the project by clicking the project solution file.
If you open Visual Studio, right-click on the Taskbar icon of it, and select Properties.
In the tab Shortcut, press the Advanced button and tick 'Run as administrator'. Click OK.
In the tab Compatibility, tick the 'Run this program as an administrator' option. Click OK.
Apply and close the properties dialog.
I changed those settings on my computer and it always starts in administrator mode.
This is a copy of my answer to a similar post on SuperUser:
Option 1 - Set VSLauncher.exe and DevEnv.exe to always run as admin
To have Visual Studio always run as admin when opening any .sln file:
Navigate to C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\VSLauncher.exe.
Right-click on VSLauncher.exe and choose Troubleshoot compatibility.
Choose Troubleshoot program.
Check off The program requires additional permissions and hit Next.
Click the Test the program... button to launch VS.
Click Next, then hit Yes, save these settings for this program, and then the close buton.
To have Visual Studio always run as an admin when just opening visual studio directly, do the same thing to the DevEnv.exe file(s). These file are located at:
Visual Studio 2010
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
Visual Studio 2012
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe
Visual Studio 2013
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
Visual Studio 2015
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
Option 2 - Use VSCommands extension for Visual Studio
Install the free VSCommands extension for Visual Studio (it's in the Visual Studio Extensions Gallery) and then configure it to always have Visual Studio start with admin privileges by going to Tools -> VSCommands -> Options -> IDE Enhancements -> General and check off Always start Visual Studio with elevated permissions and click the Save button.
Note: VSCommands is not currently available for VS 2015, but their site says they are working on updating it to support VS 2015.
My Opinion
I prefer Option 2 because:
it also allows you to easily turn off this functionality.
VSCommands comes with lots of other great features so I always have it installed anyways.
it's just easier to do than option 1.

Visual Studio 2012 error: Package 'Visual C++ package' failed to load

When I'm trying to open any solutions that worked fine before in Visual Studio 2012, the error "Package 'Visual C++ package' failed to load" keeps showing up. And the solution can't be opened.
I'm not sure what's wrong with my Visual Studio 2012 installation.
click the TOOLS--->VISUAL STUDIO COMMAND PROMPT to open the command window
input the command "devenv /Setup"
open the visual studio 2012 again, it will works.
Source: http://happyivyli.blogspot.com/2013/07/visual-c-package-failed-to-load.html
Running command prompt from inside Visual Studio.
For easier access, you can add the Visual Studio Developer Command Prompt or any other command prompt to the Tools menu on Visual Studio, by adding it to the external tools list. This is how you can accomplish that:
Open Visual Studio.
Select the Tools menu and choose External Tools...
On the External Tools dialog box, choose the Add button. A new entry appears.
Enter a Title for your new menu item such as Command Prompt.
In the Command field, specify the file you want to launch such as %comspec% or C:\Windows\System32\cmd.exe.
In the Arguments field, specify where to find the specific command prompt you want to use such as /k "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat" (this will launch the Developer Command Prompt installed with Visual Studio 2015). This value needs to be changed according to your Visual Studio version and installation location.
Choose a value for the Initial directory field such as Project Directory.
Choose the OK button.
After that, the new menu item is added and you can access the command prompt from the Tools menu.
Then:
Right-click the Visual Studio icon
Choose Run As Administrator
Click the menu TOOLS → *Command Prompt** to open the command window
Input the command "devenv /Setup"
Open Visual Studio again, and it will work.
None of the solutions I found around, including those listed here, seemed to help. What did work was going in the software install/uninstall management, right clicking on Visual Studio and choosing "change" (that's where you would normally uninstall something from).
That should pop up the Visual Studio package manager, and from there you can choose repair.
In my case, looking at the systems backlog and restore points, it seems it was one of the Visual C++ redistributables, possibly installed by some game, that compromised the environment.
This is on Windows 8.
Possibly same fix as this https://stackoverflow.com/a/21266545/990618
Check your User environment variables for VCHOME, VCINSTALLDIR and vsinstalldir.
Change
X:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
to
X:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\
Or
X:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\
depending VS 2012 or 2013.

Is Tools > Create GUID removed in Visual Studio 2012?

In Visual Studio 2010, there was a Create GUID entry in the Tools menu. I used it all the time for SharePoint Development.
Has Tools > Create GUID been removed in Visual Studio 2012? I don't see it and resorted to Powershell [System.Guid]::NewGuid().ToString()
No it's there... at least it's available in Visual Studio 2012 Ultimate.
If missing try adding it via Tools -> External Tools and add:
%Installation Path%\Microsoft Visual Studio 11.0\Common7\Tools\guidgen.exe
EDIT: It's probably installed with Visual C++.
If you have Resharper installed you can just type nguid and hit Tab inside Visual Studio. You can even choose format you want.

Resources