visual-studio

C#: Discovering Extension Methods

What tools or techniques do you recommend for discovering C# extension methods in code? They're in the right namespace, but may be in any file in the solution. Specifically: How can I find all extension methods (and navigate to them) on the current type in the code window? I do have Resharper (v4), so if that has a mechanism I'm no...

Go To Definition in Visual Studio - Interfaces

Is there a way to show all classes that implement a certain method from an interface. If you click F12 in Visual Studio on a method call, you go to its definition. If its an interface, then you still have to go and look for the class. I would be nice to be able to get a popup and choose one of the classes which implements the interface.....

How can I find all of the solution's assemblies

I'm writing a Visual Studio extension/add-in and I want to find the names of all of the assemblies created from the projects in the current solution. I don't have any technological limitation - I can use DTE, MEF or whatever else that gets the job done. ...

Solution rebuild fails using MSBuild in command line but Visual Studio rebuild works fine

I'd like to rebuild my solution using MSBuild in command line. So far I'm using this command C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe d:\WorkCopy\AppServer.sln /t:Rebuild But when I've changed or deleted a file the rebuild fails. I'm getting the following error code Ulohy\GetUlohy.cs(27,33): error CS0246: The type or namesp...

Is is possible to inspect the actual XML data before it is encrypted with wsHttpBinding?

I have created a WCF proxy (with svcutil) that sends data to the server with wsHttpBinding. Is is possible to show the XML before it is encrypted to see the actual data/values? ...

Should Resources.Designer.cs be under source control?

I have Resources.resx, which is used to generate Resources.designer.cs. Should Resources.designer.cs be checked in, or can I rely on Visual Studio generating it when required? ...

Visual Studio macro writes extra " mark

I thought i'd use a macro to speed up writing <xsl:choose> blocks. DTE.ActiveDocument.Selection.Text = "<xsl:choose>" DTE.ActiveDocument.Selection.NewLine() gives me (thanks to auto complete) <xsl:choose> </xsl:choose> however DTE.ActiveDocument.Selection.Text = "<xsl:choose>" DTE.ActiveDocument.Selection.NewLine() DTE.ActiveDocu...

Silverlight, MSBuild, VS and some shared files. How?

I have a VS project used for my .NET WCF host with some simple DTOs in it. I then have another project targeted for Silverlight with links to the files from the .NET-project. What's the best way automate the build, so that all files from the .NET project are automatically built to a Silverlight assembly too? I have tried the following ...

Freeze all threads on breakpoint in VS2010

Hi all: I'm using VS2010 Beta 2 to debug some multi-threaded code. Love parallel stacks, etc. I have a question, though: I have a breakpoint set in a method that may be called by multiple threads. Once I hit the breakpoint, I really want to keep the focus on the thread that triggered the that breakpoint. However, when I hit "step", ...

Analyzing a .Net application without VisualStudio

Is there a simple, free way to analyze .Net code (set breakpoint, see stack traces, see running threads) without Visual Studio? Note that I don't need to compile the code, just analyze how it works. I have both source code and binaries but I don't have a Visual Studio license. Unfortunately, the solution file gives several error when ...

"Target Framework" in Visual Studio

What actually happens when you target the .NET 3.5 framework in Visual Studio? What does that actually do? Does it somehow "flag" any of the output files and associate them with the framework version? ...

Visual Basic Windows CE sdk, Scroll to bottom of Listview

Looking to scroll to the bottom of a listview in windows ce I have tried lvwItem.FocusedItem(lvwItem.Item.Count-1).focus ...

Silverlight 3 with WCF RIA services with VS2010 possible?

Got confused with microsoft website descriptions. or May be the google search results just confused me. My company wants to use silverlight for a line of business application but doesnt want to go with .NET 4.0. Can we develop SL3 applications with WCF RIA services 1.0 using .NET 3.5 with VS2008? Can we develop SL3 applications with W...

Proper alternative for the unreliable Search and Replace of Visual Studio?

Today I was actually wondering why I've stuck with it for so many years without actively complaining about it. Doing a "search & replace in all files and folders of a solution" is something I quite regularly need to do, esp. when refactoring tools fail me. Unfortunately, "all folders and files" means "some projects and some other files"....

Project will not start in debug mode.

I'm using VS2008, and I have a project that will not start when I press F5 or when I click the little green triangle in the toolbar. The screen flickers once, like the project is going to run, and then it doesn't. The build message claims the build was successful, but the project won't start. In the Configuration Manager, my 'Active s...

When VS 2010 RC is going to be released?

I was looking to install the latest Windows Azure Tools for Microsoft Visual Studio. However, this version doesn't work with Visual Studio 2010 Beta 2. They say that the latest version of Azure Tools & SDK will only work with VS 2008 and VS 2010 RC and that for VS 2010 Beta 2 I still need to install November release. I know that VS 20...

What is the hotkey to jump between split windows in Visual Studio 2008

I've split the code window for a long css file into two sections, top half for viewing one area of code, bottom area for viewing another area of the code. I did this by dragging the splitter on the top right of the code editor to the middle of the editing area. What is the keystroke command that makes the cursor jump from the lower wi...

Getting started with VB.NET Databases...

I'm having trouble figuring out databases in VB.NET. (VS 2008) What control(s) do I need to use and how do I use them? I am ,looking for tutorials and sample code too. I'm working on a trivia game where the admin can remove and add questions to a database. EDIT: The program must be able to do all of the DB interactions itself throu...

Any hack/workaround to get silverlight with RIA services with VS2010 with .NET 3.5 framework?

Realized that VS2010 Beta2 has separate WCF RIA installation package which only works with .NET framework 4.0. Searching the google did not give me any pointer as of now. Is there anyway to get WCF RIA in VS2010 working with .NET 3.5 as the targeted framework? I am even fine with VS2010 not able to work with .NET 4.0 on that machine if r...

Visual Studios 6 Enterprise to VS 2005/2008/2010 Upgrade

Good Evening, To all who know Microsoft's upgrade policy. I own VS6 Enterprise. Is VS6 Enterprise eligible for upgrade? I also own pro vs 2005/2008 but would like the enterprise edition upgraded. I have found posts that say yes and no. What is the real policy? Thanks again for your comments. I love stack over flow! Brennan ...