About shared assembly.
-
1.I can add an assembly to cache, but I cannot find it in dialog when you click "Add reference", how can I let my assembly to the dialog's .net assembly list? 2.I built two version assembly(v1.0.0.0 and v1.0.0.1) that included the same sn, also added them to cache, now I want to refer the certain version of them in my application, how can I do? I have tried "Add reference", but I cannot find it because the problem 1, then, I used "Browse" to select a certain version dll(ie: v1.0.0.0) file because of using the namespace of the shared assembly, then I wrote a config file of application: bindingRedirect oldVersion="1.0.0.0" newVersion="1.0.0.1" But when I run the program, the application still link to v1.0.0.0. Any thoughts? Thank you! I'm amumu, and you?
-
1.I can add an assembly to cache, but I cannot find it in dialog when you click "Add reference", how can I let my assembly to the dialog's .net assembly list? 2.I built two version assembly(v1.0.0.0 and v1.0.0.1) that included the same sn, also added them to cache, now I want to refer the certain version of them in my application, how can I do? I have tried "Add reference", but I cannot find it because the problem 1, then, I used "Browse" to select a certain version dll(ie: v1.0.0.0) file because of using the namespace of the shared assembly, then I wrote a config file of application: bindingRedirect oldVersion="1.0.0.0" newVersion="1.0.0.1" But when I run the program, the application still link to v1.0.0.0. Any thoughts? Thank you! I'm amumu, and you?
Feng Qin wrote: 1.I can add an assembly to cache, but I cannot find it in dialog when you click "Add reference", how can I let my assembly to the dialog's .net assembly list? In the registry you will find a key where it lists all the directories it will search for. On my computer this is located at
HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework\AssemblyFolders
. Just follow the pattern there and you'll be able to add your install folder to the list so that your assembly is listed in the "Add Reference" dialog. If you don't want to modify the registry you can put the assembly in the %WINDIR%\Microsoft.NET\Framework\v1.0.3750\ directory and you should see it in the "Add Reference..." dialog. This is one of the directories that is specified in the registry in the above location. James "Java is free - and worth every penny." - Christian Graus -
Feng Qin wrote: 1.I can add an assembly to cache, but I cannot find it in dialog when you click "Add reference", how can I let my assembly to the dialog's .net assembly list? In the registry you will find a key where it lists all the directories it will search for. On my computer this is located at
HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework\AssemblyFolders
. Just follow the pattern there and you'll be able to add your install folder to the list so that your assembly is listed in the "Add Reference" dialog. If you don't want to modify the registry you can put the assembly in the %WINDIR%\Microsoft.NET\Framework\v1.0.3750\ directory and you should see it in the "Add Reference..." dialog. This is one of the directories that is specified in the registry in the above location. James "Java is free - and worth every penny." - Christian Graus -
I've never used the binding redirect before so I can't really comment on how to get it working properly. James "Java is free - and worth every penny." - Christian Graus