visual-studio-2008

What is the easiest way to add a Visual Studio 2008 Context Menu Item?

拥有回忆 提交于 2019-12-22 09:45:46
问题 I would like to add a custom menu item when you right-click a certain file extension in Visual Studio. There seem to be some helper open source projects to accomplish this, but I'd like to ask if anyone has ever used them, and how easy were they - and can you help me and provide a starting point? One I've researched is: http://www.codeplex.com/ManagedMenuExtension 回答1: Here's a tutorial that explains how to add a Context Menu Using a Macro instead of creating a Visual Studio Add-in. Hope it

Crystal Report “Invalid file name.” issue

ε祈祈猫儿з 提交于 2019-12-22 09:37:51
问题 I have uploaded my WebApplication . My application is in VS2008 with Crystal Reports 2008 sp3. I have uploaded on parallel plex server. I have added all the Required Dll of crystal reports in the Bin folder. My report path is also correct. The error i receive is Line 41: ReportDocument myreport = new ReportDocument(); Line 42: string reportPath = Server.MapPath("~/CrystalReport.rpt"); Line 43: myreport.Load(reportPath); Line 44: Line 45: myreport.SetDataSource(ds); [COMException (0x800001fb):

Why does the .NET tab in the 'Add Reference' dialog in Visual Studio not list the contents of the GAC?

余生颓废 提交于 2019-12-22 09:29:56
问题 Duplicate of : Getting assemblies to show in the .NET tab of Add Reference So, I'm using Visual C# 2008 Express Edition and I've just been on a bit of a detour as I found out that my assumption that the .NET tab of the 'Add Reference' dialog lists the contents of the GAC was incorrect. This was a bit of a problem for me as the assembly that I wanted to reference from my project was only available in the GAC. (It was Microsoft.XNA.Framework v2.0 obtained from the XNA 2.0 redistributalbe and as

VS2008: Autogenerated files and XML documentation

孤人 提交于 2019-12-22 09:19:41
问题 This is an annoyance more than a problem. My project contains a number of autogenerated files (using mgmtclassgen.exe). When I generate the XML documentation, my beautifully commented library is plagued by xml documentation warnings from these autogen files. Is there a way to either a) suppress generating documentation for these files or b) suppress warning CS1591 just for a set of files? I obviously do not want to modify files that are autogenerated, even if to just add suppression pragmas.

VS2008 Suspending all threads upon hitting breakpoint

China☆狼群 提交于 2019-12-22 09:01:52
问题 I must be missing something.. (I'm used to using eclipse) Visual Studio 2008 appears to suspend all threads when I hit a breakpoint - is this normal? If so, is there an option that will only suspend the thread on which the breakpoint has hit? 回答1: Yes this is completely normal for a debugger to do. Consider what would happen if it did not. Any value the debugger displayed would have to be considered out of date the moment it was displayed because any of the other running threads could be

WIX: Heat duplicate id issue with multiple features/folders

纵饮孤独 提交于 2019-12-22 08:59:34
问题 I am newbie to Wix and creating a multi feature Wix project. Our product is having 4 modules and each module has to be included as a feature in the Windows installer. But all features are sharing the same folder structure. I am using commandline to build my Wix project. After harvesting every module into different wxs fragments, the light.exe giving error saying that duplicate id in the dirercoty table. My file tree is look like... ModuleA - Core |--bin |--etc | |--mgr |--lib |-- a.txt

How do I implement intellisense support for a custom DLR language in VS2008?

只愿长相守 提交于 2019-12-22 08:52:06
问题 I have just started writing my first language for the .NET DLR. I would like to know if it is possible to extend Visual Studio 2008 IntelliSense to handle the syntax of a custom DLR language? EDIT: I have decided to bypass VS2008 and target VS2010 instead. See accepted answer for more information. 回答1: Visual Studio's primary extensibility method for supporting new languages is through Language Services in a VSPackage. Visual Studio 2010 has radically improved the ability to support a new

Web Site in solution where “Rebuild Solution” compile succeeds cannot launch debugger

淺唱寂寞╮ 提交于 2019-12-22 08:47:08
问题 I have a solution that includes a Web Site (created using the web site template not the web app project template - converting isn't an option, btw). When I rebuild all, the compile succeeds, but strangely displays 3 errors, all of which are "Could not get dependencies for project reference 'PROJNAME'". When I try to launch the debugger, I get the "There were build errors." dialogue. Two questions: If I choose the 'Yes' option in the debug error dialogue to run the last successful build, will

How to turn off RTTI in Visual Studio 2008

房东的猫 提交于 2019-12-22 08:42:45
问题 I am not sure about other versions, but, in VS 2008 even with RTTI disabled I can query the information by calling typeid(T).name() on the type. It works with all types, internal and user created. Our project has RTTI disabled but I was surprised to find that this still worked. Is this a Visual Studio bug or is the /GR- flag not enough to disable it? Does this fall into the realm of undefined behavior ? If it is not a bug, how do I really turn it off? 回答1: Is it possible that you used typeid

Test multiple domains using ASP.NET development server

江枫思渺然 提交于 2019-12-22 08:42:29
问题 I am developing a single web application that will dynamically change its content depending on which domain name is used to reach the site. Multiple domains will point to the same application. I wish to use the following code (or something close) to detect the domain name and perform the customizations: string theDomainName = Request.Url.Host; switch (theDomainName) { case "www.clientone.com": // do stuff break; case "www.clienttwo.com": // do other stuff break; } I would like to test the