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: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:5b9d6e9f-bfcc-1f07-d3e1-122d94c06954 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 9E06:A458E:A79ED4:EBF200:6970B80D |
| html-safe-nonce | 9d393ad74371c7a4fc227226838df421778060e31520e1f22d9ded6456b04b4e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTA2OkE0NThFOkE3OUVENDpFQkYyMDA6Njk3MEI4MEQiLCJ2aXNpdG9yX2lkIjoiMTQ2NDMzNjk1NzgwNDk1MTU2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | af1be618d761e09afe10387e93175e0982816eacda4d3c4a4445c776ab8837e4 |
| 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 | 8e0be80373b724b033cdf8a7b1f78bf5fb6a5d7a2182a9a403aa30894606e390 |
| 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 | 84d9d5bf3b01412ea10f7c2429cbfc735ccce9ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width