visual-studio

Is there a Visual Studio shortcut for replacing the beginning and ending tag name in XAML/XML/HTML at once?

I want something similar to this post but with Visual Studio. This would be very helpful when editing XAML, XML, or HTML. For instance: <StackPanel> <Button>I'm A Button</Button> </StackPanel> If I start changing the 'StackPanel' tag, I want to automatically change the end tag to match (say if I switch it to a 'Grid' instead). ...

How can I totally remove TFS bindings from a solution?

Hi We have a large solution with many projects. Some of the projects were outsourced, and the vendor used TFS. When they commited into our SVN repo, some of the bindings are still hanging around. When I open the sln, VS2008 says "The source control provider associated with the solution cannot be found, do you want to remove them". I hi...

Who copies app.config to app.exe.config?

I'm writing a game development IDE that creates and compiles .NET projects (which I've been working on for the past few years) and am in the process of updating it to generate output not only for Windows/Visual Studio, but also for Linux/MonoDevelop (a thrillingly simple process for .NET, but still requiring some tweaks). As part of th...

String Compare not working in Visual C++ 2005

Hi There, If get a gring from the registry and it correctly displays when I place it in a message box. ::MessageBoxW(0, (LPCWSTR)achValue, _T("Found"), MB_YESNO); The value is stored in archValue which is a DWORD. What I want to do is compare it to the following string "2.0.7045.0" but strcmp fails to work for me. Any ideas on how to d...

Path from one website to another in Visual Studio debug mode

I have a solution with two websites (folder based) and two class libraries. I need to be able to dynamically set a path from one of the websites to the other. More specifically, I am setting the PostBackUrl property of an image button that is in a datagrid row. Building and setting the URL for the production environment is easy. But ...

Web Client Software Factory Unit Testing Big Fail

Hello, it is me again...too much question, I know, but in this I'm kind of a newbie... Well, I have a problem creating test for a project that is built using Microsoft's Web Client Software Factory: I get a error that says: Unable to set TestContext property for the class MyClassName. Error: System.ArgumentException: Object of typ...

How can I add Solution Folder files to a VS Project Template?

I'm trying to create a Project Template in Visual Studio. My basic Solution contains two Projects and a 'Solution Items' Solution Folder that contains (among other things) libraries (.dlls) that the two projects need as References. My Project Template creates the two Projects, the 'Solution Items' Folder, and another Folder within 'Sol...

How to increase the time tooltips remain visible in Visual Studio

By default, Visual Studio tooltips remain visible for 10 seconds and then they disappear. I find this time too short to read some of the longer tooltips. Is there a way to increase the time they remain visible? ...

Best way to store configuration settings for T4

I need to create some files using Visual Studio T4 (templating). What is the best way to import some configuration settings into multiple .tt files and have it accessible in the templating code portion. ...

How do you default a new class to public when creating it in Visual Studio?

When I right click in the Solution of a C# Visual Studio project and select Add... > Class... it creates a class without a public modifier. How do I get Visual Studio (2008) to default the class to a public class? ...

Visual studio database edition: deploy to db without visual studio

Visual Studio database edition comes with a tool, vsdbcmd.exe, that should allow someone to deploy a .dbschema file (which is generated by the database project on build) to a database. It does this by first building the script, then executing it: vsdbcmd.exe /a:Deploy /cs:"Data Source=(local);Integrated Security=True;Pooling=False" /...

VS2008 crashes with "Fatal Execution Engine Error"

Has anybody found a fix for Visual Studio crashing with this error (eventlog)? .NET Runtime version 2.0.50727.3082 - Fatal Execution Engine Error (7A2E1132) (0) It does this when I start debugging with a problem in the xaml. Visual Studio will then silently disappear. I've looked at SO and MS Connect but haven't found a fix or wor...

How do I write a custom start page for VS 2008?

I've looked around, and not found much documentation on this, so I thought I'd ask where all the experts hang out. I would like to create a new start page, with bug tracking and source control interfaces, rather than the standard MSDN feed. I seem to remember that one can do more than just supply a different URL, but can actually imple...

VS: Automatic "ArgumentNull' check ?

It's often the case when I need to check a method's arguments for not being null, something like: public static bool operator <= (ApplicationVersion i_app1, ApplicationVersion i_app2) { if (i_app1 == null) throw new ArgumentNullException("i_app1"); if (i_app2 == null) throw new ArgumentNullException("i_app2"); [...] } ...

VS2008: Unit Testing with Code Coverage doesn't work with /CLR

I'm trying to set up unit testing with code coverage in VS2008, for a C++/CLI DLL which is compiled with /clr (not /clr:safe or /clr:pure - it has to be /clr because it uses MFC). The unit tests work perfectly but the coverage information only works if I compile with /clr:safe or /clr:pure. For /clr the Code Coverage Results window show...

Why does catch(TException) handling block behaviour differ under the debugger after installing Visual Studio 2008?

Consider the console application below, featuring a method with a generic catch handler that catches exceptions of type TException. When this console application is built with the 'Debug' configuration and executed under the Visual Studio debugger (i.e. through the *.vshost.exe) this fails, in both Visual Studio 2005 and Visual Studio 2...

How to navigate to Begining/End of a curly brace by selecting one of the braces in Visual Studio 2005.?

In Visual Studio 2005, Consider my program has a loop containing 10000 lines of code with in it. If i select the Beginning or End brace '{ or }' of the loop, how can i navigate to the other brace'} or {' of the loop.? ...

Assertion in VS2008 but not in VS2005

Hello, After switching from VS2005 to VS2008 SP1, I found an issue that I can't explain. A program works fine under VS2005 in both release and debug mode. Under VS2008, when entering the debugger an assert is raised. If I let the program run (in debug or release mode), no assertion at all. I spent almost two days on this and I don't un...

Sharepoint List added to Create -> Custom Lists on Feature deployment.

I am building a SharePoint Feature to deploy a simple WebPart and a custom list within the "Web" scope. When the solution is deployed my list is immediately available in Site Actions -> Site Settings -> Custom Lists. If you try and create an instance of the list I receive "File Not Found" If you activate the feature a second copy of th...

Where can I find a tool to convert Java to C#?

Duplicate: Where can I find a Java to C# converter? How should I convert Java code to C# code? How can I convert Java code to C#? All I really want is to convert JavaDocs from the Java source, though the entire source would be fine too. I am using Visual Studio 2005. ...