Title: Assembly version redirect story · Issue #453 · scriptcs/scriptcs · GitHub
Open Graph Title: Assembly version redirect story · Issue #453 · scriptcs/scriptcs
X Title: Assembly version redirect story · Issue #453 · scriptcs/scriptcs
Description: It's possible that some scripts/script packs require a specific version of some assemblies (for example Media Services needs version 5.6.0.0 of Microsoft.Data.OData.dll but one of it's NuGet dependencies has 5.2.0.0). When they are both ...
Open Graph Description: It's possible that some scripts/script packs require a specific version of some assemblies (for example Media Services needs version 5.6.0.0 of Microsoft.Data.OData.dll but one of it's NuGet depend...
X Description: It's possible that some scripts/script packs require a specific version of some assemblies (for example Media Services needs version 5.6.0.0 of Microsoft.Data.OData.dll but one of it's NuGe...
Opengraph URL: https://github.com/scriptcs/scriptcs/issues/453
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Assembly version redirect story","articleBody":"It's possible that some scripts/script packs require a specific version of some assemblies (for example [Media Services needs version 5.6.0.0 of Microsoft.Data.OData.dll](http://www.nuget.org/packages/windowsazure.mediaservices) but one of it's NuGet dependencies has 5.2.0.0). When they are both loaded into the AppDomain and a `Require\u003cAzureMediaServices>()` call is performed, the assembly resolution needs to return 5.6.0.0 and not 5.2.0.0.\n\nThe idea would be to use a module that reads a configuration file and dynamically performs the assembly resolution:\n\n``` CSharp\nusing System;\nusing System.IO;\nusing System.Reflection;\nusing ScriptCs.Contracts;\n\nnamespace ScriptCs.AssemblyRedirect\n{\n [Module(\"redirect\", Extensions = \"csx\")]\n public class RedirectModule : IModule\n {\n public void Initialize(IModuleConfiguration config)\n {\n AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;\n Console.WriteLine(\"Redirect module initialized\");\n }\n\n Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)\n {\n // read config and resolve\n }\n }\n}\n```\n\nAny other ideas to do this?\n","author":{"url":"https://github.com/dschenkelman","@type":"Person","name":"dschenkelman"},"datePublished":"2013-08-30T19:08:07Z","url":"https://github.com/scriptcs/scriptcs/issues/453"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:38805dca-bd39-235d-e2aa-a333a136a037 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D76:39ED8:5B36:7741:6B004FD9 |
| html-safe-nonce | edb8b0fac63e045f040dadad0dc63fef727f9a254223f7eb23fcb853a43930f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDc2OjM5RUQ4OjVCMzY6Nzc0MTo2QjAwNEZEOSIsInZpc2l0b3JfaWQiOiIxNDE3Njg4NTM2MzQ1MjM1NDE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d860418fbd4c76e8a54a030a5b02869dd6e26e9496df86b278d073032ba02622 |
| hovercard-subject-tag | issue:18804695 |
| 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/scriptcs/scriptcs/453/issue_layout |
| twitter:image | https://opengraph.githubassets.com/56b34db5b322400051f5e66217da10365cf4b48de06eb0278e05fdf851e05447/scriptcs/scriptcs/issues/453 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/56b34db5b322400051f5e66217da10365cf4b48de06eb0278e05fdf851e05447/scriptcs/scriptcs/issues/453 |
| og:image:alt | It's possible that some scripts/script packs require a specific version of some assemblies (for example Media Services needs version 5.6.0.0 of Microsoft.Data.OData.dll but one of it's NuGet depend... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dschenkelman |
| hostname | github.com |
| expected-hostname | github.com |
| None | f420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb |
| turbo-cache-control | no-preview |
| go-import | github.com/scriptcs/scriptcs git https://github.com/scriptcs/scriptcs.git |
| octolytics-dimension-user_id | 3758046 |
| octolytics-dimension-user_login | scriptcs |
| octolytics-dimension-repository_id | 8473240 |
| octolytics-dimension-repository_nwo | scriptcs/scriptcs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8473240 |
| octolytics-dimension-repository_network_root_nwo | scriptcs/scriptcs |
| 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 | 26e00df917aba0f128135dc073ea0c5e33a70d40 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width