visual-studio-2008

How do you run a console application in the Visual Studio output window, instead of opening a new command prompt?

我怕爱的太早我们不能终老 提交于 2020-01-12 06:33:12
问题 I'm developing a simple console application in Visual Studio 2008 and want to run it in the output window inside Visual Studio 2008, instead of having a separate command prompt window come up. Is there a way to do this? 回答1: If you run the console app in the post build step it's output will go to the output window. The inability to do this easily has been on of my biggest peeves with VS (any version) 回答2: ctrl+F5 seems to "start without debugging" in the debugging menu. 回答3: Does it actually

How do you run a console application in the Visual Studio output window, instead of opening a new command prompt?

心已入冬 提交于 2020-01-12 06:33:11
问题 I'm developing a simple console application in Visual Studio 2008 and want to run it in the output window inside Visual Studio 2008, instead of having a separate command prompt window come up. Is there a way to do this? 回答1: If you run the console app in the post build step it's output will go to the output window. The inability to do this easily has been on of my biggest peeves with VS (any version) 回答2: ctrl+F5 seems to "start without debugging" in the debugging menu. 回答3: Does it actually

Programmatically building an MSI

纵然是瞬间 提交于 2020-01-12 05:26:08
问题 I would like to create a C# program that creates an MSI based on a number of parameters. For example, based on user settings, certain files would be included, or runtime parameters set. Can anyone point me towards any documentation that might help, or give me an idea where I might start with something like this? 回答1: If you really want to do this in code you'll want to take a look at the Windows Installer API. However, Wix has built a nice managed tool set that will make authoring MSIs much

Dynamically setting the IISUrl of a Web Application Project

旧巷老猫 提交于 2020-01-12 04:32:08
问题 I have a web application project that I'd like to be able to branch and develop on a totally separate IIS site and not have to keep editing the vbproj IISUrl setting each time I do it. I have tried adding an import of some standard properties so I can maintain them outside of the WAP file but when I reference them in the element it doesn't like them. I suspect it's because the IISUrl element is part of which is a place to put non msbuild info. As you can see in the code below, I'm trying to

“Substring” a GridView BoundField object

廉价感情. 提交于 2020-01-11 11:13:13
问题 Can anyone tell me how to substring a GridView BoundField object please? I tried this so far and it hasn't worked. Thank you. <ItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%# ChopString((string)Eval("description")) %>'></asp:Label> </ItemTemplate> 回答1: You need to use substring. Eval("description").ToString().Substring(0,60) I believe thats all you need. 回答2: It says The name 'ChopString' does not exist in the current context Make sure your ChopString method is either protected

C# on OS X and Linux?

可紊 提交于 2020-01-11 10:17:46
问题 I have an application coded from Visual C# Express 2008. I want to port that application to a Mac OS X *.app and a Linux application. How do I go about doing that? Are there any compilers available on the internet that I can download to have it parse my C# source codes and output the other OS counterparts ? 回答1: Mono: http://www.mono-project.com/Main_Page 回答2: You need to use the Mono project which supports all these platforms. You may need to re-work your project to deal with any Windows

C# on OS X and Linux?

点点圈 提交于 2020-01-11 10:17:32
问题 I have an application coded from Visual C# Express 2008. I want to port that application to a Mac OS X *.app and a Linux application. How do I go about doing that? Are there any compilers available on the internet that I can download to have it parse my C# source codes and output the other OS counterparts ? 回答1: Mono: http://www.mono-project.com/Main_Page 回答2: You need to use the Mono project which supports all these platforms. You may need to re-work your project to deal with any Windows

Properties page not displaying in Visual Studio 2008

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-11 09:16:08
问题 I'm using Visual Studio 2008 Team Development Edition and my Project properties page will not display. I right-clicked the project name and selected "Properties" and no page displayed as it normally would. Also, when I double-click the Settings.settings the normal Settings GUI does not display. I only see the XML in the Settings.settings file. Please Help. Thanks. 回答1: It appears that the uninstallation of an add-on is what caused my problem. Reinstalling Visual Studio did not seem to help,

Visual C++ 10 lowercases the __FILE__ macro

。_饼干妹妹 提交于 2020-01-11 08:53:26
问题 The __FILE__ preprocessor macro in Visual C++ 10 expands to the name of the source module, but in lowercase, e.g. c:\path\to\my\file\somesource.cpp when the file name is actually SomeSource.cpp Is it possible to change this behaviour? 回答1: As suggested by Hans Passant, I asked the question on Microsoft Connect and got the following answer: Thanks for noting this. This behavior has existed for a while, at least back to VS 2008. Changing the default behavior could potentially be a breaking

Debugged Program Window Won't Close

瘦欲@ 提交于 2020-01-11 08:25:54
问题 I'm using VS 2008 on a 64-bit XP machine. I'm debugging a 32-bit C++ DLL via a console program. The DLL and EXE projects are contained in the same SLN so that I can modify the DLL as I test. What happens is that every once in a while I kill the program with Debug | Stop Debugging (Shift-F5). VS stops the program, but the console window stays open! If I'm sitting at a breakpoint and hit Shift-F5, it will terminate properly, but if the program is running full-tilt when I stop it, I often see