-
Notifications
You must be signed in to change notification settings - Fork 190
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
dotnet run does not work on Windows when Core Tools are installed from NPM #2884
Comments
@DavidZidar did you restart your terminal after running |
I installed the function tools many months ago, so yes. 😄 And yes, they are up to date. |
I am unable to reproduce this. On windows, path expansion automatically handles going from |
Isn't path expansion a feature of the shell? I could be mistaken but I don't think In any case, yes, here is some terminal output:
I reproduced this on a second machine, exact same behavior. |
Like I said I get the same error from .NET. When I try running |
|
@mattchenderson , @fabiocav - this only happens when func tools are installed via NPM as that method does not include a @DavidZidar if you install via MSI, winget, or chocolatey you should get a |
Oh, interesting, that explains it. I just tried installing it via winget and now it works, thanks! I didn't know it was possible to install the tools without using npm. |
Ah, that's an interesting limitation. We'll have to look into that. I can add a specific callout in the documentation to help others with this. We definitely want this to work with an NPM installation though. We'll keep this item for tracking that. We've been looking at ways to help the tool provide more specifics around acquisition in general, and I think this aligns with that. |
It's possible this is an issue with the MSBuild logic handling this. We'll follow up and provide an update. |
Description
I just tried to run my isolated function app with
dotnet run
as it's supposed to be supported since version 2 but I get the following error:It seems that the
RunCommand
is hardcoded asfunc
here:azure-functions-dotnet-worker/sdk/Sdk/Targets/Microsoft.Azure.Functions.Worker.Sdk.targets
Line 86 in c4113d1
It should probably be
func.cmd
on Windows.I have reproduced the problem in .NET by running
Process.Start("func")
which fails similarly whileProcess.Start("func.cmd")
works.My PATH does contain
func
,func.ps1
andfunc.cmd
as installed by npm.Steps to reproduce
The text was updated successfully, but these errors were encountered: