visual-studio

Will VS2008 puke if I add extra "non standard" targets to a .csproj file?

Will Visual Studio choke on customized .csproj files? For example, I wanted to add a Target to update the version number in all AssemblyInfo.cs files. I plan to invoke this from the command line with MSbuild. As another example, I would like to include the build timestamp into the compile, like so. This would be a pre-compile step ...

Why does my form crash when I change my custom control?

I have created a custom control that is included in a control library that is referenced by a VB Forms application. When I modify the control, and have the application open in a VS window, VS usually asks me if I want to reload items that have changed. However, a couple of times, it has not asked me this, and when I go to open the form...

Fully Featured C++ Assert Dialog?

Hi, I'm looking for a good, fully featured C++ assert macro for VisualStudio. With features like be able to ignore an assert once or always, to be able to break exactly where the macro gets called (and not inside macro code), and getting a stack trace. Before I have to hunker down and write one, I figured I'd ask if anyone knows about ...

Is there something like Emacs' toggle-read-only in Visual Studio?

The subject says it all. Is there an easy way to toggle the editability of a buffer in Visual Studio? This would be similar to the toggle-read-only command in Emacs. I am not looking to change the file attribute ... just whether I can edit the file while it is open in Visual Studio. I am using 2008 and 2005. Why would I want to do th...

When is Visual Studio 2010 expected to RTM?

Microsoft originally slated the final release build for April 12, 2010. Somasegar said the Visual Studio 2010 and .NET Framework 4 releases will now be pushed back "a few weeks." I know the version / product name says "2010", but that doesn't necessarily mean that it will RTM in 2010. After all VS'2008 RTM'd in November 2007. The las...

CA1305: int.Parse(String)

I am getting a CA1305 Warning. Microsoft.Globalization : Because the behavior of 'int.Parse(string)' could vary based on the current user's locale settings, replace this call in '_Default.CalculateImageButton_Click(object, ImageClickEventArgs)' with a call to 'int.Parse(string, IFormatProvider)'. If the result of 'int...

"in-line find" plug-in for Visual Studio

Is there a plug-in (or built-in feature) for Visual Studio 2008 to be able to do a quick in-line find in your code? I am unhappy with the find feature (Ctrl+F). I don't like how it pops up in its own window. I think it would be much better if it was more like the Firefox find. (Try Ctrl+F in Firefox). I like how you start typing and it ...

Visual Studio: Who is writing to console?

OK, here's a good one (I think) - I'm working on an application with lots (far too many) dependency dlls, created by a team of developers. I'm trying to debug just one assembly, but the console output is 'polluted' by the Console.WriteLines and Debug.WriteLines left scattered around by my colleagues. Is there anyway I can work out exact...

How do I fix this error in VS 2005? "The project file cannot be loaded. The application for project ... is not installed"

How do I fix this error in Visual Studio? "The project file cannot be loaded. The application for project ... is not installed" I have copied a whole project onto my PC, both into My Documents/Visual Studio and into inetpub/wwwroot, but when I try to open the project in Visual Studio, it tries to open just 1 file .vssproj and gives me ...

Strange result of division in C

Some Duplicates: 1.265 * 10000 = 126499.99999999999 ????? How is floating point stored? When does it matter? Strange floating-point behaviour in a Java program Why do I see a double variable initialized to some value like 21.4 as 21.399999618530273? Error in Flash addition I divide 23 by 40 (23/40). In C this operation res...

How to resolve Debug Error

Hi I hav prepare a com component using c#. I have created a vc++ console application.in that consoloe application by consuming the com component i have build a .exe file called SQLDiscovery.exe this exe is working well in win2k3 machines fine. and i copied the sqldiscovery.exe to win2k8 machine and i have registerd the dll also. annd ...

Visual studio setup project error

When building my setup project I get the following error : An error occurred while validating. HRESULT = '80004005' Anyone know about this issue? ...

start process and attach debugger

I know I can start a process in code with Process.Start(). Is it also possible to attach the debugger to that process? Not from code per se , but just a way to do it? ...

LDAPS works on Visual Studio 2008 but does not work on IIS 5.1

I am using C# to authenticate users to my app as follows: LdapConnection connection = null; try { using (connection = new LdapConnection(Configuration.JonahLdapServer)) { connection.Credential = new NetworkCredential(userName, password, Configuration.JonahDomain); ...

Can I create a Database connection in a Class Library Project?

I am setting up a .net project that is called to generate other webpages. Basically a true CODE BEHIND page. How do I go about making a connection on a Class Library File, when there is no webconfig file present/available? ...

Why does Visual Studio fail to update method signatures?

<rant> In development, the biggest time sink seems to be Visual Studio. Solving issues with it eats up half of my development time and I'm left implementing with half the alloted time! </rant> Back to the question. I've got a couple of custom controls developed in ASP.NET: RaiseEventControl, HandlerControl. They reside on a Parent For...

What is the best way to build open source libraries DLLs for Windows developers to use?

I have several C free software/open source libraries that I develop on Linux and OSX with the GNU toolchain (automake, conf, flex, bison, gcc, ...) but I occasionally get requests to provide Windows DLLs. I'd like to be able to provide those without having to spend a lot of time and money with Windows Visual Studio development. I do ha...

Is it possible to keep Visual Studio source control binding (to VSS2005) information in solution file (.sln) only and out of project files?

Basically, what I want to achieve, is to be able to have 2 separate solutions containing the same set of projects, but 1st solution needs to be bound to source control, 2nd - not. So whenever you want source control integration in Visual Studio, you can open 1st solution, but if you don’t want it, you can open the 2nd one. The problem...

Alternatives to Using BuildProviders with Web Applications

I've read that you cannot use a BuildProvider with Web Applications in Visual Studio (or more specifically, you can use it, but your code isn't part of the project) Are there any other ways to generate code on the fly using a Web Application project? With or without using third-party tools? ...

Visual Studio: Easy Way to Move Source Code Between Projects

In the "old days" I was working with Linux to create C/C++ programs (really really BASIC...HA!...programs, just learning to program in the courses as an intro) by creating a text file with the source code that was then fed to the compiler/linker that then spit out the executable binary. Everything was in a text file or series of text fi...