Title: Specified the Module origin · Issue #2602 · pythonnet/pythonnet · GitHub
Open Graph Title: Specified the Module origin · Issue #2602 · pythonnet/pythonnet
X Title: Specified the Module origin · Issue #2602 · pythonnet/pythonnet
Description: I have to import two assemblies with the same Namespace, the difference is the version and methods inside each one. sys.path.append("dll_path_1") clr.AddReference("test1.dll") #-> It has the namespace as MAINCLASS sys.path.append("dll_pa...
Open Graph Description: I have to import two assemblies with the same Namespace, the difference is the version and methods inside each one. sys.path.append("dll_path_1") clr.AddReference("test1.dll") #-> It has the namesp...
X Description: I have to import two assemblies with the same Namespace, the difference is the version and methods inside each one. sys.path.append("dll_path_1") clr.AddReference("test1.dll") #...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/2602
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Specified the Module origin","articleBody":"I have to import two assemblies with the same Namespace, the difference is the version and methods inside each one.\n\n```python\nsys.path.append(\"dll_path_1\")\nclr.AddReference(\"test1.dll\") #-\u003e It has the namespace as MAINCLASS\n\nsys.path.append(\"dll_path_2\")\nclr.AddReference(\"test2.dll\") #-\u003e It has the namespace as MAINCLASS\n```\n\nI am not able to specified from which reference I want to call, it always calls the method from the first reference added.\n\n```python\nfrom MAINCLASS import ( # It always calls from the test1.dll\n...\n)\n```\n\nIs it possible to add a reference with alias or import the Namespace with alias?\nIs there any other solution for it?","author":{"url":"https://github.com/99rsuzuki","@type":"Person","name":"99rsuzuki"},"datePublished":"2025-07-11T05:46:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2602/pythonnet/issues/2602"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:49c2623e-80d3-2d75-2ecf-7536ae1b96c2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3D0:BB87C:1D9ECFE:2908656:6972845C |
| html-safe-nonce | bee9c440e2f2b60b9bd6b16cfdcb7799ce9184647aad24383fc245aa22f84e56 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0QwOkJCODdDOjFEOUVDRkU6MjkwODY1Njo2OTcyODQ1QyIsInZpc2l0b3JfaWQiOiI2Mzc2ODQzNDU2MzA2OTA2MjA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 546ad3b75551b469feb096e2d0bde0c44438e1c1d42f42a62a32daead8a0817e |
| hovercard-subject-tag | issue:3221626852 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pythonnet/pythonnet/2602/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a790d1433b8a14b4f4aa675eb547adf765e8bea2988313aaa42ed9dbb5422a5/pythonnet/pythonnet/issues/2602 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a790d1433b8a14b4f4aa675eb547adf765e8bea2988313aaa42ed9dbb5422a5/pythonnet/pythonnet/issues/2602 |
| og:image:alt | I have to import two assemblies with the same Namespace, the difference is the version and methods inside each one. sys.path.append("dll_path_1") clr.AddReference("test1.dll") #-> It has the namesp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 99rsuzuki |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7631aa5e32c11c73e45f19f2aaeaa7e0305d2ec80414866e8b020f3c2144ccae |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 40f44656d2185a364dd710032a2e10ee2f1d7e20 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width