resharper

ReSharper PdbNavigator No debugging information found on symbol servers

此生再无相见时 提交于 2019-12-08 16:30:10
问题 We have TeamCity setup to create a NuGet package and a symbol source package for an internal component. The symbol source packages correctly contains the dll's, pdb's and source code. Once TeamCity has created the packages, they are published to our NuGet / SymbolSource server. In ReSharper I have configured 'External Sources' to be 'Navigation to Sources'. The NuGet package has been added to a project, but when navigating to sources, the ReSharper output shows this error: PdbNavigator:

resharper “cleanup code” vs. 'var' keyword

感情迁移 提交于 2019-12-08 16:29:19
问题 I have an odd behavior with code clean up for c# in visual studio 2008 Team Developer Edition . Whenever I clean up my code using "Full Cleanup", it replaces all variables declaration with explicit type declarations. But I have set the appropriate settings under "Inspection Severity", "Use var keyword when initializer explicitly declares type" and "use var keyword when possible" to "Show as Error" Is there any other setting I need to set or is this a known bug? 回答1: There's a setting under

Virtual member call in constructor [duplicate]

跟風遠走 提交于 2019-12-08 15:44:36
问题 This question already has answers here : Virtual member call in a constructor (17 answers) Closed 6 years ago . In my application I am running the same winform in different contexts to control visibility of buttons, enabeling of text fields and the winform header text. The way I decided to do this is simply by passing a string to the form constructor and check it with a couple of if statements that in turn contain the desired winform tweaks. if (formContext == "add") { Text = "Add member"; }

Visual Studio adding space after if-statements

China☆狼群 提交于 2019-12-08 15:29:19
问题 Sometimes (but not always!?) when I paste or end a line with a semi-colon, Visual Studio will add a space after the if statement! For example, when pasting, this if() will turn into this: if (condition) and, when completing a line, this if(condition) DoSomething() will turn into this: if (condition) DoSomething(); Having to constantly delete this space (sometimes twice!) is driving me absolutely Bonkers! It seems to happen with if and while but not for . I cannot find anything relating to

How can I extract all classes into separate file?

ε祈祈猫儿з 提交于 2019-12-08 15:22:38
问题 I'm using the Resharper trial and VS2008. Is it possible to extract all classes from one file into a separate file? I'm able to do this using Resharper but it only seems to work for individual classes. This is to be used on a file that was auto-generated that is 65,000 lines long. 回答1: If you're using ReSharper 5, on the solution explorer, press Ctrl+Shift+R to invoke the Refactor menu (or alternatively right-click and locate it) and select "Move Types into Matching Files" 回答2: For those that

Can PropertyInfo.DeclaringType really ever be null?

自闭症网瘾萝莉.ら 提交于 2019-12-08 15:20:40
问题 I'm using ReSharper (older version), which used to warn me when I use PropertyInfo.DeclaringType that it can be null . It doesn't make sense to me at first and second glances. Is it really true, or is ReSharper a bit dumb and doesn't notice that it's a PropertyInfo , not a general MemberInfo ? 回答1: PropertyInfo.DeclaringType property is inherited from MemberInfo.DeclaringType and from documentation: If the MemberInfo object is a global member (that is, if it was obtained from the Module

How to setup ReSharper to vs2012 after setuping it to vs2010

社会主义新天地 提交于 2019-12-08 15:05:13
问题 I have setup ReSharper to vs2010. Howerver,I setup vs2012 right now and find no ReSharper add-in in vs2012. How can regist ReSharper to my IDE? 回答1: Only Resharper 7 or higher will work with Visual Studio 2012, if you have this version then just re-install it and it should show up. Earlier versions will not work. See this other question about resharper and VS 2012. 来源: https://stackoverflow.com/questions/13225321/how-to-setup-resharper-to-vs2012-after-setuping-it-to-vs2010

How can I get reason of Resharper's aborted tests?

家住魔仙堡 提交于 2019-12-08 14:56:09
问题 I'm using Resharper 9.2 and NUnit 2.6.4 and ~120 unit tests. Sometimes when I start run tests resharper stops at random test and set it status to Aborted and skip the others. It is very inconvenient because I have manually run rest of tests. Are there any ways to get reason of Abortion, some resharper test run logs or something in NUnit to help solve my problem? I also tried to use native NUnit runner but it sometimes throws exception which doesn't contain any useful info (some remoting

How to group properties of a specific type in a region with ReSharper?

℡╲_俬逩灬. 提交于 2019-12-08 11:25:49
问题 I want to use the ReSharper File Layout tool to autoarange my class. With the default pattern it already works with most regions. Since I'm using Mvvm I use ICommands and Handlers. I want to group all commands in a own region like #region Commands public ICommand NavigateToSettingsView { get { return new RelayCommand(OnNavigateToSettingsView); } } public ICommand NavigateToHistoryView { get { return new RelayCommand(OnNavigateToHistoryView); } } #endregion How can I tell ReSharper that it

Errors with JetBrains Inspect Code 9.1.3 in SonarQube 4.3.3

霸气de小男生 提交于 2019-12-08 10:21:42
问题 I encounter errors using Inspect Code 9.1.3 (last version of JetBrains ReSharper Command Line Tool) with SonarQube 4.3.3. 1: "The remote name could not be resolved: 'www.jetbrains.com'" OK, my server is offline and I cannot change that (enterprise policy)... 2: "Unknown C# language level: Default" No hint for this one... My solution contains .NET 3.5 and .NET 4.5 C# projects (I'm using the sonar plugin "Analysis Bootstrapper For Visual Studio Projects") How can I configure my SonarQube/sonar