René's URL Explorer Experiment


Title: Make location native binary configurable · Issue #515 · libgit2/libgit2sharp · GitHub

Open Graph Title: Make location native binary configurable · Issue #515 · libgit2/libgit2sharp

X Title: Make location native binary configurable · Issue #515 · libgit2/libgit2sharp

Description: When using libgit2sharp from within LinqPad via NuGet, loading the native binary does not work as intended. The executing assembly usually lies somewhere "AppData\Local\Temp\LINQPad\whatever" while all referenced libraries lie elsewhere....

Open Graph Description: When using libgit2sharp from within LinqPad via NuGet, loading the native binary does not work as intended. The executing assembly usually lies somewhere "AppData\Local\Temp\LINQPad\whatever" while...

X Description: When using libgit2sharp from within LinqPad via NuGet, loading the native binary does not work as intended. The executing assembly usually lies somewhere "AppData\Local\Temp\LINQPad\whatever&q...

Opengraph URL: https://github.com/libgit2/libgit2sharp/issues/515

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make location native binary configurable","articleBody":"When using libgit2sharp from within LinqPad via NuGet, loading the native binary does not work as intended. The executing assembly usually lies somewhere \"AppData\\Local\\Temp\\LINQPad\\whatever\" while all referenced libraries lie elsewhere. CodeBase seems unset for the executing assembly. Thus the type initializer of NativeMethods fails put the correct location into the path:\n\n``` csharp\n        static NativeMethods()\n        {\n            if (!IsRunningOnLinux())\n            {\n                string originalAssemblypath = new Uri(Assembly.GetExecutingAssembly().EscapedCodeBase).LocalPath;\n\n                string currentArchSubPath = \"NativeBinaries/\" + ProcessorArchitecture;\n\n                string path = Path.Combine(Path.GetDirectoryName(originalAssemblypath), currentArchSubPath);\n\n                const string pathEnvVariable = \"PATH\";\n                Environment.SetEnvironmentVariable(pathEnvVariable,\n                                                   String.Format(CultureInfo.InvariantCulture, \"{0}{1}{2}\", path, Path.PathSeparator, Environment.GetEnvironmentVariable(pathEnvVariable)));\n            }\n\n            // See LibraryLifetimeObject description.\n            lifetimeObject = new LibraryLifetimeObject();\n        }\n```\n\nA workaround is to add the correct path with EnvironMent.SetEnvironmentVariable at application start/composition root which seems a bit odd as it may break when updateing via nuget once again (see: http://stackoverflow.com/a/18867945/303290 ).\n","author":{"url":"https://github.com/embix","@type":"Person","name":"embix"},"datePublished":"2013-09-18T09:22:05Z","url":"https://github.com/libgit2/libgit2sharp/issues/515"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4e93ebff-86b7-db09-6c7f-3fd527b6aa8e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC490:2EC689:2C0C947:3C1F437:6B005978
html-safe-nonce00213274f03fd54fcb41c1d8f6e9bfaf676bf6b3d3bf0c2c7cbc48c44307b571
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDkwOjJFQzY4OToyQzBDOTQ3OjNDMUY0Mzc6NkIwMDU5NzgiLCJ2aXNpdG9yX2lkIjoiODgwODQxMzY2NTk3MjczODQyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb16dc39846a4fc9716fed9477077d5093253e5b162552885946b48828f014537
hovercard-subject-tagissue:19669941
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/libgit2/libgit2sharp/515/issue_layout
twitter:imagehttps://opengraph.githubassets.com/956d2c096f15b970e159933ae839827b841939841cc9b766a73bac87f9797469/libgit2/libgit2sharp/issues/515
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/956d2c096f15b970e159933ae839827b841939841cc9b766a73bac87f9797469/libgit2/libgit2sharp/issues/515
og:image:altWhen using libgit2sharp from within LinqPad via NuGet, loading the native binary does not work as intended. The executing assembly usually lies somewhere "AppData\Local\Temp\LINQPad\whatever" while...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameembix
hostnamegithub.com
expected-hostnamegithub.com
None29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73
turbo-cache-controlno-preview
go-importgithub.com/libgit2/libgit2sharp git https://github.com/libgit2/libgit2sharp.git
octolytics-dimension-user_id394745
octolytics-dimension-user_loginlibgit2
octolytics-dimension-repository_id1415168
octolytics-dimension-repository_nwolibgit2/libgit2sharp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1415168
octolytics-dimension-repository_network_root_nwolibgit2/libgit2sharp
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseeacd927ba6112e3b01ba99c762bd699a4a4f5df7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/libgit2/libgit2sharp/issues/515#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flibgit2%2Flibgit2sharp%2Fissues%2F515
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flibgit2%2Flibgit2sharp%2Fissues%2F515
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=libgit2%2Flibgit2sharp
Reloadhttps://github.com/libgit2/libgit2sharp/issues/515
Reloadhttps://github.com/libgit2/libgit2sharp/issues/515
Reloadhttps://github.com/libgit2/libgit2sharp/issues/515
libgit2https://github.com/libgit2
libgit2sharphttps://github.com/libgit2/libgit2sharp
Codehttps://github.com/libgit2/libgit2sharp
Issues406 (406)https://github.com/libgit2/libgit2sharp/issues
Pull requests54 (54)https://github.com/libgit2/libgit2sharp/pulls
Actionshttps://github.com/libgit2/libgit2sharp/actions
Projectshttps://github.com/libgit2/libgit2sharp/projects
Wikihttps://github.com/libgit2/libgit2sharp/wiki
Security and qualityhttps://github.com/libgit2/libgit2sharp/security
Insightshttps://github.com/libgit2/libgit2sharp/insights
https://github.com/libgit2/libgit2sharp
New issuehttps://github.com/login?return_to=https://github.com/libgit2/libgit2sharp/issues/515
New issuehttps://github.com/login?return_to=https://github.com/libgit2/libgit2sharp/issues/515
Make location native binary configurablehttps://github.com/libgit2/libgit2sharp/issues/515#top
Bughttps://github.com/libgit2/libgit2sharp/issues?q=state%3Aopen%20label%3A%22Bug%22
v0.14.1https://github.com/libgit2/libgit2sharp/milestone/14
https://github.com/embix
embixhttps://github.com/embix
on Sep 18, 2013https://github.com/libgit2/libgit2sharp/issues/515#issue-19669941
http://stackoverflow.com/a/18867945/303290http://stackoverflow.com/a/18867945/303290
https://github.com/nulltoken
nulltokenhttps://github.com/nulltoken
on Sep 18, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24652938
@paulcbettshttps://github.com/paulcbetts
documentationhttp://msdn.microsoft.com/en-us/library/system.reflection.assembly.location.aspx
posthttp://blogs.msdn.com/b/suzcook/archive/2003/06/26/assembly-codebase-vs-assembly-location.aspx
#153https://github.com/libgit2/libgit2sharp/issues/153
@chrisparninhttps://github.com/chrisparnin
@embixhttps://github.com/embix
@phkelleyhttps://github.com/phkelley
@jamillhttps://github.com/jamill
https://github.com/embix
embixhttps://github.com/embix
on Sep 18, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24657734
https://github.com/nulltoken
nulltokenhttps://github.com/nulltoken
on Sep 18, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24673041
@embixhttps://github.com/embix
https://github.com/embix
embixhttps://github.com/embix
on Sep 18, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24682997
https://github.com/Aimeast
Aimeasthttps://github.com/Aimeast
on Sep 19, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24714535
PreLoadSQLiteDllhttp://system.data.sqlite.org/index.html/artifact/7ae597bb22ebfe617957de0eba58809f02094ca6
https://github.com/nulltoken
nulltokenhttps://github.com/nulltoken
on Sep 19, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24718908
install.ps1https://github.com/libgit2/libgit2sharp/tree/vNext/nuget.package/Tools
#425https://github.com/libgit2/libgit2sharp/pull/425
tweethttps://twitter.com/libgit2sharp/status/380565006418710528
https://github.com/nulltoken
nulltokenhttps://github.com/nulltoken
on Sep 19, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24718919
@Aimeasthttps://github.com/Aimeast
https://github.com/Aimeast
Aimeasthttps://github.com/Aimeast
on Sep 19, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24719990
@nulltokenhttps://github.com/nulltoken
Using Native Library Pre-Loadinghttp://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki
https://github.com/nulltoken
nulltokenhttps://github.com/nulltoken
on Sep 19, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24725249
@Aimeasthttps://github.com/Aimeast
Using Native Library Pre-Loadinghttp://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki
https://github.com/Aimeast
Aimeasthttps://github.com/Aimeast
on Sep 19, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24727867
https://github.com/nulltoken
nulltokenhttps://github.com/nulltoken
on Sep 19, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24746949
https://github.com/nulltoken
nulltokenhttps://github.com/nulltoken
on Sep 19, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24750254
@embixhttps://github.com/embix
@fearthecowboyhttps://github.com/fearthecowboy
@dotnetjunkyhttps://github.com/dotnetjunky
@haackedhttps://github.com/haacked
https://github.com/embix
embixhttps://github.com/embix
on Sep 19, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24771898
https://github.com/albahari
albaharihttps://github.com/albahari
on Sep 20, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24784888
https://github.com/Aimeast
Aimeasthttps://github.com/Aimeast
on Sep 20, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24801416
https://github.com/nulltoken
nulltokenhttps://github.com/nulltoken
on Sep 21, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24861883
@albaharihttps://github.com/albahari
#518https://github.com/libgit2/libgit2sharp/pull/518
@embixhttps://github.com/embix
https://db.tt/6vE8TDc8https://db.tt/6vE8TDc8
#518https://github.com/libgit2/libgit2sharp/pull/518
@ethomsonhttps://github.com/ethomson
https://github.com/embix
embixhttps://github.com/embix
on Sep 21, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24862831
nulltokenhttps://github.com/nulltoken
on Sep 21, 2013https://github.com/libgit2/libgit2sharp/issues/515#event-66561473
Make probing work from within the packages folderhttps://github.com/libgit2/libgit2sharp/commit/d54f395e076d3f81a720b356d9869d9d93298345
https://docs.github.com/articles/closing-issues-via-commit-messages
d54f395https://github.com/libgit2/libgit2sharp/commit/d54f395e076d3f81a720b356d9869d9d93298345
nulltokenhttps://github.com/nulltoken
completedhttps://github.com/libgit2/libgit2sharp/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
d54f395https://github.com/libgit2/libgit2sharp/commit/d54f395e076d3f81a720b356d9869d9d93298345
on Sep 21, 2013https://github.com/libgit2/libgit2sharp/issues/515#event-66561595
https://github.com/nulltoken
nulltokenhttps://github.com/nulltoken
on Sep 21, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-24863766
@embixhttps://github.com/embix
@albaharihttps://github.com/albahari
https://github.com/nulltoken
nulltokenhttps://github.com/nulltoken
on Sep 25, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-25130927
@embixhttps://github.com/embix
https://github.com/embix
embixhttps://github.com/embix
on Sep 26, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-25145951
https://github.com/nulltoken
nulltokenhttps://github.com/nulltoken
on Sep 26, 2013https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-25148212
https://github.com/JakeGinnivan
JakeGinnivanhttps://github.com/JakeGinnivan
on Jan 5, 2014https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-31602539
https://github.com/nulltoken
nulltokenhttps://github.com/nulltoken
on Jan 5, 2014https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-31603430
@JakeGinnivanhttps://github.com/JakeGinnivan
https://github.com/JakeGinnivan
JakeGinnivanhttps://github.com/JakeGinnivan
on Jan 5, 2014https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-31603464
https://github.com/nulltoken
nulltokenhttps://github.com/nulltoken
on Jan 5, 2014https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-31603730
@JakeGinnivanhttps://github.com/JakeGinnivan
nuspechttps://github.com/libgit2/libgit2sharp/blob/v0.15.0/nuget.package/LibGit2Sharp.nuspec
elementhttps://github.com/NuGet/NuGetDocs/blob/master/site/Docs/Reference/Nuspec-Reference.markdown#specifying-explicit-assembly-references
https://github.com/kenny-evitt
kenny-evitthttps://github.com/kenny-evitt
on Oct 5, 2016https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-251797682
an answerhttp://stackoverflow.com/a/39883504/173497
https://github.com/albahari
albaharihttps://github.com/albahari
on Oct 9, 2016https://github.com/libgit2/libgit2sharp/issues/515#issuecomment-252470225
http://stackoverflow.com/a/39940985/46223http://stackoverflow.com/a/39940985/46223
Sign up for freehttps://github.com/signup?return_to=https://github.com/libgit2/libgit2sharp/issues/515
Sign in to commenthttps://github.com/login?return_to=https://github.com/libgit2/libgit2sharp/issues/515
Bughttps://github.com/libgit2/libgit2sharp/issues?q=state%3Aopen%20label%3A%22Bug%22
v0.14.1https://github.com/libgit2/libgit2sharp/milestone/14
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.