PDA

View Full Version : استفاده از dll در system32



com_engineer_ab
سه شنبه 17 فروردین 1389, 12:58 عصر
سلام
من دارم یه پروژه می نویسم که از فایل های dll زیادی استفاده می کنه و نمی خوام کسی به این فایل های dll دسترسی داشته باشه برا همین به ذهنم رسید که این فایل ها رو در زمان نصب برنامه توی system 32 ویندوز بریزم و ازشون استفاده کنم حالا مشکل اینجاست که نه می تونم اونا رو هنگام نصب توی system 32 بریزم نه می دونم چطور از system 32 بخونم
راهنمایی کنید لطفا.

r00tkit
سه شنبه 17 فروردین 1389, 13:18 عصر
سلام

در app.config می تونی تنظیم کنی dll ها از کجا خونده بشه یا dll resolve




probing element Look in the application base directory's AuxFiles and bin\subdir
subdirectories when trying to find a weakly named assembly. For strongly named
assemblies, the CLR looks in the GAC or in the URL specified by the codeBase element.
The CLR looks in the application's private paths for a strongly named assembly only if
no codeBase element is specified.



<probing> Element
Specifies application base subdirectories for the common language runtime to search when loading assemblies.

<configuration> Element (http://barnamenevis.org/forum/2ec1c9dc-2e5c-4ef0-9958-81670ab88449.htm)

مثال



<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;bin2\subbin;bin3"/>
</assemblyBinding>
</runtime>
</configuration>