visual-studio

How to compel MSBuild to not build a target partially?

I have a build process that does the following: Runs TLBIMP on a number (say 10) of COM DLLs (a named group of TaskItems). This is my "Import" target that uses the Exec task. Runs ILDASM on the 10 interop assemblies. This is my "Disassemble" target that uses the Exec task. Runs a custom task to take all of the 10 IL files at the same t...

How can I attach to a process in Visual Studio?

Is there a quick way to attach to process in vs.net 2008 (attaching to the IIS process)? Everytime I stop the debugger, and want to re-run I have to go to Debug -> attach to process -> choose the aspnet_web.exe ...

Visual Studio 2008 jQuery IntelliSense sporadically fails, restarting VS fixes

Right off the bat, this is not your standard "I can't get javascript IntelliSense to work in Visual Studio." For the record: I'm using Visual Studio 2008 I have installed SP 1 I have installed the hotfix for -vsdoc.js documentation files KB958502 I am developing a suite of interrelated jQuery plugins to be packaged as resources in a...

Help : Found conflicts between different versions of the same dependent assembly using SQLIte

One of my projects uses Elmah, which references SQLite. Elmah is built against SQLite for .Net version 1.0.44.0 well I was experimenting with some 64 bit stuff (my dev box is 32 bit) so I needed the 64 bit version of SQLite for .Net. I grabbed the latest build of it (1.0.51.0 at the time) and used their installer to install it. For my 3...

Why does Visual Studio's Format Document tool put heading tags over two lines?

So if I have a HTML heading like this <h2>A Heading</h2> and I run Edit -> Format Document it ends up looking like this <h2> A Heading</h2> why is this? It doesn't do it to other block elements, but it does do it to other inline elements (eg <label>). Update: To clarify, I mean why is this the default, not where are the setti...

How can I use Git locally in an SVN+Visual Studio environment

I've been playing around with git at home and I really like the idea of local commits. Being able to commit smaller changes without spreading my potentially broken code to everyone is nice, as well as being able to revert smaller changes because of the more frequent commits. I've been reading about the git-svn command, but I'm not sure ...

Visual studio refactoring - move class to assembly

Hi, I'm looking for the simplest (and most complete) mechanism to move a class from one to another assembly with reference (dependency) fixing capability.I know some manual ways to do that like : - use built-in move rename, then cutpaste, multiple save ... - use resharper rename namespace, cutpaste , the same as above but with the ...

Regarind an Heap Size error

Hi all, When I'm running a program which is used to read an video I'm getting an error referring to Heapsize which is shown below: EAP[videodemo34.exe]: Invalid address specified to RtlSizeHeap( 04EC0000, 00254CE8 ) Windows has triggered a breakpoint in videodemo34.exe. This may be due to a corruption of the heap, and indicates a bug ...

What is the best way to make a simple cross platform GUI in C++?

I want to produce a desktop application with a very simple GUI (a background graphic, a cancel button and a progress bar). My main targets are Mac and Windows. Is this possible using Visual C++ 2008? Can anyone point to any examples using Visual C++? Or is there a better way to create the GUI separately? ...

Using System.Windows.Forms in a Visual Studio Macro

I have started writing a Macro in Visual Studio 2005 like this: Public Sub myMacro() Dim myListBox As New System.Windows.Forms.ListBox() For Each x As String In xs myListBox.Items.Add(x) Next But I'm completely at a loss as to how to display the ListBox, I'd like behaviour similar to this InputBox example: Dim s...

Visual studio 2010 and C# v.4

Hello, A few days ago VS 2010 went in Beta test and usually with new Visual Studio ,we get new C#. Since VS and .NET 4 is in Beta does that mean that C# version four is near to the finish? Edit: is C# v4 Beta included in the VS 2010 beta? ...

Development Experience with using MSBuild/Nant vs Visual Studio 2005/2008

I work on a project with 4 other devs. We currently use Visual Studio to build our solution with some Pre and Post build events. I would like to move to a more powerful build system such as Nant or MsBuild. What are the pros and cons of the two approaches? How is the developer experience using Nant/MsBuild? Is it easy to debug the app...

Recovering file from the Visual Studio document cache?

I've just lost some code. I needed to move a couple of methods from one class to another so i hit save, cut the methods and VS crashed. Now it seems that the save happened after the cut since the code has been saved without those methods but the code isn't on my clipboard. So I'm left without the code and no easy way to get it back! ...

VS2005 - Call a method from a separate project? (Same solution)

I'm having an issue calling a method from a separate project within the same solution in VS2005. Am I just being dumb or am I missing something here? Thanks. ...

Metadata file '...\Release\project.dll' could not be found in Visual Studio

Recently I started to get this message randomly. I have a solution with several projects in it. Current build mode is Debug and all projects' configuration is set to Debug. But when I try to run the main project - sometimes it gives me a few errors all of which are "Metadata file '...\Release\projectX.dll' could not be found" - and, look...

Has anyone installed VS 2008 AFTER VS 2010 Beta 1?

I know that it's OK to install VS 2010 B1 on a system with VS 2008 already installed. Has anyone installed in the reverse order? Any issues or problems? ...

Shortcut for changing font size in Visual Studio

Does anybody know if there is a shortcut or something similar for changing the font size in the editor in Visual Studio 2008? What I mean is something like Ctrl + MouseWheel as in FireFox. Accessing the Options window and then selecting Environment > Fonts and Colors is fine if you don't have to change the font size all the time, but i...

How to find the value of LastError When debugging .net process?

I get an exception from .net process that is using interop call to win32 api function. I have a debugger attached and I want to see the value of LastError. Is it possible to see the value of LastError from Visual Studio debugger? Two notes: The process that throws the exception is not mine and I can't modify its source code to get the...

JSF vs Flex

I want to settle on a GUI framework, and use AJAX, as simply as possible. Assuming adequate skills in both JSF and Flex, but not too skilled at AJAX/javascript, and assuming Java as the language for the application, and using a DB, which is a good choice, or both have equal set of pros/cons? ...

ASPX..Renamed a library..now error

One of my websites references a library in my solution called "Foo" That project generates a file called "Foo.dll" and the classes in it are in a namespace called "MyCompany.Foo" so far everything worked out...well I right clicked on project "Foo" and changed the filename it outputs to to be "MyCompany.Foo"....now the project generates ...