svn path=/branches/mono-1-1-9/mcs/; revision=50439
[mono.git] / mcs / build / common / Consts.cs.in
1 //\r
2 // Consts.cs.in\r
3 //\r
4 // Author:\r
5 //   Kornél Pál <http://www.kornelpal.hu/>\r
6 //\r
7 // Copyright (C) 2005 Kornél Pál\r
8 //\r
9 \r
10 //\r
11 // Permission is hereby granted, free of charge, to any person obtaining\r
12 // a copy of this software and associated documentation files (the\r
13 // "Software"), to deal in the Software without restriction, including\r
14 // without limitation the rights to use, copy, modify, merge, publish,\r
15 // distribute, sublicense, and/or sell copies of the Software, and to\r
16 // permit persons to whom the Software is furnished to do so, subject to\r
17 // the following conditions:\r
18 //\r
19 // The above copyright notice and this permission notice shall be\r
20 // included in all copies or substantial portions of the Software.\r
21 //\r
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
29 //\r
30 \r
31 using System.Runtime.InteropServices;\r
32 \r
33 internal\r
34 #if NET_2_0\r
35         static\r
36 #else\r
37         sealed\r
38 #endif\r
39         class Consts\r
40 {\r
41 #if !NET_2_0\r
42         private Consts ()\r
43         {\r
44         }\r
45 #endif\r
46 \r
47         //\r
48         // Use these assembly version constants to make code more maintainable.\r
49         //\r
50 \r
51         public const string MonoVersion = "@MONO_VERSION@";\r
52 \r
53 #if NET_2_0 || BOOTSTRAP_NET_2_0\r
54         public const string FxVersion = "2.0.0.0";\r
55         public const string VsVersion = "8.0.0.0";\r
56 #elif NET_1_1 || TARGET_JVM\r
57         public const string FxVersion = "1.0.5000.0";\r
58         public const string VsVersion = "7.0.5000.0";\r
59 #elif NET_1_0\r
60         public const string FxVersion = "1.0.3300.0";\r
61         public const string VsVersion = "7.0.3300.0";\r
62 #else\r
63 #error No profile symbols specified.\r
64 #endif\r
65 \r
66         //\r
67         // Use these assembly name constants to make code more maintainable.\r
68         //\r
69 \r
70         public const string AssemblyI18N = "I18N, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=0738eb9f132ed756";\r
71         public const string AssemblyMicrosoft_VisualStudio = "Microsoft.VisualStudio, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";\r
72 #if NET_2_0\r
73         public const string AssemblyMicrosoft_VisualStudio_Web = "Microsoft.VisualStudio.Web, Version=" + VsVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";\r
74 #endif\r
75         public const string AssemblyMicrosoft_VSDesigner = "Microsoft.VSDesigner, Version=" + VsVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";\r
76         public const string AssemblyMono_Http = "Mono.Http, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=0738eb9f132ed756";\r
77         public const string AssemblyMono_Posix = "Mono.Posix, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=0738eb9f132ed756";\r
78         public const string AssemblyMono_Security = "Mono.Security, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=0738eb9f132ed756";\r
79         public const string AssemblySystem = "System, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b77a5c561934e089";\r
80         public const string AssemblySystem_Data = "System.Data, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b77a5c561934e089";\r
81         public const string AssemblySystem_Design = "System.Design, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";\r
82         public const string AssemblySystem_DirectoryServices = "System.DirectoryServices, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";\r
83         public const string AssemblySystem_Drawing = "System.Drawing, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";\r
84         public const string AssemblySystem_Drawing_Design = "System.Drawing.Design, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";\r
85         public const string AssemblySystem_Messaging = "System.Messaging, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";\r
86         public const string AssemblySystem_Security = "System.Security, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";\r
87         public const string AssemblySystem_ServiceProcess = "System.ServiceProcess, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";\r
88         public const string AssemblySystem_Web = "System.Web, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
89         public const string AssemblySystem_Windows_Forms = "System.Windows.Forms, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b77a5c561934e089";
90 \r
91 #if INSIDE_CORLIB\r
92 #if BOOTSTRAP_WITH_OLDLIB\r
93         public const UnmanagedType UnmanagedType_80 = UnmanagedType.mono_bootstrap_NativeTypeMax;\r
94 #else\r
95         public const UnmanagedType UnmanagedType_80 = (UnmanagedType) 80;\r
96 #endif\r
97 #endif\r
98 }\r