visual-studio-2008

Silverlight file path separator issue

Hello everyone, I find when reading from a local file from Silverlight, we have to use special path separator "/" other than normal path separator "\" or else Silverlight can not get related local file, for example we need to write as c:/test/abc.wmv, other than write as c:\test\abc.wmv. Two more questions, Any simple solution to use...

Is there any equivalent in VS for "Type Hierarchy View" as with eclipse?

I want to see which classes are implement from a particular Interface. I know this is possible with the Eclipse by saying "Type Hierarchy View". Is is possible in VS 2008? I guess that it may be possible with Resharper. But without it, is it possible? Any workarounds? Thanks ...

Refresh environment variables for open VS solution

Using visual studio 2008, I had a solution open and realized I need to install another program that the project I was working on used. I did this with visual studio open and attempted to debug the program, however the environment variables added by the program I installed were not visible. I could not get them to refresh until I exited V...

Visual Studio Run Tests In Context Problem

When I attempt to "Run Tests in current context" it runs every test in the entire solution. This used to work fine but now seems to have either a bug or a configuration problem. Thanks. ...

Creating strongly typed view with class in other project?

This is my project setup: In visual studio I have a solution with a class library project for my linq2sql and an MVC web project. I want to keep my models in the class library as I may build a windows app later. I am trying to create a strongly typed view and have Visual Studio create the edit and details page dynamically but I can't ...

Unable to copy file reference.dll to bin/reference.dll. The process cannot access the file reference.dll because it is being used by another process

Hey all, For one of my ASP.NET 3.5 applications, every single time I try to build the web app, it throws the following build errors in Visual Studio 2008: Error 165 Unable to copy file "C:\InOne\Common\DexProcessor\bin\Debug\DexProcessor.dll" to "bin\DexProcessor.dll". The process cannot access the file 'bin\DexProcessor.dll' because i...

Access Class library from MVC project??

I have a Class Library project and MVC project in the one solution. My class library has the namespace MyStuff.Classes My MVC project has the namespace MyStuff.Web I can't seem to access my class library from the mvc project or vice versa directly or with a using directive?? Whats the best way to use namespaces in this instances? and...

VS2008 unit tests - assert method exits

I'm trying to write a C# unit test with VS 2008's built-in unit testing framework and the method I'm testing calls Environment.Exit(0). When I call this method in my unit test, my unit test is Aborted. The method should indeed be calling Exit, and I want a way to test that it does, and also to test the exit code that it uses. How migh...

Windows CRT and assert reporting (abort,retry,ignore)

The Windows CRT in debug mode will show a "Abort,Retry, Ignore" window if the application hits an assert(false) and sometimes it is created many times and fills my screen. I would love it if the assert would break in the debugger and not ask me any questions. I have modified the CRT reporting flags which have had no effect. I have als...

Visual Studio 2008 Help System

Is there any way to make the Visual Studio 2008 help system more object aware when querying a property? Let me explain. In good old fashioned VB6, if I create a winsock control, and type winsock1.close and then highlight the close and hit f1, it brings up the help for the close property for a winsock control - and not the close propert...

How to declare a friend assembly?

I have 2 projects in my solution: Assembly (Basic Library) Test Assembly (NUnit) I had declared the test assembly as friends assembly in first project: [assembly: InternalsVisibleTo ("Company.Product.Tests")] Everything was working fine till I realised that I have forgot to setup the solution to sign my assemblies. So created a sn...

Why does it take me so long to launch an ASP.NET web site?

I am running VS 2008 SP1 on a pretty high-powered Win XP machine. My startup project is a web project that was written by another developer (I'm not that well versed in web development). Start Options = launch specific page, Server = default Web server, debuggers = ASP.NET. When I push F5, my browser opens a new tab in Firefox (my def...

Visual Studio 2008 build errors ...

Hi, I'm trying to compile an old project that was originally designed for Visual Studio 2008 SP0 (I'm using SP1 now). I'm getting these errors. Error 51 error LNK2019: unresolved external symbol "unsigned long __cdecl GetDeviceState(enum DEVICES_ENUM,enum DEVICE_STATE_ENUM &,int &)" (?GetDeviceState@@YAKW4DEVICES_ENUM@@AAW4DEVICE_STAT...

Setting the default page for ASP.NET (Visual Studio) server configuration

When I build and run my application I get a directory listing in the browser (also happens for sub folders), and I have to click on Index.aspx. It's making me crazy. Visual Studio 2008 ASP.NET Development Server 9.0.0.0 ...

Visual Studio Command Prompt vs. Regular Command Prompt?

When I open a command prompt through Visual Studio, I get: Setting environment for using Microsoft Visual Studio 2008 x86 tools. C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE> What kind of tools are available, and what are the most common uses of this command prompt? ...

Need help with a macros for Visual Studio to cancel outlining at file open...

As you can guess from the title, the outlining with regions finally made me sick. I remember reading in comments somewhere that it is possible to have a macros to perform this task. Since I haven't ever written a single macros fro VS, I ask for community assistance. How? ...

Keyboard command to get out of auto generated double quotes

I have a real simple and seemingly stupid question, but I am getting alittle frusterated. I really like the intellesence in Visual Studio 2008, but there is one thing that is bothering me. When I am writing some XAML, and the intellesence comes up, I select the appropriate property and it automatically inserts it along with the nessesa...

Creating a windows installer for a Visual Studio project

I want to create an installer for my project, primarily to handle the external dependencies which are starting to grow in number. The problem is most of these components seem to be distributed in different manners, so I need an installer that can cope with all the following. Ive looked at various things around, however many dont seem to...

Associate web page with project in Visual Studio

Is there any way to associate a web page with a project in Visual Studio, and have it load up in the IDE? For example, I have a project who's task list is maintained on a web site. It would be ideal to see those tasks within the IDE instead of a separate page. I can accomplish that now by following these steps: Press Ctrl-Alt-R to open...

Advise HTMLElementEvents2 sink (MSDN website)

From the msdn website void CMyClass::ConnectEvents(IHTMLElement* pElem) { HRESULT hr; IConnectionPointContainer* pCPC = NULL; IConnectionPoint* pCP = NULL; DWORD dwCookie; // Check that this is a connectable object. hr = pElem->QueryInterface(IID_IConnectionPointContainer, (void**)&pCPC); if (SUCCEEDED(hr))...