PDA

View Full Version : حرفه ای: کاربرد Assembly Info در پروژه ها چیست؟



hmahdavi921
سه شنبه 15 دی 1394, 14:55 عصر
سلام
در پروژه ها یک فایل سی شارپ با نام Assembly Info وجود دارد که محتوایی مشابه متن زیر دارد .دوستان موارد و ضرورت کاربرد این فایل رو میدونید؟
با تشکر



using System.Reflection;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("test_module_template")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("test_module_template")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("5ef01dd5-84a1-49f3-9232-067440288455")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("00.00.01.*")]
[assembly: AssemblyFileVersion("00.00.01.*")]

پیام حیاتی
سه شنبه 15 دی 1394, 16:06 عصر
فکر می کنم پروژه یا تحقیق دانشگاهی بهتون دادن که این قبیل سوالات را مطرح می کنید .
در سایت های فارسی زبان توضیحات بهینه ای پیدا نمی کنید بهتر است جستجو کنید:
https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=what's+Assembly+Info+in+c%23%3F

hmahdavi921
سه شنبه 15 دی 1394, 16:30 عصر
فکر می کنم پروژه یا تحقیق دانشگاهی بهتون دادن که این قبیل سوالات را مطرح می کنید .
در سایت های فارسی زبان توضیحات بهینه ای پیدا نمی کنید بهتر است جستجو کنید:
https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=what's+Assembly+Info+in+c%23%3F

نخیر آقای حیاتی . من تازگی دارم روی CMS دات نت نیوک کار میکنم که وقتی تو ویژوال یک پروژه برای ساخت ماژول باز میکنید البته با افزونه مربوطه ، یک سری فایل ها و کلاس ها رو اتوماتیک ایجاد میکنه . به همین خاطر میخوام بدونم کاربردشون چیه. البته اینم بگم که این فایل رو من در پترن های معتبر دنیا مثل میکروسافت هم دیدم که برای بیس پروژه همچین فایل ها و کلاسهایی رو ایجاد میکنن.

ahmad156
جمعه 18 دی 1394, 00:00 صبح
Assembly Info به نحوی Meta Data مربوط به DLL هست که شما میتونین با Right Click روی یه DLL ببینین.بدون اون هم DLL شما کار میکنه (مگر در مورد COM Interop (https://en.wikipedia.org/wiki/COM_Interop) که اون هم دو موردش الزامی هست Comvisible و Guid)