Consts.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // Consts.cs
  3. //
  4. // Authors:
  5. // Umadevi S ([email protected])
  6. // Andreas Nahr ([email protected])
  7. //
  8. //
  9. // NOTE:
  10. // Ensure that every constant is defined for every version symbol!
  11. // This class is similar to the Consts.cs class at System.Web/Assembly by Andreas Nhar
  12. //
  13. // This class contains constants that are dependent on the defined symbols
  14. // Use it to shorten and make code more maintainable in situations like:
  15. //
  16. //#if (NET_1_0)
  17. // [Designer ("System.Diagnostics.Design.ProcessDesigner, System.Design, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof (IDesigner))]
  18. //#endif
  19. //#if (NET_1_1)
  20. // [Designer ("System.Diagnostics.Design.ProcessDesigner, System.Design, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof (IDesigner))]
  21. //#endif
  22. //
  23. // by changing them into:
  24. //
  25. // [Designer ("System.Diagnostics.Design.ProcessDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]
  26. //
  27. internal sealed class Consts
  28. {
  29. private Consts ()
  30. {
  31. }
  32. #if (NET_1_0)
  33. public const string AssemblySystem_Drawing = "System.Drawing, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
  34. public const string AssemblyMicrosoft_VSDesigner = "Microsoft.VSDesigner, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
  35. //#elif (NET_1_1)
  36. #else
  37. // NET_1_1 is seen as default if somebody 'forgets' to specify any of the symbols
  38. // to ensure we are not breaking the build in this case
  39. public const string AssemblySystem_Drawing = "System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
  40. public const string AssemblyMicrosoft_VSDesigner = "Microsoft.VSDesigner, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
  41. #endif
  42. }