visual-studio

Change Dll Folder In Visual Studio 2008 C#

I have 2 projects in my solution. The first one is a console application, and the second is a dll, used (referenced) by the console. When I build my solution (release) I get one EXE file and one DLL file, because "copy local" is true (if I set it to false, it doesn't run) How can I store that DLL file in a subdirectory? If my output fol...

When will Visual Studio 2010 Beta 2 (Ultimate) Expire (Cease working)

How long will be working Visual Studio 2010 beta2 ultimate ...

Team Foundation Server- How to effectively set up source code layout with dependencies.

I am currently trying to set up a new visual studio 2008 solution while using TFS. Current structure is as follows ProjectName - src * SomeSolution.sln * ProjectFolder1 * ProjectFolder2 - Third Party Tools In subversion I would just go to the root directory and do svn update. Or with Git, git pull origin from the root d...

Web Site -> Web Application conversion: Can I automate adding the references?

In my company, we've been converting .net "Web Sites" to "Web Applications". I have become the go-to person for this task. In order to accomplish this, I create a new project, copy all the files from the "Web Site" and include them in the project, and run the "Convert To Web Application" tool to create the "design" files. This is tota...

Visual Studio Automation: Programatically get a project output directory

I want to programatically get a project output directory in a Visual Studio macro. I managed to get a string of the path (through prj.ConfigurationManager.ActiveConfiguration.Properties and looking at property OutputDirectory) but this string may contain macros such as $(foo) where foo is defined in a property sheet or whatnot. How do I...

Visual Studio: How to exclude whole directory from source control?

I've got a Visual Studio 2008 project that contains files that are code-generated in a pre-build step. None of these files should be included in source control. I cannot predict how many files there are going to be, or their exact name. The generated files are included into the Visual Studio project file via a wildcard directive: <It...

Why does the Visual Studio Designer delete code?

Several times throughout the course of our current project, the visual studio designer has made modifications that resulted in losing code. For example, event handlers wirings that were set up manually in the designer code were lost. Does anyone know why this happens? Edit: I understand that editing these files manually is not a good...

C# Exception Handling : Somehow I am doing it wrong ?!

I know Exception Handling is a very important thing and we are doing it in all our projects. The main reason is to log errors that occur at the customers. This works fine and is not problem at all. But while I am still coding and running the application with Visual Studio I don't want any exception handling at all. I want the debugger s...

How to compile application for wince 5.0 x86 using VS

Hello, i was looking for a way of compiling application for wince 5.0 x86 using VS. I found a thread http://stackoverflow.com/questions/1313001/intel-c-compiler-for-windows-ce where you mentioned ... "For Windows CE based on x86 architecture probably yes.... we just need to use general windows compiler." I was wondering if you could p...

Run chm after msi installation?

I would like to launch a Windows Compiled HTML Help file with .chm extension after my MSI installation. There is a script at Run exe after msi installation that inserts a checkbox (had to use the two bugs fixes further down) into the last page of the installation. The script completes but I'm not sure if the LAUNCHAPP=1 can only launch...

Visual Studio 2008 Database Edition - what is it?

What is Visual Studio 2008 Database Edition -- is it different from Visual Studio 2008 Professional Edition? ...

How can i give css file into webpart components?

Hi my experts and Brain ;); Every thing is ok. But i try to add CssClass into myGridView.cs (i used webpart) but my component doesn't see css file. How to give path my css file. i added gvCustomers.CssClass = "tablestyle"; How can give path my StyleSheet.css? Don't give this link(http://stackoverflow.com/questions/2037681/how-to-use-jav...

Visual Studio and console window to see Echo from batch file

I'm getting familiar with VS2008. I made a batch file, with some Echo statements. I have the batch file running after a successful build. Is there a console window that I may see the echo outputs? ...

Lock certain pages and leave others open

I have a website that show info to all users but if you are logged in you get access to more info and pages then unlogged user does. Can i use some sessions variables and include them in each of the pages ? What is the best way to do this. Also, what is the best way to make user stay logged in, sort of "Remember me" checkbox. Save a co...

Windows Application not showing in taskbar on vista

Hi, We have a C# application that works fine on windows XP and windows vista BUT does not show the taskbar (in Vista only). In windows vista the application does not have an icon in the bottom toolbar i.e. if I have the application open and then I go to another application the only way I can get back to the app is by alt+tab through, I ...

Can I get the currently opened ASP page file name in Visual Studio.NET in a custom control?

I have a custom control in Visual Studio and I need to somehow have access to the currently opened page in Visual Studio in design mode. If I look at the Page property of the custom control, the ID just says "__Page" and most of the properties are inaccessible which isn't very helpful. Does anyone know of a service or interface that ha...

Is there a way to edit and save files on an FTP server in Visual Studio 2008+?

I want to create a project and manage the files in Visual Studio 2008 on my computer, but I want VS to upload everything to an FTP server whenever I save the project, so that I can quickly compile and test my program on UNIX. I have been using BBEdit on my Mac, which has built-in FTP opening and saving, but I want to move over to Visual...

Installing Tangible T4 Editor in VS 2010 RC

I installed the (free) Tangible T4 Editor from the VS Gallery, and shut down/restarted VS. I run on XP under an Administrator account. VS Extension Manager indicates that the editor is installed and enabled. Here is my problem: When I do Add New Item (as in the video here), I don't see any of the Tangible templates. What have I missed? ...

Create named bookmark which persist in .suo file

Hello everyone, I'm working on a plug-in which provides easy navigation to some code lines within VS, and the lines I have firstly identified may be invalidated by user updates to the code, (ex. I firstly have line number 3 of HelloWorld class and user inserts two more line before line 3 making my interested line #5). So I'm planning to...

How to refactoring GridView Class?

i try to learn refactoring my codes. i writed a base GridView class. This is: public static class GridViewUtil { public static GridView SendGridView(DataTable ds ) { GridView gv = new GridView(); gv.DataSource = ds; gv.DataBind(); gv.HeaderStyle.BackColor = Color.Silver; ...