visual-studio-2008

Mercurial .hgignore for Visual Studio 2008 projects

允我心安 提交于 2019-12-17 04:12:08
问题 What is a good setup for .hgignore file when working with Visual Studio 2008? I mostly develop on my own, only occasionly I clone the repository for somebody else to work on it. I'm thinking about obj folders, .suo, .sln, .user files etc.. Can they just be included or are there file I shouldn't include? Thanks! p.s.: at the moment I do the following : ignore all .pdb files and all obj folders. # regexp syntax. syntax: glob *.pdb syntax: regexp /obj/ 回答1: Here's my standard .hgignore file for

How can I embed an application manifest into an application using VS2008?

巧了我就是萌 提交于 2019-12-17 04:06:49
问题 I've read here and here for ways to embed my application's manifest files inside the PE but these steps do not seem to work for VC#:VS2008 - VS2008 doesn't even come with mt.exe (as far as i know) How might I go about doing this? 回答1: You can add a manifest to your C# application by following these steps: Right-click on your project in the Solution Explorer Select "Add New Item" from the context menu. Choose "Application Manifest File" from the list of options in the dialog box that appears.

How can I embed an application manifest into an application using VS2008?

安稳与你 提交于 2019-12-17 04:06:46
问题 I've read here and here for ways to embed my application's manifest files inside the PE but these steps do not seem to work for VC#:VS2008 - VS2008 doesn't even come with mt.exe (as far as i know) How might I go about doing this? 回答1: You can add a manifest to your C# application by following these steps: Right-click on your project in the Solution Explorer Select "Add New Item" from the context menu. Choose "Application Manifest File" from the list of options in the dialog box that appears.

How can I automate the “generate scripts” task in SQL Server Management Studio 2008?

痴心易碎 提交于 2019-12-17 03:23:39
问题 I'd like to automate the script generation in SQL Server Management Studio 2008. Right now what I do is : Right click on my database, Tasks, "Generate Scripts..." manually select all the export options I need, and hit select all on the "select object" tab Select the export folder Eventually hit the "Finish" button Is there a way to automate this task? Edit : I want to generate creation scripts, not change scripts. 回答1: What Brann is mentioning from the Visual Studio 2008 SP1 Team Suite is

Slow debugging issue in Visual Studio

二次信任 提交于 2019-12-17 03:01:43
问题 In my Visual Studio, even I just wrote a single line of return in a C# console application, it will take me a minute after pressing F5 to execute the actual code (I mean the time it takes to stop on the single return statement after pressing F5 -- I set a breakpoint on return statement in Main function). I am wondering what is wrong? Any check list? Thanks! I am using Visual Studio 2008 VSTS edition and debugging on Windows Server 2003 x64. thanks in advance, George 回答1: You may need to

Visual Studio debugger - Displaying integer values in Hex

≯℡__Kan透↙ 提交于 2019-12-17 02:29:53
问题 I'm using Visual Studio 2008 and I have just noticed that the debugger is displaying integer values as Hex when I hover over variables and also in the immediate window. I guess I must have hit a shortcut key accidently or something. Anyone had this before? How do I set it back to display in decimal? 回答1: Right-click your Watch Window or Immediate Window and uncheck Hexadecimal Display option. 回答2: You can also choose hexadecimal or decimal display on a per-variable basis in the Visual Studio

Command to collapse all sections of code?

不问归期 提交于 2019-12-17 02:03:46
问题 In Visual Studio (2008) is there a command to collapse/expand all the sections of code in a file? 回答1: CTRL + M + O will collapse all. CTRL + M + L will expand all. (in VS 2013 - Toggle All outlining) CTRL + M + P will expand all and disable outlining. CTRL + M + M will collapse/expand the current section. CTRL + M + A will collapse all even in Html files. These options are also in the context menu under Outlining. Right click in editor -> Outlining to find all options. ( After disabling

How to start WinForm app minimized to tray?

我是研究僧i 提交于 2019-12-16 22:12:31
问题 I've successfully created an app that minimizes to the tray using a NotifyIcon. When the form is manually closed it is successfully hidden from the desktop, taskbar, and alt-tab. The problem occurs when trying to start with the app minimized. At first the problem was that the app would be minimized but would still appear in the alt-tab dialog. Changing the FormBorderStyle to one of the ToolWindow options (from the "None" option) fixed this, but introduced another problem. When the app first

Build VS2008 projects with .Net 2.0/.Net 3.5 using NAnt

微笑、不失礼 提交于 2019-12-14 04:06:00
问题 I'm trying to write a build file to build a simple C# solution but it is failing with the error: Unknown task or datatype . My solution is written in VS2008 but targeted at .Net 2.0 (I'm using Vista if that helps). I've already seen the other question running-builds-using-net-3-5-msbuild-and-nantcontrib and have tried the suggested solution and have made the change to my NAnt.exe.config file. I've tried changing the solution properties to target .net 3.5 (and changing the build file

References not updating in Solution Explorer

五迷三道 提交于 2019-12-14 03:59:11
问题 I had added some references to my C# Windows Projects through the Solution Explorer. When I am trying to load the same project on another machine, I see a yellow mark on all the references that Visual Studio is not able to detect. Therefore, I installed all the libraries that were being referenced, but still Visual Studio is not updating the list. It is still showing yellow mark. Why? 回答1: Try recompiling the solution. Sometimes when you add references to the folder that haven't been there