visual-studio-2008

Code Metrics Calculation in Visual Studio

点点圈 提交于 2019-12-31 08:07:03
问题 What is the prefered score range for the code metrics calculation for the following Maintainability Index Cyclomatic Complexity Depth of Inheritance class Coupling 回答1: The theoretically optimal values are: Maintainability index: 100. Higher values indicate better maintainability. Cyclomatic complexity: 1. The number of different paths that code can take. Depth of inheritance: 1. The number of class definitions above this one in the inheritance tree, not including interfaces. Class coupling:

Code Metrics Calculation in Visual Studio

早过忘川 提交于 2019-12-31 08:06:07
问题 What is the prefered score range for the code metrics calculation for the following Maintainability Index Cyclomatic Complexity Depth of Inheritance class Coupling 回答1: The theoretically optimal values are: Maintainability index: 100. Higher values indicate better maintainability. Cyclomatic complexity: 1. The number of different paths that code can take. Depth of inheritance: 1. The number of class definitions above this one in the inheritance tree, not including interfaces. Class coupling:

Compiling a project (VS 2008) with the /p argument (preprocess to a file) doesn't compile

你说的曾经没有我的故事 提交于 2019-12-31 05:24:22
问题 I have a project in C++ that I would like to view the preprocessor output to see what some #defines and macros would look like. I tried the /p switch to turn on the preprocess to a file option to the compiler (it turns off full compilation and only runs the preprocessor) but my project now refuses to compile and shows a long list of errors starting with: "Cannot open include file: 'stdafx.h': No such file or directory". The project compiles fine without the /p argument, of course. Any

Reflection - Iterate object's properties recursively within my own assemblies (Vb.Net/3.5)

喜你入骨 提交于 2019-12-31 05:23:06
问题 I wonder if anyone can help me - I've not done much with reflection but understand the basic principles. What I'm trying to do: I'm in the process of developing a class that gathers a lot of information about the local system, network, etc... to be used for automated bug reporting. Instead of having to change my test harness every time I add a new property, I'd (ideally) like to be able to serialise the lot as an XML string and just display that in a textbox. Unfortunately, the Framework won

load sharepoint 2007 webpart to microsoft online emea?

倾然丶 夕夏残阳落幕 提交于 2019-12-31 05:17:16
问题 i have in my visual studio 2007 implemented webpart "Hello World". in project there are webpart.cs, webpart.xml and webpart.webpart files. i builded hole project, and tryed to load webpart.webpart in my online sharepoint project which is on emea microsoft server. loaded followinig: webpartcatalog->load->"webpart.webpart". its loaded allright. but when i want to add it in aspx page coming follow error -> "Cannot import webpart webpart" please help me load "Hello World" webpart. there is XML of

How do I install GDI+ version 1.1 on Windows XP?

一世执手 提交于 2019-12-31 03:36:10
问题 Has anyone done this successfully? As I understand, GDI+ 1.1 only ships with Vista. I'm trying to get my hands on the different Effects classes. I'm using C++ VS2008 (VC9) 回答1: GDI+ 1.1 is not redistributable according to EULA of Windows Vista. 回答2: There is a version of GDI+ 1.1 in Office 2003 that does not work with the interfaces provided by Vista SDK. I am not sure if you can guess out the signatures of the flat APIs or not. there was strategic decision made to not redistribute GDI+ 1.1

Tracing LINQ TO SQL generated queries in ASP.NET MVC

纵饮孤独 提交于 2019-12-31 02:55:15
问题 Quick question on LINQ to SQL generated queries output. I am in a ASP.NET MVC project, Visual Studio 2008, and I am trying what's suggested in MSDN documentation: MyDataContext _dc = new MyDataContext(); _dc.Log = Console.Out; But nothing is being shown on "Output" window (CTRL+Alt+O). Is there is something else I need to configure in order to make LINQ to SQL dumping debug info to Output window in Visual Studio 2008? I don't know if it makes any difference, but my entities (and MyDataContext

VS2008 Debug ASP and ASP.net together

孤街醉人 提交于 2019-12-31 02:09:10
问题 Is there any way to debug both classic ASP and ASP.net applications from visual studio to allow me to breakpoint on an ASP line of code and an ASP.net one too? This is for a legacy system which has older classic asp components and newer ASP.net modules I have it working by debugging the ASP.net on its own (and not the ASP) or the other way around by debugging the ASP (and not the ASP.net) To do ASP: Attach to process w3wp.exe from within Visual Studio (as the site is hosted on IIS7 on my

Exported Project Template from VS2008 but it is corrupted?

[亡魂溺海] 提交于 2019-12-31 02:00:52
问题 I am working on creating a custom project template with Visual Studio 2008 Team System edition. I have also created a custom wizard for the custom template. So I have to update the vstemplate file to tell the template to use my custom wizard. But the archive is corrupted! 7zip thinks folders within the archive are using non-standard zip compression. The latest winzip thinks the CRC header on the folders doesn't match the main CRC header. What am I doing wrong? If I don't change the template

Don't see Clean solution option in Visual Studio

柔情痞子 提交于 2019-12-31 01:40:28
问题 For one of the solutions, I don't see the Clean Solution option neither in the context menu when I right click on the solution name in the Solution Explorer nor in the Build menu. When I make any changes to the project and debug, VS never hits the break point and I get the "The breakpoint will not currently be hit. The source code is different from the original version." message. My understanding is that I need to clean the solution. For other solutions, I do see the Clean solution and I don