Title: Need to have runtime assembly binding strategy for package dlls that mimics nuget's design time behavior · Issue #524 · scriptcs/scriptcs · GitHub
Open Graph Title: Need to have runtime assembly binding strategy for package dlls that mimics nuget's design time behavior · Issue #524 · scriptcs/scriptcs
X Title: Need to have runtime assembly binding strategy for package dlls that mimics nuget's design time behavior · Issue #524 · scriptcs/scriptcs
Description: Hello my friends I just spent hours and hours with @garchibald in nuget hell was we tried to rev the new version of the web api script pack which now depends on the scriptcs.owin script pack. The issue was a conflict loading competing ve...
Open Graph Description: Hello my friends I just spent hours and hours with @garchibald in nuget hell was we tried to rev the new version of the web api script pack which now depends on the scriptcs.owin script pack. The i...
X Description: Hello my friends I just spent hours and hours with @garchibald in nuget hell was we tried to rev the new version of the web api script pack which now depends on the scriptcs.owin script pack. The i...
Mail addresses
notifications@github.com
notifications@github.com
notifications@github.com
notifications@github.com
notifications@github.com
notifications@github.com
notifications@github.com
notifications@github.com
notifications@github.com
notifications@github.com
Opengraph URL: https://github.com/scriptcs/scriptcs/issues/524
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Need to have runtime assembly binding strategy for package dlls that mimics nuget's design time behavior","articleBody":"Hello my friends\n\nI just spent hours and hours with @garchibald in nuget hell was we tried to rev the new version of the web api script pack which now depends on the scriptcs.owin script pack. The issue was a conflict loading competing versions of OWIN dlls\n\nThe issue that we were seeing relates to having 2 versions of the same assembly (Microsoft.Owin.dll) referenced by multiple assemblies.\n\nIn VS nuget resolves this through binding redirects so it will forward all requests for Microsoft.Owin,dll 2.0.0 to 2.0.2. Below is a snippet of what this redirect looks like\n\n``` xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?>\n\u003cconfiguration>\n \u003cstartup> \n \u003csupportedRuntime version=\"v4.0\" sku=\".NETFramework,Version=v4.5\" />\n \u003c/startup>\n \u003cruntime>\n \u003cassemblyBinding xmlns=\"urn:schemas-microsoft-com:asm.v1\">\n \u003cdependentAssembly>\n \u003cassemblyIdentity name=\"Microsoft.Owin\" publicKeyToken=\"31bf3856ad364e35\" culture=\"neutral\" />\n \u003cbindingRedirect oldVersion=\"0.0.0.0-2.0.2.0\" newVersion=\"2.0.2.0\" />\n \u003c/dependentAssembly>\n \u003c/assemblyBinding>\n \u003c/runtime>\n\u003c/configuration>\n```\n\nIn scriptcs however we don't have directs, so there is a load failure when the assembly is loaded which references the earlier version of the Owin dll.\n\nProposal: We need to add runtime assembly redirect behavior. First we need to get the last version of each dll and then at runtime using assembly resolve event we ensure that requests for earlier versions of that assembly are redirected to the latest version.\n\nIt looks like we can use this API to get the version without actually having to load via reflection.\n\n``` csharp\nFileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo(@\"C:\\MyAssembly.dll\");\n```\n","author":{"url":"https://github.com/glennblock","@type":"Person","name":"glennblock"},"datePublished":"2013-11-26T02:41:48Z","url":"https://github.com/scriptcs/scriptcs/issues/524"}
| 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:53d0d6d7-4dc6-6f91-3662-fffabe937466 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A364:142FA7:BD1E95:FD2D80:6B004D3E |
| html-safe-nonce | 575e5acff659b0766ffd705fced950c5e4da9f91855557547a4edfd9ef4a9ebf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzY0OjE0MkZBNzpCRDFFOTU6RkQyRDgwOjZCMDA0RDNFIiwidmlzaXRvcl9pZCI6IjgyMTUyMjk3NDU1Mzc3NjQ2NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2cd6ff059aef33a8579398d4b93c29e35e6b270aebc6f471fc9e745c694bb02d |
| hovercard-subject-tag | issue:23290452 |
| 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/524/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d57f8f6e4247df5b9744770eeb718c81fbd7f8c5f8cbefc35f2a2de7f7c87939/scriptcs/scriptcs/issues/524 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d57f8f6e4247df5b9744770eeb718c81fbd7f8c5f8cbefc35f2a2de7f7c87939/scriptcs/scriptcs/issues/524 |
| og:image:alt | Hello my friends I just spent hours and hours with @garchibald in nuget hell was we tried to rev the new version of the web api script pack which now depends on the scriptcs.owin script pack. The i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | glennblock |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| 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 | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width