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: Github.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:9d8f205c-be2f-a5cd-76e1-3cda477fe940 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C92:398343:5CB0F8:80D6E8:6A639F1F |
| html-safe-nonce | a68a9e25210305faec4281876267b0afba14af427d4e9187cafe9d1622e903f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzkyOjM5ODM0Mzo1Q0IwRjg6ODBENkU4OjZBNjM5RjFGIiwidmlzaXRvcl9pZCI6IjU5MzU5MTQzNjEyOTkzNzc5NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ad01bfa9803eb875ca9205aca11cb73f38f46466fa32a2e8363375537d772071 |
| 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 | 4ca676e17c4da4532dc68541e9fc874034ae840c26b5f34da7f1c42d9a600659 |
| 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 | 3a0a9f049e072eb8e5795dfddcefdba9e277501d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width