Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. About shared assembly.

About shared assembly.

Scheduled Pinned Locked Moved C#
questioncsharphelpdiscussionannouncement
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Feng Qin
    wrote on last edited by
    #1

    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?

    J 1 Reply Last reply
    0
    • F Feng Qin

      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?

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      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

      F 1 Reply Last reply
      0
      • J James T Johnson

        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

        F Offline
        F Offline
        Feng Qin
        wrote on last edited by
        #3

        Thank you, James, but how about 2nd question? I'm amumu, and you?

        J 1 Reply Last reply
        0
        • F Feng Qin

          Thank you, James, but how about 2nd question? I'm amumu, and you?

          J Offline
          J Offline
          James T Johnson
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups