visual-studio

Visual Studio/RAD support for coding directly in IL?

For the longest time I've been curious to code in Intermediate Language just as an academic endeavour and to gain a better understanding of what's happening "under the hood". Does anybody provide Visual Studio support for *IL in the form of: project templates, IntelliSense integration, and those kind of RAD features? Edits: I don't mea...

Reflect and Load code at design time in Visual Studio

I have an XML file that lists a series of items, and the items are often referenced by their name in code. Is there any way to use reflection within Visual Studio to make this list 'accessible' sort of like intellisence? I've seen it done before - and I'm pretty sure it's ridiculously difficult, but I figure it can't hurt to at least a...

Is there a Visual Studio Test Project template for NUnit?

Is there an official Visual Studio test project template for NUnit? If not, what might one look like? ...

Can I force the auto-generated Linq-to-SQL classes to use an OUTER JOIN?

Let's say I have an Order table which has a FirstSalesPersonId field and a SecondSalesPersonId field. Both of these are foreign keys that reference the SalesPerson table. For any given order, either one or two salespersons may be credited with the order. In other words, FirstSalesPersonId can never be NULL, but SecondSalesPersonId can be...

Benefits of 'Optimize code' option in Visual Studio build

Much of our C# release code is built with the 'Optimize code' option turned off. I believe this is to allow code built in Release mode to be debugged more easily. Given that we are creating fairly simple desktop software which connects to backend Web Services, (ie. not a particularly processor-intensive application) then what if any sor...

Visual Studio Question: When doing a compile/debug is VS suppose to delete existing files in the bin\debug area?

Hi, Q1 - When doing a compile/debug is VS suppose to delete existing files in the bin\debug area? (for VS2008) if no then can I ask please: Q2 - My winforms checks for existance of a sqlite.db3 file and creates it if it needs to (programmatically). If the behavior I wanted was that each Compile/Debug I do is for the target Debug are...

C# Putting the required DLLs somewhere other than the root of the output

I am using EmguCV for a project and when our program runs it needs some dlls like "cxcore.dll" etc. (or it throws runtime exceptions). At the moment, I put the files in the root of the output folder (selected "Copy Always" in the file's properties in Visual Studio). However it looks a bit messy, to have about 10 different dlls just ther...

C# Microsoft.DirectX.AudioVideoPlayback.Video reference?

What reference do I have to add to use "Microsoft.DirectX.AudioVideoPlayback.Video"? It is not recognized currently. ...

How do I get the duration of a video file using C#?

Any library in C# that allows me to do that? ...

Can I use the auto-generated Linq-to-SQL entity classes in 'disconnected' mode?

Suppose I have an automatically-generated Employee class based on the Employees table in my database. Now suppose that I want to pass employee data to a ShowAges method that will print out name & age for a list of employees. I'll retrieve the data for a given set of employees via a linq query, which will return me a set of Employee inst...

Sorting a Data Gridview

Hi, I am a beginner to asp.net. I want to sort a gridview but the problem i m facing is when sort event handler is called the exception of stack over flow is thrown. Following is my code for sorting function. protected void sortGridView(string strSortExpression) { if (strSortExpression != string.Empty) { if (ViewState...

Redirecting from ASP.NET WebForms to MVC

Hi there, We have a large existing ASP.NET WebForms application, but we are now moving over to MVC. Rather than go through a painful process of trying to integrate MVC into the existing app, we're looking at creating a brand new VS project to completely isolate the new code. As a first step, we are wanting to use the existing login pr...

Source files not located in Microsoft Visual Studio

Where does Microsoft Visual Studio look for source files? I have this line of code in my program: IDB_EJECT_BTN BITMAP "res/eject_butt.bmp" that throws up an error saying line not found. I have included the res file containing the set of images in the output directory of the code program as well as the same di...

VS 2008 -- Using Relative paths in Build Properties

Hey all, Long story short, I have a test project file (C# project) that contains the NUnit assemblies. When I hit F5, the build properties tell the project to launch NUnit and run the appropriate tests. However, I work with a team and this project (including the NUnit binaries) are in subversion. Which means that when my partner pulls ...

Visual Studio 2008 Crash on Viewing Build MSTest Results when Solution is Open

Has anyone come across this issue before? ...

Switch to tab by typing a substring of its name in Visual Studio 2005

Is there a way to navigate between tabs in VS similar to the emacs iswtichb-mode or Firefox ubiquity switch tab mode (https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_0.1_Author_Tutorial#Switching_Tabs) ? In these apps, you just type a substring of the title of the tab (or buffer for emacs) to switch to this tab. For instance, to switch ...

problem in letter's language.....

Hello... I have a problem after i setup windows 7 all old projects in c# vs 2005, the letters that written in arabic changed to a strange language and i changed the language's settings in control panel to arabic then the new projects passed but the old projects have the same problem ...

Compiling a C++ Win32 project as a .exe file under Visual Studio 2008

Hi, I have a C++ application that works and compile perfectly. I can execute and debug it via Visual Studio. I would like to know how to compile to an .exe file. Actually under the debug dir there are only .obj file. How to tell VS to compile it to a single .exe file ? Thanks. ...

Search hidden text with incremental search

In Visual Stuido 2005 (C# .NET), is it possible to search through hidden text with the incremental search (Ctrl+I)? In the Find an Replace window I have the checkbox "Search hidden text" checked. But that doesn't seam to apply to the incremental search. ...

Build a Visual Studio Project without access to referenced dlls

I have a project which has a set of binary dependencies (assembly dlls for which I do no have the source code). At runtime those dependencies are required pre-installed on the machine and at compile time they are required in the source tree, e,g in a lib folder. As I'm also making source code available for this program I would like to e...