René's URL Explorer Experiment


Title: "using assembly" can't find assembly in scriptdir on non-Windows because of bug in Parser.cs line:5136 · Issue #21161 · PowerShell/PowerShell · GitHub

Open Graph Title: "using assembly" can't find assembly in scriptdir on non-Windows because of bug in Parser.cs line:5136 · Issue #21161 · PowerShell/PowerShell

X Title: "using assembly" can't find assembly in scriptdir on non-Windows because of bug in Parser.cs line:5136 · Issue #21161 · PowerShell/PowerShell

Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...

Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...

X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"using assembly\" can't find assembly in scriptdir on non-Windows because of bug in Parser.cs line:5136","articleBody":"### Prerequisites\r\n\r\n- [X] Write a descriptive title.\r\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- [X] Search the existing issues.\r\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\r\n\r\n### Steps to reproduce\r\n\r\ncreate an assembly and run a script with the following content:\r\n```powershell\r\nusing assembly mydll.dll\r\n[mydll.mytype]\r\n```\r\n\r\n\r\n### Expected behavior\r\n\r\n```console\r\nno errors\r\n```\r\n\r\n\r\n### Actual behavior\r\n\r\n```console\r\nParserError: /Users/james/bin/testit.ps1:1\r\nLine |\r\n   1 |  using assembly mydll.dll\r\n     |                 ~~~~~~~~~~~~~~~~~~\r\n     | Cannot load assembly 'mydll.dll'.\r\n```\r\n\r\n\r\n### Error details\r\n\r\nline 5136: \r\n\r\n`assemblyFileName = workingDirectory + @\"\\\" + assemblyFileName`\r\n\r\non a Unix System, `\\` is not a directory separator but a valid filename character.\r\n\r\nThe fix is:\r\n\r\n`assemblyFileName = Path.Combine(workingDirectory, assemblyFileName);`\r\n\r\n\r\n### Environment data\r\n\r\n```powershell\r\n\u003e $psversiontable\r\n\r\nName                           Value\r\n----                           -----\r\nPSVersion                      7.4.0\r\nPSEdition                      Core\r\nGitCommitId                    7.4.0\r\nOS                             Darwin 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:28:58 PST 2023; root:xnu-10002.81.5~7/RELEASE_X86_64\r\nPlatform                       Unix\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\r\n```\r\n\r\n\r\n### Visuals\r\n\r\n_No response_","author":{"url":"https://github.com/JamesWTruher","@type":"Person","name":"JamesWTruher"},"datePublished":"2024-01-31T00:06:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/21161/PowerShell/issues/21161"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fe3c0433-d599-cbe8-d76a-7783ed035772
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDEFA:A5979:28EEE20:3AC63FC:6A56704B
html-safe-nonce59fe12eefcab0690837d342e0be1e3942755b265b30ce7e31d9ecbb2176fbacc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUZBOkE1OTc5OjI4RUVFMjA6M0FDNjNGQzo2QTU2NzA0QiIsInZpc2l0b3JfaWQiOiI4MzU0MTc3NjQ1NTYzNzY4OTA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbde092d577657b2dc741def5f0277fc4eaa196d79be447a207f6cdcb994621eb
hovercard-subject-tagissue:2109025696
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/21161/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e967e19afd0275a92d5040bf50cb75cbe5eab1093ff71e3ef529a742e567b4ac/PowerShell/PowerShell/issues/21161
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e967e19afd0275a92d5040bf50cb75cbe5eab1093ff71e3ef529a742e567b4ac/PowerShell/PowerShell/issues/21161
og:image:altPrerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJamesWTruher
hostnamegithub.com
expected-hostnamegithub.com
None19b5ee9431dcfce15ab4b001d626e4e3a6ba1acb7be814813a52bbebd9a86ef5
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
releaseafc01ffdb045f4ff81c6122091366ade7b6166b7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/21161#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F21161
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F21161
Sign up https://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/21161
Reloadhttps://github.com/PowerShell/PowerShell/issues/21161
Reloadhttps://github.com/PowerShell/PowerShell/issues/21161
Please reload this pagehttps://github.com/PowerShell/PowerShell/issues/21161
PowerShell https://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Notifications https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Fork 8.4k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Star 54.4k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Code https://github.com/PowerShell/PowerShell
Issues 1.2k https://github.com/PowerShell/PowerShell/issues
Pull requests 287 https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects https://github.com/PowerShell/PowerShell/projects
Security and quality 3 https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
Code https://github.com/PowerShell/PowerShell
Issues https://github.com/PowerShell/PowerShell/issues
Pull requests https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects https://github.com/PowerShell/PowerShell/projects
Security and quality https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
"using assembly" can't find assembly in scriptdir on non-Windows because of bug in Parser.cs line:5136https://github.com/PowerShell/PowerShell/issues/21161#top
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
WG-Languageparser, language semanticshttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Language%22
https://github.com/JamesWTruher
JamesWTruherhttps://github.com/JamesWTruher
on Jan 31, 2024https://github.com/PowerShell/PowerShell/issues/21161#issue-2109025696
latest released versionhttps://github.com/PowerShell/PowerShell/releases
FAQhttps://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md
Differences between Windows PowerShell 5.1 and PowerShellhttps://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
WG-Languageparser, language semanticshttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Language%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.