473,395 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

METADATA and MANIFEST

What is the difference between METADATA and MANIFEST
and where do they get stored?

Thank you
Jul 21 '05 #1
1 8654
I have replied the same at http://www.mail-
archive.com/bd*****@groups.msn.com/msg04438.html
This is how I understand it. An assembly contains a
Manifest. manifest contains the
metadata + some additional tables. Metadata is data about
itself whereas manifest
includes references to outside classes, dependencies on
other assemblies and
information (tables) about that along with the
metadata.Also remember Metadata is
contained in assembly and modules, manifest is present in
assemblies. An Assembly Manifest is
nothing but some extra tables in the Metadata section of
the PE file which contains
the assembly's identity, culture, files, and publicly
exported types, and all of the
files (modules etc) that comprise the assembly. It also
references other referenced
assemblies on which the assembly is dependent.
This is the main difference between a assembly and a
module. A assembly contains a
assembly manifest while a module does not contain a
assembly manifest. One point to be
noted here is that both assemblies and modules contain
Metadata which describes them.
It is the self-describing assembly manifest which gives
applications on the .NET
Platform independence from the registry.
In layman's terms say if you have a application comprising
of a assembly named
Assem.exe and a module named Mod.dll. Then in the assembly
manifest which will be
stored within the PE Assem.exe will not only contain
metadata about the classes,
methods etc contained within the Assem.exe file but also
it will contain references to
the classes, methods etc exported in the Mod.dll file.
While the module Mod.dll will
only contain metadata describing itself.

You can store the assembly manifest within the executables
or libraries created with
the /t:exe, /t:winexe and /t:library switches in the C#
compiler. Or you can create a
separate PE file which will just contain the assembly
manifest. Although there is no
separate compiler option to create a assembly.
The /t:exe, /t:winexe and /t:library
switches always compile a single PE which contains the
assembly manifest."

HTH, Dolly

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: hawat.thufir | last post by:
an ant build.xml file: <project name="XHTML" default="package2"> <import file="properties.xml" /> <target name="clean"> <delete dir="${outputDir}" /> </target>
2
by: Andy Turner | last post by:
I've read a few articles on this and I still can't seem to get it set in my brain! What's the correlation between these two? Some articles seem to use the terms interchangeably! Cheers for any...
1
by: Fedor Buyakov | last post by:
hello all i have a specific question according hiding unmanaged (native) types in metadata for assemblies generated by c++ with managed extensions. i understand what these types are nedeed in...
3
by: Jonathan Payne | last post by:
Hi, I am interested in adding a manifest file to the resources for a MFC application. When I create an AppWizard MFC app with a manifest file it adds the following lines to the .rc file: ...
1
by: Santhu | last post by:
What is the difference between METADATA and MANIFEST and where do they get stored? Thank you
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
14
by: _iycrd | last post by:
After several frustrating attempts to wrap a native DLL w a C++/CLI DLL, I finally got an assembly to compile, only to find a *runtime* error. The app comes up fine. Test dialog displays. ...
0
by: Deshi | last post by:
As per my knowledge i come to know that when we compile source code assembly get created created at <Drive>:\WINDOWS\Microsoft.NET \Framework\v2.0.50727\Temporary ASP.NET Files (VS2005)...
0
xarzu
by: xarzu | last post by:
Getting a C# program with a manifest file to run in the debugger ---------------------------------------------------------------- How do I declare a manifest file in the Visual Studio IDE for C#...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.