visual-studio

How do you write a Visual Studio plugin to manipulate your own file type?

When you are developing a Windows form, you get the form designer and when you double click a button on that designer, it generates a method stub and you get to edit that method. When you are editing an XSD, you can do so from the designer or the code. If you have the Enterprise Libraries installed, you can right click an app.config an...

Full-screen window sizing in screen (pixel) units with VS6 C++ GUI editor, MFC?

I am trying to create a full-screen control panel window with many controls: buttons, sliders, list boxes, etc. I can create a dialog window and add controls to it, but everything is scaled in dialog units. I just want to create a window in the GUI editor that is scaled in pixels, not derived units like dialog units. I can sort of...

What is the best way to version a file that you want to get once but don't want to commit changes after the first get.

Hello, I use subversion with TortoiseSVN on projects at work and my personal ones. I was wondering what is considered best practice in terms of being able to setup your repo so that doing a SVN Checkout and VisualSVN for Visual Studio will get you all that you need to compile ... but I want to be able to mark certain files so that t...

Learning C++ from scratch in Visual Studio?

I need to get up to speed with C++ quite quickly (I've never used it previously) - is learning through Visual Studio (i.e. Managed C++) going to be any use? Or will I end up learning the extensions and idiosyncracies of C++ in VS, rather then the language itself? If learning in VS is not recommended, what platform / IDE do you guys sugg...

Is RockScroll compatible with Resharper?

Both RockScroll and Resharper are recommended add ins for Visual Studio However my experience is that RockScroll hides Resharper's error markers. Is there a workaround? ...

Adding custom generic type template to CodeRush

I'm diving into creating my own coderush templates, and I use the auto-property templates heavily. I'd like to add an IList property and auto-property. I started by looking at the implementations of the List (pl.) and it's associated auto-prop (al.). I also looked at the IEnumerable versions for reference. I think I get the general s...

Using Visual Studio to create a more complex setup project.

I need to learn more about creating setup projects from within Visual Studio to support the following scenario: When the user starts the setup, he needs to choose between the parts that he wants to set up. The setup should offer to install three web services, one web site and maybe even run some SQL scripts to install/update the database...

Debugging unit test cases in VS 2008

Hi all, I'm trying to debug some of my unit tests in Visual Studio 2008 and have noticed that breakpoints don't seem to be halting execution. I kind of assumed that it was as simple as setting a breakpoint and then doing "Test | Debug | Tests in current context" ... but this never actually hits the breakpoints that I've set. Am I doin...

deploying to the GAC

is there a best way to deploy to the GAC? is dragging the dll to the GAC sufficient? ...

What is the priority on NoStepInto entries in VS2008?

I've been looking into the NoStepInto feature of Visual Studio. Andy Pennell's post How to Not Step Into Functions using the Visual C++ Debugger has been extremely helpful. But as far as I can tell, in VS2008 the string name of the rule no longer has to be an integer, and no longer has any effect on the priority of the rule. I have ...

Visual Assist not showing parameterlist propperly.

When I make a method call, for example String.Compare(s1, s2); I should see the parameters list when I press comp but I don't, I need to press ctrl+shift+space and it's pretty annoying (I use Visual Assist 10.4 and writing C#-code) ...

Restrict .NET Remote Debugger Port

I have a .net 2.0 WinForms application that uses .net remoting to connect to a server in our DMZ. That side of it is running fine, but I want to debug the services I've installed on that machine. I can get everything set up fine, but as soon as I have to restart Visual Studio 2008, the port used to connect back to my machine changes, and...

Microsoft Document Explorer from Visual Studio startup time

When pressing inside Visual Studio .NET 2005/2008, it takes about 1-2 minutes for the Document Explorer to load (when it not was opened before). Freshly installed it appears almost immediately, but then something was broken. If MSDE starts from Start menu - everything is OK. Does anyone know how to speed up document explorer again? ...

Load testing using Visual Studio 2008 : troubles with analyzing results

I use Visual Studio Team System 2008 Team Suite for load testing of my Web-application (it uses ASP.MVC technology). Load pattern:Constant (this means I have constant amount of virtual users all the time). I specify coniguratiton of 1000 users to analyze perfomance of my Web-application in really stress conditions.I run the same load te...

How can I know if an executable was incrementally linked or not ?

I'm trying to use Purify 6 to analyze a memory corruption in one of our executables built with VC++ 2003 (7.1). When I instrument the binary with the command: purify /Replace=yes /Run=no myprog.exe The instrumentation aborts telling me the executable was incrementally linked. Puzzled, I checked the build options but /INCREMENTAL:NO w...

VS2008 - Outputting a different file name for Debug/Release configurations

When building a C# application with Visual Studio 2008, is it possible to set a different output filename per configuration? e.g. MyApp_Debug.exe MyApp_Release.exe I tried a post-build step to rename the file by appending the current configuration, but that seems a scrappy approach. Plus it meant that Visual Studio could no longer fi...

Where does Visual Studio get the data intellisense and name-space completion

I admit...I am posting this question because I still don't have an answer to my other question and thought I would take a different tact. Can someone explain to me WHERE the values for intellisense and namespace/class/member completion works. I figured if I can drill into where/how it is deriving that data I can try to reconfigure my...

Any quick way to run a file in Visual Studio ?

Is there any quick way to run a file(.cs) in VS 2008 with a Main method ? Often you'd want to test some mockup code, Going Alt+f7(Project->ProjectName Properties) and changing the Startup object from a dropdown list is quite cumbersome. ...

How do I write to the Visual Studio Output Window in My Custom Tool?

I am writing a custom tool and I currently have it doing what I want as far as functionality. I would like to be able to write to Visual Studio if something goes wrong. (Incorrectly formatted code or whatever). Are there any standards for this? Right now I basically can force the tool to fail and Visual Studio puts in a warning that i...

Should Git Repo's be at the Solution Level or Project Level in Visual Studio

If I have a C# solution with multiple projects in it, what would be better, to have the Git repo created in the solution folder, or in each individual project folder? Multiple developers will be working on the projects. What are your experiences with this? ...