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/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:66f30981-6849-688f-e000-7db726cbb54d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CAAA:7B6E4:188E48F:210C5C9:69706EB7 |
| html-safe-nonce | 1ba445a281341378304761c126ccd9c2aa5dc43c3b55eb0ee6825fce2a86b498 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUFBOjdCNkU0OjE4OEU0OEY6MjEwQzVDOTo2OTcwNkVCNyIsInZpc2l0b3JfaWQiOiI0NTUzMDQzMzc4NTUwMzY5OTc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 91bcc8408a990346a3a081313b88664ff6ff772ce5c072e2b45d9669c5a592c8 |
| hovercard-subject-tag | pull_request:78454642 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/files |
| 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 | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width