PDA

View Full Version : سوال: تبدیل dll به source و بلعکس



padidar
جمعه 28 تیر 1387, 20:13 عصر
سلام
من یک فایل dll را با برنامه های Reflector به Source تبدیل کردم. ظاهرا سورسش هم کامل تبدیل شده و مشکلی ندارد. اما مشکل من تبدیل این سورس به فایل dll هستش.

اسمبلی فایل dll اصلی بصورت زیره:


// Assembly Active.Modules.License, Version 1.1.0.0

[assembly:AssemblyDescription(null)]
[assembly:AssemblyCompany("Active Modules, Inc.")]
[assembly:RuntimeCompatibility(WrapNonExceptionThro ws=true)]
[assembly:AssemblyFileVersion("1.1.0.0")]
[assembly:AssemblyProduct("Active.Modules.License")]
[assembly:Debuggable(DebuggableAttribute.DebuggingM odes.DisableOptimizations | (DebuggableAttribute.DebuggingModes.EnableEditAndC ontinue | (DebuggableAttribute.DebuggingModes.IgnoreSymbolSt oreSequencePoints | DebuggableAttribute.DebuggingModes.Default)))]
[assembly:CompilationRelaxations(8)]
[assembly:AssemblyTitle("Active.Modules.License")]
[assembly:Guid("9eac2e81-f0b9-4c96-8b6b-8351bda5183e")]
[assembly:ComVisible(false)]
[assembly:AssemblyTrademark(null)]
[assembly:AssemblyCopyright("Copyright \u2a60 2007\0")]



درحالیکه من یک پروژه وب جدید باز می کنم، فایل های vb. را درون پوشه app_code کپی می کنم و وب سایت را Publish می کنم. با انجام این کار فایل dll تولید میشه اما Manifest اون رو نمی دونم از کجا باید تعریف کنم.

یعنی اسمبلی فایل dll ای که توسط پروژه وب من ایجاد میشه بصورت زیر میشه:

// Assembly App_Code, Version 0.0.0.0

[assembly:CompilationRelaxations(8)]
[assembly:GeneratedCode("ASP.NET", "2.0.50727.1433")]
[assembly:RuntimeCompatibility(WrapNonExceptionThro ws=true)]



لطفا اگر کسی می دونه منو راهنمایی کنه

padidar
جمعه 28 تیر 1387, 21:15 عصر
دوستان من موفق شدم شخصا مشکل رو حل کنم، راه حل رو می نویسم که اگر کسی با این مشکل برخورد به دردسر نیفته

برای تعریف مشخصات مختلف اسمبلی کافی کد زیر را در یک کلاس وارد نمایید:


Imports System.Reflection
Imports System.Runtime.InteropServices
Imports System.Runtime.CompilerServices



<Assembly: AssemblyVersion("1.1.0.0")>
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("xxxx Modules, Inc.")>
<Assembly: RuntimeCompatibility(WrapNonExceptionThrows:=True)>
<Assembly: AssemblyFileVersion("1.1.0.0")>
<Assembly: AssemblyProduct("xxxxx.Modules.License")>
<Assembly: CompilationRelaxations(8)>
<Assembly: AssemblyTitle("xxxxx.Modules.License")>
<Assembly: Guid("9eac2e81-f0b9-4c96-8b6b-8351bda5183e")>
<Assembly: ComVisible(False)>
<Assembly: AssemblyTrademark("")>
<Assembly: AssemblyCopyright("Copyright " & ChrW(169) & " 2007")>


و برای اینکه نام فایل را همانطوری که دلخواه شماست تعریف نمایید باید از طریق command prompt ویژوآل استودیو سورس را تبدیل به dll کنیم.