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:42fa024b-4cd7-7ccf-838c-ab00dc384d37 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF7C:2FF188:22B4132:2E7833C:6972D253 |
| html-safe-nonce | 4a8a7d42007477dd4109ccbd56bc9caaa90b433c48cf779e22ba43461eef74ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjdDOjJGRjE4ODoyMkI0MTMyOjJFNzgzM0M6Njk3MkQyNTMiLCJ2aXNpdG9yX2lkIjoiODE3Njg1NTY0Mjk0NjA2NDk3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 19685370404e9add97bb422afe226034a9e0bc203b1c9ab7a89481bcc4652e61 |
| 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 | 0b28c359b13f980b4fbede8da4d68e72b8e69a4837e7a70f5b5bd33f08875133 |
| 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 | e59d75213c810b4a9ea72ce3aa89d45f5b2feb48 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width