Title: Question: Has the way Python imports a .NET6 library changed? · Issue #1951 · pythonnet/pythonnet · GitHub
Open Graph Title: Question: Has the way Python imports a .NET6 library changed? · Issue #1951 · pythonnet/pythonnet
X Title: Question: Has the way Python imports a .NET6 library changed? · Issue #1951 · pythonnet/pythonnet
Description: To import a .NET6 library, my understanding is that the steps in Python.Net 3.0 are: from clr_loader import get_coreclr from pythonnet import set_runtime runtime = get_coreclr('MyApplication.runtimeconfig.json') set_runtime(runtime) Howe...
Open Graph Description: To import a .NET6 library, my understanding is that the steps in Python.Net 3.0 are: from clr_loader import get_coreclr from pythonnet import set_runtime runtime = get_coreclr('MyApplication.runtim...
X Description: To import a .NET6 library, my understanding is that the steps in Python.Net 3.0 are: from clr_loader import get_coreclr from pythonnet import set_runtime runtime = get_coreclr('MyApplication.ru...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/1951
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Question: Has the way Python imports a .NET6 library changed?","articleBody":"To import a .NET6 library, my understanding is that the steps in Python.Net 3.0 are:\r\n\r\n```python\r\nfrom clr_loader import get_coreclr\r\nfrom pythonnet import set_runtime\r\n\r\nruntime = get_coreclr('MyApplication.runtimeconfig.json')\r\nset_runtime(runtime)\r\n```\r\n\r\nHowever, with clr-loader 0.2.3 (released 5 days ago), the call to get_coreclr with one argument fails with exception:\r\n`TypeError: get_coreclr() takes 0 positional arguments but 1 was given`\r\n\r\nI've raised this issue in clr-loader: https://github.com/pythonnet/clr-loader/issues/35\r\n\r\nHowever, I was wondering if the change to the get_coreclr() API might be intentional, meaning that the recommended steps to import a .NET6 library has changed. Can anyone please confirm?","author":{"url":"https://github.com/DareDevilDenis","@type":"Person","name":"DareDevilDenis"},"datePublished":"2022-09-22T15:04:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1951/pythonnet/issues/1951"}
| 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:0a5aaa70-84a4-4504-7cbc-d1ce53894b47 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0AE:EC9DB:193C6E5:215A3FD:69719AF6 |
| html-safe-nonce | 13a418a36791ff8f648a5cabe3db3d63cf8be3308a63d644c2f6ea81cd61c75b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEFFOkVDOURCOjE5M0M2RTU6MjE1QTNGRDo2OTcxOUFGNiIsInZpc2l0b3JfaWQiOiIxMzg3OTkxNzEwODAwMzg2ODA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3c0a66798a0519527f6daa56a97cd315904d944443d9bbb2b756670c85aaa132 |
| hovercard-subject-tag | issue:1382605161 |
| 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/1951/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a8ac01012452a82a4d1086dd08fb1c94b438a07963feb6a5fecbd1148775641/pythonnet/pythonnet/issues/1951 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a8ac01012452a82a4d1086dd08fb1c94b438a07963feb6a5fecbd1148775641/pythonnet/pythonnet/issues/1951 |
| og:image:alt | To import a .NET6 library, my understanding is that the steps in Python.Net 3.0 are: from clr_loader import get_coreclr from pythonnet import set_runtime runtime = get_coreclr('MyApplication.runtim... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DareDevilDenis |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdfdce9cd4f6ab85dca2b0d11264270829297c962dd5a79df449062d7822258f |
| 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 | 51c736e60b302bd039c9d5164573d176ceb24bb2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width