visual-studio-2005

I get error LNK2001 in TeamCity but not in Vs 2005...

Hi All, I currently have a solution in VS 2005 which I attempted to trim down as it currently contains 150+ projects. As I don't know the solution that well, I am looking at set info, such as the references and the project dependencies within the solution.. In doing so, I have been able to remove approx 15-20 projects from the solution ...

How can I prevent Visual Studio 2005's "Clean" command from removing 3rd party binaries?

I have a Sitecore/ASP.NET projects that I'm developing. Today at some point I inadvertently hit the "Clean" option in the solution context menu. It took me a while to figure out why my site was hopelessly broken. Turns out Visual Studio went ahead and deleted several required assemblies from the \bin dir which are not part of my proje...

Hide an Icon from the Solution Explorer Window

I want to hide (or disable) for example the 'Refresh' icon in the Solution Explorer window Is it possible ? ...

How to use C macro's (#define) to alter calls but not prototypes

In our application (older parts) we alter calls to malloc (and realloc) and free so our own implementations are called instead of the standard runtime ones, e.g. #define malloc(s) OurMalloc(s) #define free(p) OurFree(p) This works quite good (for newer C++ code we simply implement global new and delete operators, so the C++ solution...

Visual studio 2005 toolbox icons messed up

My studio toolbox icons are all messed up. Is there a way to fix them? ...

Virtual directories not showing up in VS 2005

How come when I create an IIS based website, any virtual directories created under the main app show up in VS2005 but if I create a file-system based website, then use IIS to configure a virtual directory and use it to run the app, the sub-virtual directories do not show up in VS2005 ? Thanks in advance. -SK ...

compile a single class/file in visual studio

I just want to know if we can compile a single file/class in visual studio.I often change just a single file but end up compiling the entire project.THis might be a trivial case but will be very helpful:) I am using visual studio 2005 working on C# project in .net 2.0 ...

Source control binding status is invalid: Visual Studio 2005 and VSS

I had my VB.NET project and associated solution (developed in Visual Studio 2005) in Visual SourceSafe. Recently started working with another developer and needed to clean up. Somewhere along the way I broke a binding. I went into File -> Source Conteol -> Change Source Control and tried to bind things correctly. I unbound the proj...

Error Compiling Using Team Build

I'm tring to use Team Build to build a solution. On my PC I create a new build using VS2008, it only has 1 solution in it. It's a C++ dll which is compiled in VS2005. I have the build configured to build on our Build server. When I run the build I get the error "error PRJ0050: Failed to register output." When I compile the solution u...

How do I publish a ClickOnce install in MSBUILD (VS2005) that goes to the proper directory and does NOT create a setup.exe?

I'm trying to automate publishing a click once application. I am using VS2005. I have been able to deploy properly from VS, but not from the command line. Here is the line I'm using: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbuild.exe /p:Configuration=Release /t:Publish /p:PublishUrl=C:\source\deploy\ /p:PublishDir=c:\sour...

Breakpoint shifted when file gets updated

I am using visual studio 2005 for my windows application developed in C#. I have kept few breakpoints in the class,when i update the svn,these breakpoints get shifted(Actually remain in same line no and not in the method where it is intended to).Is there a way we can update the break point as well? ...

DllImport Unmanaged, Non .NET Dll to .NET Project Representing Char * and Void __StdCall

I have a DLL non .net and unmanaged written in Borland C++ that I need to import. It returns void and has the identifier __stdcall on the function. It also requires passing of char *. When I try to add it as a reference to my project in VS 2005, it returns an error of not valid assembly. How can I do this in C#? This what I currently ...

Pointers in C# to Retrieve Reference From DllImport Function

I am referencing a DLL in my C# project as follows: [DllImport("FeeCalculation.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)] public static extern void FeeCalculation(string cin, string cout, string flimit, string frate, string fwindow, string fincrement, string fbird, ...

Visual Studio 2005 - cannot simply view an xml file?!

I'm going nuts trying to simply work with xml file in Visual Studio 2005. If I create a new *.xml file and add it to the project then a gray screen gets displayed instead of the file contents. This screen shows the message "This XML document is not well formed. It contains the following error: Root element is missing". It seems like th...

"The operation could not be completed" Error when saving a file, in many projects

Hello all, I am getting this annoying problem, whenever i do some changes to any file in any of my many projects and try to save the file, i get the error "The operation could not be completed"!!!! it only has an "OK" button, clicking that button will open a "Save As" dialog to save the file into a different location. most of the time...

Setting a VCProject property to default

I'm trying some VS2005 IDE macros to modify a large amount of projects (~80) within a solution. Some of the properties I wish to set do expose a programmatic interface to 'default', but many others do not. Is there a generic way to set such properties to their default? (eventually meaning erasing them from the .vcproj file) Simplified ...

Debugging a minidump in Visual Studio where the call stack is null

I have a customer who is getting a 100% reproduceable crash that I can't replicate in my program compiled in Visual Studio 2005. I sent them a debug build of my program and kept all the PDB and DLL files handy. They sent me the minidump file, but when I open it I get: "Unhandled exception at 0x00000000 in MiniDump.dmp: 0xC0000005: Acces...

create and run applications on an evaluation module using Visual Studio

I have built a BSP and OS Design in Visual Studio. I brought it up on the evaluation module, that is, I flashed the image to the EVM. I now need to develop applications that will run on the evaluation module. Do I do this by creating projects that are smart devices or by creating subprojects in the initial os design solution. I tried cre...

how to install my addin.exe with myproject.exe?

i created shared addin in visual studio 2005 using c#.net now i want to add this addin setup to my another project that means my aim is when i run myproject.exe then addin is also intalled through that exe. ...

On-the-fly syntax error highlighting for c++ in Visual Studio 2005?

Is it possible to get Visual Studio 2005 to highlight syntax and type errors on-the-fly, as I am typing code? This functionality is available in Eclipse and I miss it. ...