visual-studio

Building and running C++ unit tests in Visual Studio (TDD)

I have a large project for which I am attempting to use TDD. I am using Tut as my test framework, which has its flaws but is sufficient for what I need. I need to exploit link time test seams, each test must be in its own executable. The project for this executable then launches itself as a post build step. Unfortunately, this means t...

Can you get SkinID Autocompletion in ASCX Controls

Working in VS 2008 When working on on ASPX file in Source mode, if i've specified a StyleSheetTheme in the page directive of the file, then Visual Studio will provide me with AutoCompletion lists of the possible skinID values for a control e.g. <asp:Button ID="myButton" runat="server" SkinID=" //Having typed this much, I'll get an in...

Visual Studio colors not loaded correctly

I use a custom color scheme in Visual Studio (black background, gray text, etc.). There a few settings that refuse to change, however. For example, when cursoring through the markup for an aspx page, the current tag defaults to black text, which doesn't work well on my black background. I've previously changed the appropriate setting to ...

DebuggerDisplay on generic class

I have a problem applying the DebuggerDisplay attribute on a generic class: [DebuggerDisplay("--foo--")] class Foo { } [DebuggerDisplay("Bar: {t}")] class Bar<T> { public T t; } When inspecting an object of type Bar<Foo> I would expect it to show as Bar: --foo--, but I get Bar: {Foo} What am I doing wrong? ...

Can Ctrl+Backspace be made to work in VS2008's Solution Explorer?

I'm working in an ASP.NET MVC Beta 1 project, and I've noticed that if I want to rename a file in the Solution Explorer pane, Ctrl+Backspace does not do what it should (delete the closest "word"), and I get a silly box character and annoyed. I'm doing this rather a lot as I'm using jTemplates, so rather than train myself out of using th...

How can I avoid automatically attaching to T-SQL for debugging in Visual Studio 2008?

When debugging web sites that I'm working on, I tend to use Attach to Process rather than F5 to start debugging (since the site's already on in Firefox). However, occasionally when doing so, I'll get the following error: EXECUTE permission denied on object 'sp_sdidebug', database 'master', owner 'dbo'. I know this is caused by att...

COM/Interop - Supporting Multiple Versions

I've written a .NET console app that wraps CuteFTP's Transfer Engine - a COM object (ftpte). The version I wrapped is CuteFTP 7.0. I'd like to also support the 8.0 version, as some of the clients I integrate with have that version. I have a reference in my Visual Studio project to the CuteFTP COM object... how can I reference the vers...

Configuration Manager only shows Debug

I am working in Visual Studio 2008 on an ASP.Net application, which has been deployed to a test server. I would like to make a build without debug information to place in production, but the configuration manger only shows "Debug" in the configuration dropdown for my project. My other VS projects show "Debug", "Release", "New...", and ...

Visual Studio "Find" results in "No files were found to look in. Find stopped progress."

Sometimes while developing in Visual Studio IDE, when you use "Find in Files" dialog to find something, the search fails and you will see the following message in the "Find Results" window. "No files were found to look in. Find stopped progress." Once this message shows-up all the subsequent searches will result in the same message. ...

Visual Studio 2008, no longer see the Refresh item on right click

Hi, I used to be able to right click Folders in my project and click 'refresh' to refresh the files within them, I don't see the option to do this any more, how do I fix it? The same thing has happened at work and at home.. has it always been like this and have I gone insane? ...

500 Error Running Visual Studio ASP.NET Unit Test

I have the following method in my unit test project: [TestMethod] [HostType("ASP.NET")] [UrlToTest("http://localhost:3418/Web/SysCoord/ChooseEPA.aspx")] [AspNetDevelopmentServerHost("%PathToWebRoot%")] public void TestMethod1() { Page page = TestContext.RequestedPage; Assert.IsTrue(false, "Test ra...

Visual Studio - How to remove a reference in Release mode

Hi, I'm developing a library for use in other apps and this library has lots of debugging and logging statements thanks to NLog. Is it possible to exclude the reference to NLog.dll when I switch to release mode? Cheers, ...

ASP.NET website 'Publish' vs Web Deployment Project

Hi folks, if i decide to use the 'publish' option for my ASP.NET website, instead of a Web Deployment Project, can i do custom msbuild things? Or do i need to stick with WDP's if i want to do custom msbuild stuff during compile/deployment. ...

Looking for a script to colorize C++ code.

Does anyone know of a script to colorize C++ code the same as the default MSVC IDE does? ...

How to make a numericupdown control for asp.net?

does anybody know how to make a numericupdown control for asp. There's one for making winforms, but I don't know if theres one for making webforms. Is there an addon or something that I can use? ...

How do I use MSTest without Visual Studio?

Does MSTest have standalone GUI similar to nUnit that lets me use it and run test without visual studio? What is the official site for MSTest where I can learn more about how to use it? ...

VisualStudio: How to save the obj folder somewhere else

Does anyone know how to tell VS(2008) where to save the obj folder when building the solution? We have it save the bin folder to another path in order to keep the source file folders small (ie. emailable), but can't find any way to tell it to do the same with obj... Thanks! ...

How does Visual Studio's source control integration work with Perforce?

We're using Perforce and Visual Studio. Whenever we create a branch, some projects will not be bound to source control unless we use "Open from Source Control", but other projects work regardless. From my investigations, I know some of the things involved: In our .csproj files, there are these settings: <SccProjectName> <SccLocalPath>...

Share .obj files between different configurations

Hi My goal is to integrate testing into my development environment (as post-build step). I don't want to interfere with the DLLs that are generated in debug and release, so i plan to create new configurations for the project. But i don't want to compile every source file i have twice - once for the DLL, once for the test unit - I want t...

Fastest way to insert replacement characters in Visual Studio

I'm just starting to pick up ASP.Net MVC and find myself writing a lot of <%= %> in the views. Intellisense does supply the closing %>, but I find that typing the introductory <%= to be burdensome (they are tough for me to type :-)). I've dabbled around a bit with Rails and the NetBeans IDE where I was able to type: r<tab> - which wo...