"Exclude from StyleCop" and "Include in StyleCop" missing - visual-studio-2017

I have StyleCop 4.7.55.0 installed. On the context (right-click) menu in VS2017 Professional when editing a C# file, the option Run StyleCop is present, but neither Exclude from StyleCop nor Include In StyleCop is shown. Checking Tools>Customise [Commands] for the context menu Project and Solution Context Menus|Item shows all 3 menu items.
What should I check to see why they are not enabled?

Related

How do I reenable the "Navigate" option in Visual Studio 2017 after installing ReSharper?

I have installed JetBrains' dotCover application (not the full ReSharper, but it still manages to get its big, meaty claws on my keybindings and such), and the Navigate > option in the context menu is now unavailable.
I have configured ReSharper's settings as follows, and have tried other combinations as well:
I have also tried resetting my keyboard shortcuts by going to Tools > Options > Environment > Keyboard and clicking Reset, and Navigate is still unavailable.
All I want is the test runner functionality of dotCover, with no other changes to my stock IDE settings. Does anyone know how I can accomplish this, or at the very list, how I can get Navigate back?
This Navigate menu item comes from ReSharper, not from Visual Studio. All Visual Studio navigation-related menu items appear above Navigate item on your screenshot. You might disable dotCover in Tools | Options | ReSharper Ultimate | Suspend now and check that Navigate menu item will disappear from the context menu. I've filed a new request to fix this.

Unload unsupported/incompatible Project in Visual Studio 2017

On a project that is not loaded because of a missing addin/application the "Unload Project" menu item is disabled on the projects context menu. A "migration error report" is shown each time when loading the solution where "lightwight solution load" is not enabled. So there seems to be no way to tell VS to ignore these projects while loading the solution. Not all members of the team have the licence for these addins (Sandcastle, WIX, ...) or do not want to install them.

Can't debug in Visual Studio 2017 (This project is out of date) [duplicate]

If I press F5, my project runs but it doesn't "see" any of the changes that I made. I need to manually (re)build before pressing F5 for it to work.
It worked well previously. Any idea what I need to change?
Also :
Right Click on the solution in the solution explorer.
Click on "Properties".
Navigate to configuration Properties -> Configuration on the left side of the window.
Make sur the "Build" checkbox is checked on the line of your project.
Is it possible that you've reconfigured your "Build and Run" settings to "Never build"?
To check, follow these steps:
From the Visual Studio IDE, open the "Tools" menu, and click "Options".
Expand the "Projects and Solutions" header on the left.
Click the "Build and Run" item.
In the combo box labeled "On Run, when projects are out of date", ensure that you have the "Always build" option selected.
Another reason (which I had) could be dependencies.
In Solution Explorer, right click the Startup Project - Build Dependencies - Project Dependencies.
If the project you are working on is not set as a dependency of the Startup project then it won't get Built when you F5 / run.
Ok, for some reason all of the above solutions do not work for me, so I made a Pre-Build event (Right click project -> Properties -> Build Events) where I delete the bin and obj folder before building.
I am new to C# and Visual Studio but i found that going to Build -> Clean Project also worked for me, if you have already tried to select "Always build" option and it didn't work.

How to add the view in browser option back into Visual Studio 2017 context menu?

I've just upgraded to VS 2017 and unless I'm missing something the view in browser option on the right click menu seems to have vanished.
Anyone know how to get it back?
I just installed Visual Studio 2017 and noticed this option was missing from the Project context menu.
However you can right click on project files to view them in the browser.
To add the "View in Browser" option back into the Project context menu, follow these steps:
Click on Tools > Customize
Select the "Commands" tab
Highlight the "Context menu" option
In the dropdown select "Project and Solution Context Menus | Project"
Click "Add Command"
Select the "File" category
In the Commands list, select "View in Browser" and press OK
You can then position the option in the menu and the option will be available to use once again.
Actually (in 15.8.7), it is still in the context Menu - in a sub-menu under View
Jon L's method will create it in the main menu as well
Alternatively, just use the shortcut - press Ctrl+Shift+W
Concerning the 'View in Browser' in Visual Studio.
In the solution explorer, right-clicking on an allowed web document(htm, html, asp, aspx, etc) allows the page to come up in our default browser.
Most other files do not provide the 'View in Browser' option.
but a right-click on the solution/project/website name(1st in the list at top) does provide the 'View in Browser' option, yet it does not find the default document specified in 'Specific Page' in the 'web' section of (its) properties!~ and instead will display a Directory Listing of the web site root.

How to enable IntelliSense for C++ in Visual Studio 2015

I've just installed VS2015 for C++ development, however traditional hot keys like ctrl+space or . or -> don't show the IntelliSense window.
Somewhere on the web I found that I needed to open the IntelliSense Manager from the Tools menu. But that's not in my Tools window.
In addition, I reviewed related items in my IDE settings and found a Text Editor -> C++ -> Advanced - IntelliSense section with a number of settings, including Disable IntelliSense, which is True in my setup. The problem is that all settings in this section are readonly (not editable).
How do I fix the problem?
VS2015.2, fresh install. No previous installation on this host.