visual-studio

Deploying a VS Web Application with files built in post-build

In our VS Web Application project, we have a post-build task that concatenates and minifies our JavaScript files into a single file name "OurApplication-.js" (where is the version of the website assembly). Since it is built automatically and has a frequently changing name, it is not part of the project or in source control. So far we ...

Brief "run-down" on setting up Unit Tests in Visual Studio 2008

I am forcing myself to learn test-driven development, and so far I'm enjoying myself. There's a few quirks that Visual Studio Unit Testing has that is driving me batty though. A bit of background information, my project folder looks like this: [Root] BitFlex BitFlex\Code BitFlex\Debug BitFlex\Documents BitFlex\Release Now of course a...

build and release package in sharepoint

I am new to config / build and release management. We are using VSS for our config management tool and also we are using SharePoint in our project. In VSS we have lot of files like .cs, .snk, .dll, .pdb, .css, .js, .xml etc. We want to make a build/release as a package for testing that should be an internal delivery. I don't have any ide...

C# Designer: Removing redundant code from Design.cs.

Hi, I have a form which has several buttons, labels and other stuff on it, but the designer appears to remember old elements of that form that have previously be deleted. Is there anyway to 'refresh' the form.Designer.cs code to inform it what elements are currently on the form and what elements are not. Cheers for the help in advanc...

Strange behaviour of Visual Studio while trying to make windows installer package

I have serious problem with Visual Studio, I'm trying to create Windows Installer package, so i have created new setup project, but the "Add Project Output Group" function doesn't work. The drop-down lists are empty, so i can't do absolutely nothing. Does anyone know why? ...

Visual Studio 2008 Security Update installation Issue KB 971092

Posting this so this can be here for others. Just noticed - today that I have been in a cycle of downloading KB971092 and installing with reboot. 7 times - 350Mb file. fsk! Hotfix KB 971092 for Visual Studio 2008 SP1 install problems ...

How do you share external dependencies between Visual Studio solutions?

I have a Java background so I’m used to having Maven handle all problem around downloading and keeping dependencies up to date. But in the .NET environment I have not yet found a good way to manage all these external dependencies. The main problem here is that I mass produce solutions and they all tend to depend on the same third party...

Using libxml2 in Visual Studio 2008 and Windows XP

I have a weird problem when running an application that uses GNOME's libxml2 under Visual Studio 2008 (VS2008-SP1) and Windows XP. I have two C++ projects: Project A (a library) Project B (an application that depends on Project A) Both under one VS solution. Project A is statically compiled with libxml2.lib. I've added dependencie...

Overlapping Panels in C#

I am using the GUI forms builder in c#. I have a TransparencyKey set, and the backGround color of the whole form is set to that Transparency key so the background of the form seems invisible. I also have a login panel that appears at first and after the user logs in it disappears and the other panels become visible. This all works except...

How do I create a Visual Studio add in to analyze code

I want to have a go at writing add ins for visual studio that can play around with the code like resharper does e.g. look at a line of code and then suggest which "using statements" need to be added. This is purely for educational purposes and a bit of fun, however I have no idea where to get started with the extensibility model. Can an...

How do I make my code perform a random function

I want my code to randomize between three different functions: private void BackPack1() { Player.Skin.SetComponent((PedComponent)3, 3, 0); } private void BackPack2() { Player.Skin.SetComponent((PedComponent)3, 3, 1); } private void BackPack3() { Player.Skin.SetComponent((PedComponent)3, 3, 2); } Is there an easy way? ...

Making sure C# program can run on machine with only .Net v2

I'm using VS 2005 Standard SP1, with .Net 3.5 SP1 installed on XP. The client machines only have .Net 2.0.50727 installed (also on XP). How can I tell the compiler to reject any classes or methods that are not available in .Net 2? ...

Error occuring when installing Visual studio 2008

I had already installed VS 2008 in my Laptop.When i starts installing vs_vstsweb.exe(Microsoft Visual Studio Team System 2010 Team Suite Beta 1 - ENU) after first three steps it got stopped.So i decied to uninstall full vs 2008 and uninstalled .now when i installing vs 2008 its getting error Visual studio just-in-ti...

How do you use guidelines to help format your code in the VS editor?

Go to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\9.0\10.0\Text Editor. What guideline settings do you use? ...

How to disable Visual C# activity from appearing in My Recent Documents?

Hi, I would like activity in my Visual C# 2008 Express to not appear in My Recent Documents (I use Windows XP). To clarify, when you open a solution or other file in Visual C#, a link to that solution or other file is added to "My Recent Documents". I would like that not to happen. How can that be achieved? I know there's a chance thi...

Problem in retrieving property value of an instance of an OWL class

Hello, I have some owl classes which have instances. These classes also have properties which have value for each instance. I've made my ontology by Protege3.4, and made c# library by Rowlex from them. For example the class 'Program', has an instance of 'Software' and 'atGrade' property. Property value for this instance is 'PHD' (atGrade...

Can a C++ dll compiled using Visual Studio 2008 be used with Visual Studio 2005?

I'm going to be working with a C++ library written in plain C++ (not .NET and without MFC). The library is available compiled using both Visual Studio 2005 / Intel Fortran 9.1 and VS 2008 / Intel Fortran 10.1. Obviously I'm going to grab the binaries for VS 2008 since that's the environment on my computer but I'm curious if there are r...

emacs as IDE: Handling a project directory?

Hello. I've always used emacs for small projects (and Visual Studio for large ones). I was wondering what the alternatives are for handling a directory structure within emacs, something like the solution explorer in VS. Thank you. ...

visual basic 6, trying to rebuild non-working project

We are NOT in the best situation! We have been given the 'latest' project files, and they don't compile. So we are trying to reconstruct the solution and restore it to a working state. We copied all the modules and forms into one project and yet when we compile it is not picking up all the form events, such as Form_Activate. The eve...

Where can I get information about the C/C++ linker in Visual Studio?

I'd like to learn more about C/C++ linker issues and troubleshooting in Visual Studio. I've had linker problems crop up from time to time and they are really annoying since you get such limited information from the linker error messages. I've seen a few not-so-detailed MSDN articles but nothing in depth. Where can I find a good source...