René's URL Explorer Experiment


Title: Loading nuget with referenced modules - Weird behavior · Issue #9846 · PowerShell/PowerShell · GitHub

Open Graph Title: Loading nuget with referenced modules - Weird behavior · Issue #9846 · PowerShell/PowerShell

X Title: Loading nuget with referenced modules - Weird behavior · Issue #9846 · PowerShell/PowerShell

Description: Environment: Win 10, ps 5.1 and Powershell Core I'm adding DB2 database driver to my PS script. That driver is a .net core wrapper for non C# client. Nuget name is IBM.Data.DB2.Core. Dotnet driver is located in lib\netstandard2.0 folder ...

Open Graph Description: Environment: Win 10, ps 5.1 and Powershell Core I'm adding DB2 database driver to my PS script. That driver is a .net core wrapper for non C# client. Nuget name is IBM.Data.DB2.Core. Dotnet driver ...

X Description: Environment: Win 10, ps 5.1 and Powershell Core I'm adding DB2 database driver to my PS script. That driver is a .net core wrapper for non C# client. Nuget name is IBM.Data.DB2.Core. Dotnet dri...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9846

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Loading nuget with referenced modules - Weird behavior ","articleBody":"\r\n# Environment: Win 10, ps 5.1 and Powershell Core\r\n\r\nI'm adding DB2 database driver to my PS script. That driver is a  .net core wrapper for non C# client. Nuget name is IBM.Data.DB2.Core.  Dotnet  driver is located in lib\\netstandard2.0 folder as usually, but actual client is in build\\clidriver folder. If I would build dotnet console app, it would put that clidriver folder in the same directory with IBM.Data.DB2.Core.dll. This approach would work if I run script in powershell 5.1 console. However if I run it in Pwsh Core, or even in ISE, it can't figure out where clidriver folder is (and throw weird error). This can be fixed if I add this dll from the original location (lib/netstandard), somehow it knows nuget folder structure.\r\nWondering if there is a way to push pwsh core to look for clidriver folder in current directory (like PS5 or console app do)? Below is a script you can use for testing. No need to set up database, just see if you get error from DB client (on success) or  some weird unrelated error\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\n\r\n\r\n\u003c# Initial setup  (Windows 10, ps 5.1)\r\n\r\nnuget install IBM.Data.DB2.Core\r\n\r\n# copying dependencies like console app would do\r\n\r\nCopy-Item .\\IBM.Data.DB2.Core.1.3.0.100\\build\\clidriver -Recurse -Destination \".\"\r\nCopy-Item .\\IBM.Data.DB2.Core.1.3.0.100\\lib\\netstandard2.0\\IBM.Data.DB2.Core.dll -Destination \".\"\r\n\r\n#>\r\n\r\n\r\n\r\n\r\n# If you copy clidriver and target dll to your project folder (like console app) it will only work in Powershell 5 console\r\n# It will fail in ISE, powershell core and VSCode\r\n Add-Type -path .\\IBM.Data.DB2.Core.dll # assuming clidriver folder is copied here too.\r\n\r\n \r\n# But it will work everywhere if adding DLL from \\lib\\netstandard\r\n# Somehow it knows nuget structure and uses modules from \\buid\\clidriver\r\n# Add-Type -Path .\\IBM.Data.DB2.Core.1.3.0.100\\lib\\netstandard2.0\\IBM.Data.DB2.Core.dll\r\n\r\n# ------------------------ Test Script ----------------------------------------------------------- #\r\n\r\n$str = \"Database=sysadmin;User ID=informix;Password=in4mix;Server=localhost:9089;\"\r\n$cn  = New-Object IBM.Data.DB2.Core.DB2Connection $str\r\n\r\n\r\n$cn.Open() # On success you should see ERROR [08001] [IBM] SQL1336N (that comes from db client)\r\n           # On error you'll see \"Length cannot be less than zero\" (so it can't refer to clidriver folder)\r\n$cn.Close()\r\n```","author":{"url":"https://github.com/mikeTWC1984","@type":"Person","name":"mikeTWC1984"},"datePublished":"2019-06-06T20:26:57Z","url":"https://github.com/PowerShell/PowerShell/issues/9846"}

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:a9d0df14-7a99-6498-bca7-2646094f896e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8726:2432:80FEE:B3154:6AFD49BF
html-safe-nonce84a85eed79507320cdc83045ac444206990f053f59cd8f27136aa6b58b4c0912
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzI2OjI0MzI6ODBGRUU6QjMxNTQ6NkFGRDQ5QkYiLCJ2aXNpdG9yX2lkIjoiNTQzNjM2NjM4NDM5OTIwNjg0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0c463ebb6fcfed5e798c33fa2d792aaa89a61371fc7400dbee05f060a500caff
hovercard-subject-tagissue:453223220
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/PowerShell/PowerShell/9846/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8ee455203a1252b98758793bcb5283c1328210473e73bf240ccf4933dc223f7d/PowerShell/PowerShell/issues/9846
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8ee455203a1252b98758793bcb5283c1328210473e73bf240ccf4933dc223f7d/PowerShell/PowerShell/issues/9846
og:image:altEnvironment: Win 10, ps 5.1 and Powershell Core I'm adding DB2 database driver to my PS script. That driver is a .net core wrapper for non C# client. Nuget name is IBM.Data.DB2.Core. Dotnet driver ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemikeTWC1984
hostnamegithub.com
expected-hostnamegithub.com
None66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
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
releaseb6f01f7cb9f35f8c09949773241a3d49dd04b340
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/9846#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F9846
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%2FPowerShell%2FPowerShell%2Fissues%2F9846
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=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/9846
Reloadhttps://github.com/PowerShell/PowerShell/issues/9846
Reloadhttps://github.com/PowerShell/PowerShell/issues/9846
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests365 (365)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/9846
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/9846
Loading nuget with referenced modules - Weird behavior https://github.com/PowerShell/PowerShell/issues/9846#top
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get ahttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Question%22
Resolution-AnsweredThe question is answered.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Answered%22
https://github.com/mikeTWC1984
mikeTWC1984https://github.com/mikeTWC1984
on Jun 6, 2019https://github.com/PowerShell/PowerShell/issues/9846#issue-453223220
mikeTWC1984https://github.com/mikeTWC1984
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get ahttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Question%22
on Jun 6, 2019https://github.com/PowerShell/PowerShell/issues/9846#event-2395547479
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Jan 30, 2020https://github.com/PowerShell/PowerShell/issues/9846#issuecomment-580260600
#11032https://github.com/PowerShell/PowerShell/pull/11032
Ilya (iSazonov)https://github.com/iSazonov
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 30, 2020https://github.com/PowerShell/PowerShell/issues/9846#event-2993387868
Ilya (iSazonov)https://github.com/iSazonov
Resolution-AnsweredThe question is answered.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Answered%22
on Jan 30, 2020https://github.com/PowerShell/PowerShell/issues/9846#event-2993388245
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/9846
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/9846
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get ahttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Question%22
Resolution-AnsweredThe question is answered.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Answered%22
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.