Title: Added configurable Python.Runtime.dll loader. by dmitriyse · Pull Request #244 · pythonnet/pythonnet · GitHub
Open Graph Title: Added configurable Python.Runtime.dll loader. by dmitriyse · Pull Request #244 · pythonnet/pythonnet
X Title: Added configurable Python.Runtime.dll loader. by dmitriyse · Pull Request #244 · pythonnet/pythonnet
Description: Added project that builds Python.Config.dll with different Python.Runtime.dll version stored in resources.
If you put bootstrap code:
static Program()
{
Console.WriteLine("Starting application...");
// Required to be placed in the static constructor for Mono.
PythonConfig.EnsureInitialized();
}
[STAThread]
private static int Main(string[] args)
{
// Mono workaround required to fix AssemblyResolve + EntryPoint class bug.
// Classes that was referenced from EntryPoint class cannot use assemblies resolved through "AssemblyResolve"
Action monoWorkaround = () =>
{
try
{
// You should put this initialized only if some component starting to use it before first application configuration file read attempt.
// So in rare cases.
PythonEngine.Initialize();
to your project and switch off "copy local" property on Python.Runtime.dll assembly, then different version of Python.Runtime.dll will be loaded.
You also should put version into configuration file:
Open Graph Description: Added project that builds Python.Config.dll with different Python.Runtime.dll version stored in resources. If you put bootstrap code: static Program() { Console.WriteLin...
X Description: Added project that builds Python.Config.dll with different Python.Runtime.dll version stored in resources. If you put bootstrap code: static Program() { Console.WriteLin...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/244
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:7e069eb8-67e2-e2b3-ef1b-fd6975b555cb |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 8720:3BF22F:27F27D6:382D18D:6970FE87 |
| html-safe-nonce | 3be02f503bf355e0a1456828f1085287661437065db7c61e47778d48af713963 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzIwOjNCRjIyRjoyN0YyN0Q2OjM4MkQxOEQ6Njk3MEZFODciLCJ2aXNpdG9yX2lkIjoiNTcyNzM1MzA2NDM3NzA4OTY3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cba412e44156f4a55b345f8bb9ad4677543c201f92d9b976ae6a093989a5451c |
| hovercard-subject-tag | pull_request:78454642 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/pythonnet/pythonnet/pull/244/checks |
| twitter:image | https://avatars.githubusercontent.com/u/10322215?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10322215?s=400&v=4 |
| og:image:alt | Added project that builds Python.Config.dll with different Python.Runtime.dll version stored in resources. If you put bootstrap code: static Program() { Console.WriteLin... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2d17fd2bbd784dc91f3a78a2f1d2c41d9f4f8ce86136d09833e3cf21b2bde1b7 |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e053d923fb27a9d948f8cefae8ba3bf43f7b938f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width