Is there a way to find out the project path at compile time?
I want to create a unit test that tests if the configurartion in the default web.config (the one in the project folder). Mainly to reduce human error.
I cannot rely on assembly locations at runtime (for the test), so I need to know where the project folder is to access web.c...
Is it possible to use a C++ static library (.lib) compiled using Visual Studio 6 in Visual Studio 2008?
...
How do I go about connecting Visual Studio on my host machine to Window Server 2008 that is running in VPC? I basically want to be able to deploy ASP.Net apps to it as well as access the apps from the host machines browser.
...
Hi, I have a very wierd problem happening to me during unit testing (MSTest in Visual Studio - .NET 3.5 SP1):
I click "Run All Tests in solution"
All tests passes, except for one particular class, where every tests throws the following exception: "System.IO.FileLoadException: Loading this assembly would produce a different grant set fr...
Is there any way to hide the designer properties from the code file members drop-down list? The members list is the drop-down list on the top right hand side when editing a code file. It contains members defined in the code file itself, which is very useful, and those defined in the designer file, which is not useful at all. The designer...
I have been learning ASP.NET by experimenting, watching videos on ASP.NET, and reading forums. I haven't found a quick solution to this though.
Whenever I add the "login" or "createuserwizard" from the toolbox it always adds the new users to a database known as "ASPNETDB.MDF" even if I specify the remote database using a new SqlDataSou...
In .NET is it possible to generate class diagrams (.cd) programmatically (C#)? If so how?
PD: Obviously I'm not asking for directions of how to generate this using the IDE. I know that I can drag and drop the classes to a ClassDiagram item.
...
I know that I can access the cyclomatic complexity to my code in Visual Studio 2008 Team Explorer by right clicking and selecting "Calculate Code Metrics". I would like to expose this data for a web application to display it. Does anybody know of any way of accessing this data through an API?
Thanks for your help!
...
Instead of a *.cs code behind or beside I'd like to have a *.js file. I'm developing a MVC application an have no need for a code beside because I have controllers, but in certain cases it'd be nice to have a JavaScript code beside or some way to associate the file to the page it's being used on. I suppose I could just name them simila...
I have a batch file that's being run in a Visual Studio custom build step to copy files into an install directory. I want it to error out properly when the copy fails. The problems with the options I have are:
exit 1This works within the build sequence fine, but sometimes I want to use the batch file from the command line or from withi...
Another developer and I are experiencing different behavior in native C++ executables built with Microsoft Visual Studio 2008, Version 9.0.30729.1 SP on different machines.
We are statically linking to the Standard Library so we don't think it's a DLL version issue. We have ruled out differences in our source code and build settings.
...
I'm working with with asp.net and writing a few classes (controls for the CMS) to use on my website. At the moment i'm using a text editor (UE) which has sftp support and syntax highlighting to edit the files and save via sftp. Then i just test it out on the test site. It's working well.. but since i'm very new to c# i'm always looking u...
I have a file a xyz.cpp. I want to open two instances of a this file in Visual studio (btw I am using 2005). Why would I want to do so? I want to compare two sections of the same file side by side. I know workarounds such as
1) make a copy of the file. But the problem is that its not elegant and I dont want to make copies everytime I ...
We have a web based system with three different front ends. We've recently splitted these into three projects, all in one solution.
We also have a common project in the solution, for helpers and such.
What i'm looking for is a way to put shared css, js and image resources in the common project to be easily accessed by all three front end...
I need to find the bandwidth available at a particular time. The code must be developed in Visual C++ or in .Net family . If anyone knows how, please help me out.
...
In the Open File Dialog and Open Project Dialog there is a short cut panel on the right. Is there any way to add our own short cuts here?
Office has a very similar dialog that allows you to do this - but Visual Studio doesn't seem to allow this.
...
What is the difference between ToolStripSplitButton and ToolStripDropDownButton?
(Visual Studio 2008) (Also asked here, not on SO). At first blush, they seem to be largly the same; especially in the designer.
...
Hello,
I am coming from the django world to maintain a fairly complicated classic asp site. Unfortunately the site is riddled with uncommented, copy/pasted, spaghetti code spread out over several hundred files hidden away in a few dozen directories.
To be curt, it's a bit of a nightmare ;)
Anyway, I am most familiar with eclipse, and ...
I'm using a black syntax highlighting theme in my Visual Studio.NET which I like very much. When in debug mode and step-by-stepping through the code the current line background is yellow, which is Ok.
However the line of code up the stack that invoked the function I currently stepping through is also highlighted, in ugly gray backgroun...
Here is the problem:
1. Create a TestProject in your Visual Studio solution.
2. Open the .testrunconfig file and under the 'deployment' menu item, select the 'Enable Deployment' checkbox.
3. Now click on 'Add Directory...' button and add a folder which has some files in it.
4. Run the test project (use a dummy test).
Ok, now go check th...