visual-studio

Disabling default XML Schemas in Visual Studio?

I have recently started using CAML.NET IntelliSense for SharePoint with Visual Studio 2008; which works great; however whenever I create a new project using STSDev 2008 (and thus generate feature.xml and WebParts.xml) the default schemas include the CAML.NET IntelliSense and the built-in (relatively incomplete) schemas: caml.xsd wss.xs...

Visual Studio won't make debug DLL

Visual Studio won't make a debug DLL when I select Debug for the configuration. Instead it makes a release version. The output window show it's making a release version, even with a Debug configuration selected. The release DLL it produces has the current date. When I save the project in the Debug configuration and reload it, it has ...

External editor in Visual Studio 2008

Is there any way to set up external editor integration for VS2008? By this I mean when I double-click on a .CPP file in the Solution Explorer, it should open in the external editor, not the internal VS one. To keep it simple let's say I want it to open the file in Notepad++ (or how about Notepad to make it even simpler). ...

What scenarios are possible where the VS C# compiler would not compile a reference of a reference?

Hello, I'm probably asking this question wrong (and that may be why Google isn't helping), but here goes: In Visual Studio I am compiling a C# project (let's call it Project A, the startup project) which has a reference to Project B. Project B has a reference to a Project C, so when A gets built, the dlls for B gets placed in the bin d...

ATL simple object wizard - "Object Xxx already exists" error

I am attempting to create a new COM object in my DLL using the ATL Simple Object Wizard in Visual Studio 2005. I enter the short name for the object, and all of the other fields are derived. However, when I click Next in the wizard, the following error message comes up: Object 'IXxxInterfaceName' already exists I have searched my en...

Possible bug in _controlfp_s may not restore control word correctly

Hi All, I've stumbled across either a problem with _controlfp_s (Visual Studio 2008), or my understanding of it. I thought the first out parameter returned the control flags before changes of the other parameters are applied. Seems it returns the flags after the change. So, I thought the correct way to use it was like this: // Chop ...

VS Code Execution Different than Code File

Has anyone ever been debugging in Visual Studio and it appears to execute different code then the code that is being stepped through? Sometimes it even steps into what appears to be white space in the file that is being stepped through but VS is executing something anyway? I've had this happen several times, once someone had me clear s...

How can I define instant AutoCorrect macros in Visual Studio?

By instant AutoCorrect macros, I mean like a list of common typos I do and what to replace them with. For instance, every time I try to type Layer it comes out "LAyer". I'm not using anything by the name of "LAyer", so I'd like it to just automatically replace every instance of LAyer with Layer after I type it. (As an example of what I ...

Visual Studio Unit Test - The member specified could not be found.

Getting an odd problem with a unit test in my solution. One of the test always fails with the following error message: The member specified (BuildMap) could not be found. You might need to regenerate your private accessor, or the member may be private and defined on a base class. If the latter is true, you need to pass the ty...

Why does this take so long to compile in VCC 2003?

My team need the "Sobol quasi-random number generator" - a common RNG which is famous for good quality results and speed of operation. I found what looks like a simple C implementation on the web. At home I was able to compile it almost instantaneously using my Linux GCC compiler. The following day I tried it at work: If I compile in V...

Converting Visual Studio 2008 project to 2003

Very blunt and to the point, but does anyone know how to convert a visual studio 2008 project to visual studio 2003, I'm meant to be delivering some stuff to a client and they only work in 2003. Sorry someone makes a very good point, what language, C# is the answer. I've done a bunch of searches on Google and tend to only come up with ...

Visual Studio 2008 HTML formatting - does it ever work?

It's another Visual Studio 2008 HTML formatting question...I think I have either found a bug in the infamously bad VS HTML formatting, or I'm doing something wrong. Here's what I'm doing: I remove all client side tags via: Tools -> Options -> Text Editor -> HTML -> Format -> Tag Specific options I then add b and span tags: I press...

Shorten delay when hovering over auto-hide panel / toolbars in Visual Studio '08

I've disabled the animation for auto-hide panels or toolbars, but i would like to shorten the delay when hovering over them. Somebody any idea how i can do that. I did not find an option in the environment settings. Thanks! ...

Custom generators visual studio database edition GDR not showing

I'm trying to create a custom generator in Visual Studio team suite, I have installed the database edition GDR, I've followed the walkthroughs on MSDN for doing so for the GDR version (and triple checked my solution against the walkthrough) and downloaded projects from codeplex which illustrate the functionality. But no matter what I try...

ExpectedException not catching exception, but I can catch it with try catch

Any ideas on this one? I'm trying to write a unit test that will delete an item and confirm that item is no longer in a repository by trying to retrieve the item by its ID which should throw a DataAccessException. However, the test keeps failing. I added a try catch block and sure enough I caught the exception I was expecting. I'm using ...

Can you print JavaScript variables from a Visual Studio 2008 Tracepoint?

After learning about how to print out debug messages using Visual Studio's Tracepoint feature, I was curious to see if it worked in JavaScript files. So far, it does and it doesn't. If I am editing a .js file in VS 2008, I can click on the margin to create a breakpoint. I can then right-click the breakpoint and select "When Hit" and the...

Stop merge module from rebuilding when nothing has changed

I have a solution that builds an .msi. That installer project depends on a merge module project which assembles various data files that need to be installed alongside the binaries. Even if I make no changes to the contents of the merge module, it insists on rebuilding (which is time consuming) every time I want to rebuild the binary + in...

Creating registerable Visual Studio packages

I'm creating a single file generator for Visual Studio (similar to the LINQ to SQL/ LINQ to Entities generators). I've follewed the example in the Visual Studio 2008 SDK (http://code.msdn.microsoft.com/sfgdd), but I've hit a snag with regpkg, I can't work out how to get it working. I can't find any good example of how it needs to be don...

Problem in compiling in release mode --VC++

Hi All, I am compiling my project in the release mode in VC++. I have a .def file where i have declared the setLog and now i am getting following error Linking... Creating library Release/HKL.lib and object Release/HKL.exp HKL_libinterface.obj : error LNK2001: unresolved external symbol _SCTP_setLog@8 Please help me on the above to...

How to remove projects/ solutions from Recent Projects window in Visual Studio 2005

In the top left corned of the Visual Studio Start Page there is a Recent Projects section that lists as standard 10 last opened Project. I am aware that this number can be changed using Tools->Options->Environment->General and then modifying number in Recent Files section But my question is how could I remove some projects from that rec...