المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Namespace problem (no strong name)



C# Programming
07-24-2009, 11:40 AM
My app has a number of projects in it. They all use the same namespace (ClientServerTimesheet).

I need to print some grids, so I have added Printing.DataGridViewPrintProvider to the solution, without changing its namespace.

In the client part I have added a reference to it and I can print. But I have a problem with the height of the first row and so I want to look at the array of row heights.

I have a project Globals, with a class Lookup. Lookup contains a public static array of float rowHeights.

In DataGridViewPrintProvider I have added a reference to Globals.
In DataGridViewPrintProvider I use the line
global::ClientServerTimesheet.Lookup.rowHeights[row.Index] = GridView.Rows[row.Index].RowHeight(g);
but it won't build, saying that Globals does not have a strong name.

I supect that what I actually need is to qualify the above line better, or do I really need to create a strong name for Globals? Not sure how to do that with C# 2008 Express