Im a great fan of resharper, and used to use the stylecop for resharper plugin a while back.
I wanted to use it again today but the stylecop for resharper codeplex site says that stylecop for resharper is now integrated into stylecop.
So I installed stylecop (4.6), but my resharper (5.1) appears to be unchanged.
I particularly liked using the code formatting settings that were included in the stylecop for resharper package (I think the file was 'StyleCopCodeStyle.xml', which could be used in the resharper options to set the code formatting and cleanup behaviour) - this xml file is now gone.
Am I missing something. Theres zero doumentation about this stylecop/resharper marriage, and I clueless as to what I am actually getting
Can anyone shed some light on this ?
Just an update for ReSharper 9:
To install ReSharper & StyleCop together follow these steps:
Close all Visual Studio Applications (Important!!).
Install ReSharper by double clicking the executable and following the installation process. This step will require administration rights (most likely). The precise steps to follow are unknown as they are likely to be different in the trial versus full version.
Download the stylecop msi file from here: https://stylecop.codeplex.com/releases/view/79972
Install it by double clicking and following a standard install process.
NOTE: It might be required to move the install files into a different directory from C: because otherwise if the user does not have administration rights they will not be able to supress rules.
Open Visual studio and there should be a new menu item in the top menu bar called ReSharper. Select Extension Manager…
A new window should open with a list of all of the possible extensions for resharper. Search (top right of the window) for “ReSharper.StyleCop” and press the install button.
Follow the basic installation instructions for this add-on.
Restart visual studio.
All done!!
On the StyleCop project home page, it is quite clearly states that StyleCop 4.5 is the version that is compatible with Resharper 5.1.
Related
We have a VS solution which has StyleCop configured.
Because I do use ReSharper I wanted my scaffolding to work alongside stylecop. Fortunately there is a plugin named "StyleCop by Resharper Plugin".
After installing "StyleCop by Resharper Plugin" every VS solution that I open will be proofchecked according to "some" stylecop rules.
For me this is confusing as only one solution has Stylecop.settings file, and the analyzers package installed.
How to make stylecop proofcheck only the configured solution.
P.S. I don't want to include ignores in all my solutions because of one project using stylecop.
If you are using Visual Studio 2015 or 2017 then you could use the StyleCop.Analyzers NuGet package that will use the Roslyn analyzers. This can then be applied per project.
I used to have R# 6 with VS2010 and it was great.
Now I installed yesterday R# 7.1 trial and my VS 2012 became slow to the point I really
want to uninstall R# despite all the heartache involved with it.
Any advices on how to troubleshoot this performance issue?
Please be more specific: what kind of projects do you work with, did you notice which particular actions are slow (for example, opening a solution, invoking code completion (IntelliSense) in JavaScript or something like this). Without details I can only give you these general advises:
Close Visual Studio, try to delete your solution caches (they are usually located near your *.sln file, in folder named like _ReSharper.), open Visual Studio again.
Try to temporaty disable/uninstall all other Visual Studio extensions/plugins.
Try ReSharper 8.0 EAP, maybe your issue is fixed there.
ReSharper has a feature that allows you to profile it (menu ReSharper | Help | Profile Visual Studio). If you know a reproducible slow action, you can invoke this feature, make this action and then send this performance snapshot to JetBrains support (http://www.jetbrains.com/support/resharper/) or open a bugreport at http://youtrack.jetbrains.net/. They could tell you which part of ReSharper is slow and how to disable that part.
I'm trying to move a solution I have over to Visual Studio 2012 and one of the project types is .vdproj.
According to this link this project type is not supported in Visual Studio 2012:
MSDN says they recommend that you use InstallShield Limited Edition for Visual Studio.
The problem is, when I open up my solution in VS2012 and try to add a new "Enable InstallShield Limited Edition" project to my solution, I get an error message saying:
Creating project 'test'...project creation failed.
Why might I not be able to add a project of this type to my solution?
If I make a new empty solution I can't make an InstallShield project it in either.
I'm going to try to download InstallShield limited edition and see if it does anything.
I tried out that InstallShield download, and it added two extra project types, but I'm unable to create either of them. I'm able to add normal website projects to my solutions just fine, but not deployment projects.
The installer was named the same, but this one prompted me to re-start. After re-starting I was able to add an InstallShield project, but it gets created in its own solution. So, it looks like now I have to figure out how to use it, and I'll be good to go.
It's looking like the limited edition doesn't have support to install Windows services.
This will probably be long and boring because there's lots of steps, but I'd like to write up how to move from a Windows service installer .vdproj to the new InstallShield LE that's available in Visual Studio 2012.
Step 1: Create a merge module (.msm)
Follow the steps of this guide.
Notes:
You will need to install WiX 3.6 and isWiX
The latest release of IsWiX doesn't enable the Tools menu item in Visual Studio 2012. Edit the file: C:\ProgramData\Microsoft\MSEnvShared\AddIns\IsWiXAddin.Addin (XML) and clone the HostApplication element and update 10.0 to 11.0.
In step #8 of the guide, it references a code tab. This has been moved to the XML Editor item in the bottom of the left menu
I left the MergeRedirectFolder empty for my installation
Here is my isWix files view:
After you're done with the guide you should have an empty .wxs file that looks something like this:
Using the Component XML element pulled from here you should end up with a .wxs file that looks like this:
Hit build and you should now have a .msm file.
Step 2: Adding merge module to InstallShield
Go though the wizard to setup the basic install information like company and version information.
Find the redistributables view in ISLE. Right click the list and select browse for module. After your module is found and added, right click the modules and select properties. Set the destination folder drop down to INSTALLDIR. I had to set mine to the lowest level folder I created for my install path, so you might have to experiment a bit.
Build Project, and test on virtual machine
Redistributables Screen
If you're getting errors about the path being too long you might need to change the release location to something close to the root.
Here's a list of all the build errors for reference.
Now you should be able to run your installer and have it install/start a Windows service. A lot more work than .MSI files, we got it to generate in Visual Studio 2010, but overall it was not too bad.
While there is no easy or truly supported solution for Visual Studio 2012, Visual Studio 2013 users can get an extension from Microsoft in the Visual Studio Gallery.
I found this post which says you must download InstallShield first. It's a very confusing way to work. I suggest to vote up the post on the connect site and give them comments letting know how poor that is. They could at least give a more descriptive error http://connect.microsoft.com/VisualStudio/feedback/details/732196/project-creation-failed-for-installshield-limited-edition#tabs
I downloaded StyleCop 4.6.3 which integrates with ReSharper 6 and the results are really fantastic!
However on a specific project I would like to disable the StyleCop warnings (temporarily) and enable again later on.
Is there any way of doing this? I can't seem to find it on the ReSharper menu (options, etc).
You can use different Settings.Stylecop settings for each project, just create one that ignores all the rules. Right click on a project and select Stylecop settings to modify them.
I think you can also disable plugins by unticking them from ReSharper->Plugins... (in version 5.1, not sure if it's the same in 6.0)
I have problem with Resharper - all it's menu options are greyed, no shortcuts working...
I've tried run installer with repair option - no success
Also tried uninstall / install back - same.. :(
ReSharperSetup.4.5.1288.2.msi
Can someone advice how to make it working back?
I had a similar problem with VS2010 and version 5.1.1753.4 of ReSharper. ReSharper is shown as "Not Loaded" in VS2010 About box and no ReSharper menu is visible. After multiple install/uninstall/register MSXML6/attempts of ReSharper, I finally figured out that:
A REINSTALL DOESN'T AUTOMATICALLY RE-ENABLE RESHARPER IF IT WAS DISABLED AT THE TIME OF DEINSTALLATION!
So the simple fix is just got to Tools.Options.ReSharper.General in VS2010 and enable it again.
In case ReSharper is listed as [Not Loaded] under Help > About Visual Studio, this most likely means that msxml6 component registration is broken. To fix this problem, just re-install MS XML Core services 6.
Tools -> Import and Export Settings -> Reset all settings
Source.
See if it's even loaded by ticking the checkbox it in the Tools → Add-in Manager.