visual-studio

RegEx pattern in .VB

I have a string and need a RegEx Pattern for this, so I can extract only the date and the numbers from the tags: Dim a as string= "<table id=table-1 > <tbody> <td align=right> <h2 id=date-one>12.09.2010</h2> </td> </tr> </tbody></table> <table id=table-2 border=0 cellspacing=0 cellpadding=0><tbody><tr><td align=center valign=middle><h3...

What's the reason the static analysis wasn't made available to VS 2010 Pro?

Is it so that the regular developers focus on writing their Contracts locally and then submit them to be analysed globally? Or is there a way to get something comparable to this experience? Maybe as a separate download? Also if a library have Contracts, then would the intellisense tooltips would include the Contracts no matter what ver...

Is there a way to delete a line in Visual Studio without cutting it?

I want to delete a line just like hitting ctrl+x without anything selected, but without saving the line to the copy stack. Is this possible? This is using Visual Studio 2010. ...

VS2010 add-in to show target framework in solution explorer

Is there a VS2010 add-in that shows a project's target framework version in the Solution Explorer window? ...

getting error while converting traget framework of an asp.net web application from 2.0 to 3.5

Hello, While converting the taget framework of an asp.net web application from 2.0 to 3.5 in visual studio 2008, i am getting the error : Exception of type 'System.Runtime.InteropServices.ExternalException' was thrown Please help. ...

.Net4\vs2010 versions of c# snippets

Does anyone know if there are 'extra' .Net4\vs2010 versions of c# snippets like there was for vs05 version (http://msdn.microsoft.com/en-us/vstudio/aa718338.aspx or as mentioned here)? I know I can import the 05 versions, or create my own, but wonder if there updated ones that use the newer .Net 4 (or I guess 3.x) features. ...

Spurious errors from WatiN with MSTest

I'm running MSTest to use the browser-automation framework, WatiN. When I run tests individually they always pass but however when I run the entire set of automation tests 7-8 tend to fail with different errors each time. All the tests are isolated and login to the site from the beginning every time, so I don't think it's related to the ...

How to determine path of exlorer.exe in .NET ?

I need to determine the path of the original explorer.exe on both 32-bit and 64-bit Windows in a C# project. What is the most reliable way to achieve that? ...

How can I exclude files from harvesting a folder with heat (WiX 3.5)?

I would like to harvest a folder with a lot of files by using heat.exe. But instead of harvesting all files, I would like to exclude specific file extensions like "*.txt" or something like that. How can I do this? ...

how to get all html tags from html file in the list using regular expression

file contains tag as <html><head></head><body><span class=style32></span>.... i want only the html tag i.e span,head,body in list.There should not be duplicates. please help me i'm new to regular expressions. ...

insert tab in string resources in Visual studio

I know I can insert new line with shift+enter but how can I insert tab? ...

Visual Studio 2008: Unit-Test methods in generic classes are not detected properly

Hi all I have a bunch of repository classes which I want to unit-test using Visual Studio 2008. They implement the following interface: public interface IRepository<TEntity> where TEntity : IEntity { /// <summary> /// Get entity by ID /// </summary> /// <param name="id">The ID</param> /// <returns></returns> TEn...

Tools to format XML in Visual Studio 2010

Is there an XML formatter available as an add-in for Visual Studio 2010? I am currently using Notepad++ and using the XML Tools plug-in to get the formatting sorted. Is there an add-in for VS2010, which will do something similar? ...

Visualization tool for modeling application that uses object-oriented design?

I'm currently writing up a text document for a .NET solution that contains multiple projects and assemblies and I'm needing to communicate the relationship between the classes/interfaces/etc. so that others can understand how data needs to be "wired up" inside the application. For example, I might need to say something like: The MyS...

Problems with single stepping in Visual Studio 2010 debugger?

When I'm debugging managed, multi-threaded code and I'm at a breakpoint in the Main\UnitTestRunner thread and start single stepping occasionally the debugger will switch to another thread and start stepping it's code. How can I stop this? Using VS2010 + Resharper 5.1 if it matters. Update 1: A closer look at the stack after a single...

Difference between properties of an object showing in debugger vs proprties in Intellisense

When I inspect an object in the debugger, I see a lot more properties in the debugger than what is available in Intellisense or code. For example, the Page object in ASP.NET in the debugger shows a property RelativeFilePath which has a value. But when I try to use it in code, it doesn't exist. Why is that? I looked up the property Rel...

How can I automatically open regions in visual studio 2010

I'd like the regions that show up in my visual studio window to be open by default when I open a code file. Is this possible in VS2010, or is there an extension that will do that for me? Barring that, is my request a thing that be written in an extension? ...

Auto-Indentation On Close Block in Visual Studio 2008

I recently upgraded to Visual Studio 2008 Professional, and it is not auto-indenting blocks of code when the block is closed }. This was a feature I found very useful with Express. How do I turn it back on? Thanks. ...

Why does one website project debug but not the other? (Both projects build.) Visual Studio 2008

I have inherited two VB.Net web projects, on one ("goodproj"), the debugger works, allowing me to step through the code. On the other ("badproj"), it doesn't. On badproj, when I hit F5 or the green arrow to debug, the website builds without error, fires up the development web server and launches the browser showing the website. BUT... ...

MbUnit's row attribute in Visual Studio 2010?

While reading an Asp.Net MVC code sample that used MbUnit as its testing framework, I saw that it was possible to run a single test against multiple input possibilities by using a Row attribute, like so: [Test] [Row("test@test_test.com")] [Row("sdfdf dsfsdf")] [Row("[email protected]")] public void Invalid_Emails_Should_Return_False(string inv...