Tag | Resharper Posts

I created the MSTest project by creating a new class library project and copying the test classes to it. I then followed the instructions in the following posts.http://social.msdn.mi... I did not need to add the GUID fix as I used ReSharper to run both sets of tests ...
If you're like a lot of people I've known, worked with, and been, you have a history of either installing Visual Studio (or getting a computer from IT with Visual Studio already installed), selecting a preset option from the "what kind of development work do you do?" menu, and coding away. I spent years occasionally hearing words like "CodeRush" and "Resharper" without really knowing what these things were or giving a second thought to how a productivity tool like them could help my work. A couple ...
I’m using xUnit and the Resharper test runner. Today, I ran into a situation where I couldn’t run tests. The runner icons weren’t showing in the gutter. Then I pressed Ctrl+U+R and received the following message: Well, there were several tests in the file, decorated with FactAttribute. Considering that I the code was written via TDD and the test were definitely working, I was curious why I suddenly couldn’t run them. It turns out that I removed the public modifier from the class in the not-so-distant ...
So far Visual Studio is fine. The only things missing are:
  • StyleCop does not recognise the current Resharper 7 EAP build
  • Need the updated GhostDoc Pro

I have migrated one of my VS2010 projects to VS 11 Beta and no problems.


Those hard-working developers at Jetbrains are making Resharper 7 for Visual Studio 11 Beta available by what they refer to as the Early Adopter Program (EAP).Build 7 EAP is just for Visual Studio 11 Beta and will run alongside Visual Studio 2010 / Resharper 6(.1)A given build of Resharper 7 EAP will run for 30 days using just an evaluation licence.Details are at http://blogs.jetbrains.com/... Can't code withoutIn-depth C# code ...
The install of the beta not altogether without problem. Three set up files were not found, however the set-up completed otherwise without issue. I have reported this problem at http://social.msdn.microsof... I have run VS2011 Beta - it opens and builds projects OK.I am now installing ReSharper 7 EAP for VS11 Beta from http://confluence.jetbrains... ...
The latest stylecop checks the ReSharper build number. In case you have to put on a more recent nightly build (as I am in the process of doing), here is the URL:http://confluence.jetbr... 4.7.8.0 checks the build number of ReSharper) Can't code withoutPowerful search and navigation in C#,VB, XML, ASP.NET, XAML and more ...
I have just installed the latest stylecop 4.7.7.0 and the latest nightly build of Resharper (build 42) and they work well. Stylecop now has a feature whereby you can override the maximum number of issues reported. I used an an as-downloaded copy of PowerCollections and increased the limit to 100,000 issues and did a ReScan all with Stylecop. Here are the last 3 lines of the report:------ StyleCop completed ------========== Violation Count: 15080 ========== ...
I have just found that the nightly build for R# 6.1.38.146 is expired and there appears to be no current runnable R# 6.1 version that is compatible with StyleCop 4.7.6.0.I am now about to roll back to ReSharper 6.0.2202.688.msiThe ongoing discussion is at http://stylecop.codeplex.co... you also have to roll back - please post a polite note at http://stylecop.codeplex.co... ...
JetBrains have recently released ReSharper 6.1, along with compatible updates to dotCover (version 1.2) and dotTrace Performance (version 4.5.2). Here is a list of common developer tasks that ReSharper 6 helps handles better than previous versions: Improve Visual Studio responsiveness: While developing ReSharper 6.0 and 6.1, Jet Brains have fixed more than 200 performance and memory consumption issues, as well as over 2900 bugs!Use proper tooling for web development: ReSharper 6 introduces extensive ...
I noticed this today, since I have updated Resharper to v6.1. In the past you could specify a single file for code style sharing. You are now presented with the following message. If you follow the menu options you will now see the following… From what it looks like, you can have your personal code settings, and then team settings and set the order of priorities ...
Yesterday I installed the new version of Resharper (if you have not tried out ReSharper yet I urge you to get a copy, install it and try it out.)The first new feature I wish to deal with is an assist with globalisation. Instead of having to wait for FXCOP to check the code, ReSharper will prompt you where changes are required.For example the line:if (string.Compare(propertyNam... "not", true) == 0)should be if (System.String.Compare(prop... "not", StringComparison.OrdinalIgn... ...
A Resharper upgrade is now available.

Details are at http://www.jetbrains.com/resharper/whatsnew/

The upgrade includes both performance enhancements and some useful new features.
Article Source: http://geekswithblogs.net/c... TODO's in code should only be used for a short period of time to remind you that something needs to be done. They should be addressed as soon as possible. In order to know who owns a TODO task and how long it’s been outstanding, my company uses the following formatting standard: Format: // TODO : Owner Initials – Date Created – Description of task. Sample: // TODO : CM – 2011\11\22 – Move this class to a reusable location. Using this pattern makes ...
During code analysis my favorite key is Shift-F12 to show usage of method/variable. And after this I needed to expand the list to show each line of usage. Recently my collegue showed me that the results may be expended by default, which is very convenient. To set it select Resharper menu->Options->Search & Navigation->Expand search Results Tree by Default. I wourd suggest to Resharper to enable this setting by default ...
Recently I was copying a composite property which I will just have to refer to as Team. (This was on client's code so I have to change all the names) In class A, Team looked like: return this.Tom + "-" + this.Dick + "-" + this.Harry; In class B, Tom, Dick and Harry were called UncleTom, UncleDick and UncleHarry. When I copied the composite property from class A to class B, highlighted Tom in this.Tom and pressed control-J, ReSharper went straight to this.UncleTom - "clever" ReSharper! Really I should ...

New versions of StyleCop have been released at http://stylecop.codeplex.com/releases/view/64494

One version is for Resharper 5.1, the other for ReSharper 6.

At http://devcheatsheet.com/ there is a comprehensive list of cheat sheets. Of particular note are: http://devcheatsheet.com/ta... SQL Injection! http://devcheatsheet.com/ta... ReSharper Cheat Sheets https://www.owasp.org/index... OWASP's SQL Inject Sheet Can't code withoutThe best C# & VB.NET refactoring plugin for Visual Studio ...
I use JetBrains ReSharper tool for a long time – it’s a very useful thing, that can help me to be more efficiently. Some time ago James Kovac made a training course for Pluralsight about everyday usage of ReSharper. I learn it, and I strongly recommend it to any ReSharper user. It contains a set of tip about navigating, code generation, refactoring, etc. A good news, that this ReSharper training course available for free to any ReSharper user! If you want to get an access, contact sales@jetbrains.com ...
The Alpha release of StyleCop 4.6 is available at http://stylecop.codeplex.co... This release provides integration with Resharper 6. I have used it and so far without any problems. Can't code withoutIn-depth C# code analysis with instant errorand warning highlighting and quick-fixes ...
Further to the discussions at http://stylecop.codeplex.co... and http://devnet.jetbrains.net... please will everybody who values the Stylecop/Resharper integration, post at http://devnet.jetbrains.net... a request to the Jetbrains team that they expedite the production of the updated API for ReSharper 6. Passionate aboutAutomated C# & VB.NET code formatting and sharing code styles in your team ...
At http://tv.jetbrains.net/vid... there is an excellent video on what is new in ReSharper 6 I am very impressed by the CSS tools. Congratulations to JetBrains! I like the "Why is ReSharper suggesting this?" - this will settle many arguments. Passionate aboutProductivity Visual Studio add-in for C#,VB.NET, XML, XAML, ASP.NET and more ...
Yesterday I received an email from Jetbrains to notify me of the release of ReSharper 6. Highlights of ReSharper 6 include: Rich support for JavaScript, CSS, HTML, and ASP.NET MVC 3 (Razor) Bundled assembly decompiler New navigation actions and valuable additions to existing navigation features Code inspections and quick-fixes for code quality analysis in VB.NET code Multiple new code inspections and quick-fixes for C# Improved refactorings and context actions, including those helping convert LINQ ...
At http://devnet.jetbrains.net... in the thread "ReSharper 6 and StyleCop", there is a note from Andrey Serebryansky; " I've recently talked to plug-in developers. They are currently working on a new version which will be compatible with ReSharper 6, but they can't give any estimates yet. Thank you!" So stylecop 4.6 is delayed. I am looking forward to it ...

Jetbrains have released ReSharper 6. See http://www.jetbrains.com/resharper/ for details.

String Resources For string resources we will use local/global resources connecting to DB using DbResourceProvider from “Creating a Data Driven ASP.NET Localization Resource Provider and Editor” http://www.west-wind.com/pr... It also has DbResourceControl, that shows controls with Localizable attribute and connect them to editor. From http://guysmithferrier.com/... and http://www.guysmithferrier.... ...

There is yet another stylecop release 4.5.24.0. ! Download it from http://stylecop.codeplex.com/releases/view/62209

"This version has fixes for async only.

Unless there are any showstopping, crashing bugs this build will be RTW this Thursday (June 30, 2011)

This release includes the very latest StyleCop for ReSharper plugin and will automatically uninstall previous versions of StyleCop."

After reading DLinq (Linq to SQL) Performance and in particular Part 4 I had a few questions. If CompiledQuery.Compile gives so much benefits, why not to do it for all Linq To Sql queries? Is any essential disadvantages of compiling all select queries? What are conditions, when compiling makes whose performance, for how much percentage? World be good to have default on application config level or on DBML level to specify are all select queries to be compiled? And the same questions about Entity Framework ...
Re-Sharper is an excellent aid to producing good code in either C# or VB.NET. Recently through using Resharper and StyleCop, I have found three area where ReSharper needs to be improved. Please log into the YouTrack at http://youtrack.jetbrains.net and vote for the following: RSRP-268868 Improvement to removal of redundant else and invert if optimisations for enhanced stylecop compliance. When Resharper removes a redundant else, there needs to be a blank line added. Currently there is no provision ...
Stylecop 4.5.20.0 is available is available at http://stylecop.codeplex.co... This is the StyleCop 4.5 RC8. "This release includes the very latest StyleCop for ReSharper plugin and will automatically uninstall previous versions of StyleCop. This updated release contains around 200 bug fixes since the 4.4 RTW release and includes 5 new rules. Support for the async CTP is also added. SA1125 - UseShorthandForNullableTypes SA1411 - AttributeConstructorMustNot... ...
StyleCop 4.5 (build 4.5.19.0) has been released at http://stylecop.codeplex.co... For the last few versions, StyleCop has checked for a new version at the start-up of Visual Studio, so you can more easily keep up with the latest version. StyleCop's integration with Resharper (referred to as R# in the setup) continues to improve. I have recently finished Style-Copping the TimePeriod solution at http://www.codeproject.com/... The improved StyleCop / Resharper ...
ReSharper by default does not recognize Contract.Requires as an annotation hint, that the proofed condition furthermore is true. So it comes to the effect, that using the following contract definition causes ReSharper to squiggle the next access and output a wrong hint: To suppress this behaviour ReSharper needs additional external annotations information. I followed in some points this thread: http://stackoverflow.com/qu... ...
Stylecop 4.5.17.0. a.k.a. StyleCop 4.5 RC5 has now been released at http://stylecop.codeplex.co... This is a particularly important release if you use ReSharper. When the new version is installed, it prompts you regarding setting your ReSharper defaults to be StyleCop compatible. If you acccept these defaults, making code StyleCop compatible becomes much easier. There is is now an option that will automaticly add the "this." where required. This is a very useful option for ReSharper ...
Getting the ressources First at all download xUnit http://xunit.codeplex.com/r... xUnit Contrib ReSharper http://xunitcontrib.codeple... This gives you a bridge between ReSharper functionality and your XUnit coding. Installation und Configuration Unzip both archives. xUnit part Configure the code to use xUnit Normally I prefer a single checkout point for my developing solution – this whole bundle I name DevTree. One of the top folders in the hierarchy of this DevTree is a lib-Folder. ...
I’ve released a new version of seatest which fixes some little bugs / flaws and also introduces global setup / teardowns. It can be found at http://code.google.com/p/se... I’ve found it really useful for the C based projects I’m working on. The only thing I think might be useful is some tools to help generate new tests / test fixtures / suites. In Visual studio I have both Visual Assist and Resharper which provide templating capabilities. But it might be nice to build my own custom tools specifically ...
Jetbrains are making the next version of ReSharper available via an Early Adopter Program. This allows you to get ReSharper for free util the EAP program finishes. This is even if you have evaluated ReSharper before. Details are at http://confluence.jetbrains... Downloads at: http://confluence.jetbrains... Before downloading one of the nightly builds you should check that is has been sucessfully installed ...
All right this is a repeat, but it well worth you having the email I have recieved from those nice people at JetBrains. Following recent developments in the .NET decompiling tools market, JetBrains is happy to offer its own decompiler called dotPeek that brings a host of powerful ReSharper features to everyone, completely free of charge. You can download an early dotPeek build right now. dotPeek offers: Decompilation of .NET 1.0-4.0 assemblies to C# Code syntax highlighting and code insight features ...
For those of you using Resharper (get it from www.jetbrains.com and it is well worth getting a personal licence), you add Spell Checking of XML and comments by adding Code Smith. Agent Smith is a C# code style validation plug-in for ReSharper. Features: Naming convention validation. XML comment validation. Spell checking in XML comments, string literals, identifiers and resource files. Smart paste. Comment reflowing. Compatible ReSharper versions: 3.1, 4.x, 5.0 License type: GNU General Public License ...
Style Cop 4.5.14.0 has been released and has the means to set the Resharper defaults to be Style Cop compliant. This is a an excellent step forward (or would would have been for me it the promised upgrade button had been visible). As Style Cop 4.5.14.0 is still an RC, this issue will no doubt be resolved. Style Cop is a very good tool which I urge every C# developer to install and use. C# code that is style cop compliant is so much easier to read to the time invested in making C# style cop compliant ...
Keymaps for ReSharper is a nice tool and allows the user easily to learn short cuts of ReSharper. Unfortunally the last update is from january 2010. So the installation folder of the installing script (Install.Keymaps.for.ReShar... is not up to date. If you run it no expected new menu item “Show Keymap” under the ReSharper-menu is listed. But you could easily correct this. Look in the cmd and you will see that the destination of the copy command inside points to "%APPDATA%\JetBrains\ReShar... ...
I am in the midst of style-copping the Irony project for possible use for a VB.NET parsing for StyleCop. I have GhostDoc Pro and a licence for ReSharper. When I first un-zipped Irony, I compiled it and then run the unit tests - all pased. I then started the style-cop process. The first step was to put in a Style-Cop compatible copyright header. Initially there were so many style issues that Stylecop stopped after its self-imposed 1000 issue limit. To get round this, StyleCop is run either per file ...
Just had the notification that StyleCop has gone RC1. Download is at http://stylecop.codeplex.co... Updated release "4.5 RC" for project stylecop This is the StyleCop 4.5 RC1. The version number is 4.5.12.0. This release includes the very latest StyleCop for ReSharper plugin and will automatically uninstall previous versions of StyleCop. This updated release contains over 100 bug fixes since the 4.4 RTW release and includes 5 new rules. SA1125 - UseShorthandForNullableTypes SA1411 ...
StyleCop 4.5.11.0 beta now available at http://stylecop.codeplex.co... This release includes the very latest StyleCop for ReSharper plugin and will automatically uninstall previous versions of StyleCop. This updated release contains over 100 bug fixes since the 4.4 RTW release and includes 5 new rules. SA1125 - UseShorthandForNullableTypes SA1411 - AttributeConstructorMustNot... SA1517 - CodeMustNotContainBlankLine... SA1518 - CodeMustNotContainBlankLine... ...
Version 4.5.9.0 of Stylecop has been released at http://stylecop.codeplex.co... Whilst still a "beta" version, it is excellent. The installation file will install over a previous version. It comes with ReSharper Integration Problems with FileHeaderFileNameDocumenta... have been fixed. I suggest you try this new version. I have found it to be excellent. If you do find an issue, please report it at http://stylecop.codeplex.co... ...
Normal 0 false false false EN-GB X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans... mso-ascii-font-family:Calibri; ...
Recently we had a contest to see who could beat my time to get from no code to deployed. Thanks to everyone that participated and everyone that thought about participating in the contest. Most Creative From Zero To Deployed Contest Extended! Unfortunately there were not enough entries to award the most creative video for ZtD. So what we are doing is extending the most creative until May 15, 2011 @ 11:59 PM CST. This gives you almost two months to get your videos in! If you entered before, you are ...
There is free access to ReSharper training at http://www.pluralsight-trai... Starting Tuesday, March 15, 16:00 GMT, Pluralsight provides 48 hours of free access to the full ReSharper course. If you're interested to know what ReSharper can bring to the table for .NET developers, now is just the right time to enjoy this limited-time free access opportunity, with no registration required ...
This past week the MVPs (myself included) were on Microsoft campus for the MVP summit. So I apologize in advance if you did something cool or heard of something cool happening with XNA and XBLIGs and it’s not in my notes. I did my best to stay on top of things, but honestly this community is fast and furious with what it’s doing and creating. I really can’t keep up and that’s fantastic! But here’s what I *did* notice while I was there on Microsoft Campus (and I did make sure to point out to the XNA ...
Do you have what it takes to meet the challenge? We’ll make it worth it. You may have noticed at the end of my last post I threw down the community challenge to get from zero to deployed faster than me. The Challenge My time was 13:48 to be from zero to deployed. Beat my time and show it in a video response. The person with the best time by March 15th @ 11:59PM CST will receive a prize. Here are the links to the videos: #1 - http://www.youtube.com/watc... #2 - http://www.youtube.com/watc... ...

This weekend I was style-copping some code I had downloaded. One of the files contained two classes. Within one file there were two classes; the first class was named the same as the file.  I found the second class header and ReSharper gave me an option to split out the second class to its own file.

ReSharper has many such useful features to aid in fixing code.