Changes between Version 31 and Version 32 of MapGuideRfc68
- Timestamp:
- 09/08/09 17:38:02 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc68
v31 v32 32 32 == Proposed Solution == 33 33 34 In order to make backward compatible with the existing MapGuide applications, !MapGuieDotNetApi.dll still exists. However, it becomes an assembly with multiple files. The primary idea is single compiling and muliple linking.34 In order to make backward compatible with the existing MapGuide applications, the old assembly!MapGuieDotNetApi.dll still exists. However, it contains some TypeForwardedTo attributes only. TypeForwardedTo attribute allows you to move a type to another assembly without having to recompile applications that use the original assembly. This is solution that Microsoft recommend to keep backward compatibility of .NET API. You can get more information about TypeForwardedTo attribute from MSDN. 35 35 36 (a) Create the following netmodule files. 37 * OSGeo.!MapGuide.Foundation.netmodule 38 * OSGeo.!MapGuide.Geometry.netmodule 39 * OSGeo.!MapGuide.!PlatformBase.netmodule 40 * OSGeo.!MapGuide.!MapGuideCommon.netmodule 41 * OSGeo.!MapGuide.Web.netmodule 36 http://msdn.microsoft.com/en-us/library/ms404275.aspx 42 37 43 ( b) Create an assembly for each netmodule file in step (a). Then the following files will be created.38 (a) Create the following new assemblies. 44 39 * OSGeo.!MapGuide.Foundation.dll: contains API in Foundation component. 45 40 * OSGeo.!MapGuide.Geometry.dll: contains API in Geometry compoent. … … 48 43 * OSGeo.!MapGuide.Web.dll: contains API in !WebApp and !HttpHandler components. 49 44 50 ( c) Create an assembly for all netmodule files in step (a). The following file will be created.45 (b) Create the following assembly by adding the reference to five assemblies above and some TypeForwardedTo attribute. For example, [assembly: TpeForwardedTo(typeof(OSGeo.MapGuide.MgFeatureService))]. 51 46 * !MapGuideDotNetApi.dll 52 47 … … 62 57 63 58 Supplied by Autodesk. 59 60 == Addendum, Sept. 09, 2009 == 61