Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Dotnet Run PS File Failed to Run with Run with Powershell Context Menu Item #16811

Open
Jack251970 opened this issue Feb 14, 2025 · 2 comments
Labels
needs - additional info Needs more information from the reporter

Comments

@Jack251970
Copy link
Contributor

Description

Image

When I use system Explorer to run this powershell file with Run with Powershell Context Menu Item, it works well.

But when I use Files to run powershell file with Run with Powershell Context Menu Item, I encounter this issue.

These are the contents of my ps1 file and I just want to run one dotnet run task.

dotnet run --project build/Build.csproj
exit $LASTEXITCODE;

Related file tree is like that:

  • build.ps1
    • build/Build,csproj

Steps To Reproduce

  1. Create one VS project.
  2. Create ps1 file for it.
  3. Run this ps1 file.

Files Version

3.9.1.0

Windows Version

10.0.26100.3194

User ID

a2edf6d2-76d7-4004-bceb-5cd7ffa27d13

Log File

debug.log

@Josh65-2201
Copy link
Member

Thanks for the report, can you screenshot the full PowerShell window

@Josh65-2201 Josh65-2201 added the needs - additional info Needs more information from the reporter label Feb 14, 2025
@yaira2
Copy link
Member

yaira2 commented Feb 14, 2025

Are you using the action on the toolbar, or the shell extension in the context menu?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs - additional info Needs more information from the reporter
Projects
None yet
Development

No branches or pull requests

3 participants