fsprojects / FAKE

FAKE - F# Make
https://fake.build
Other
1.28k stars 582 forks source link

Why is the launch property not being passed into the `dotnet run` correctly? #2745

Closed mrakgr closed 1 year ago

mrakgr commented 1 year ago

Description

If I run the project from the command line using dotnet run --launch-profile "Server Play", it passes the correct profile from the launchSettigns.json.

Target.create "Run" <| fun _ ->
    run dotnet "watch run --launch-profile \"Server Learn\"" serverPath

If run the Build project (that was derived from the SAFE Stack template) it doesn't do the right thing, and passes in the default one instead. I am sure that the working directory paths are correct.

Sorry for skipping the other sections, If nothing comes to mind, I'll provide more details.

github-actions[bot] commented 1 year ago

Welcome to the FAKE community! Thank you so much for creating your first issue and therefore improving the project!

mrakgr commented 1 year ago

Related.

I didn't realize before I opened this that passing in the launch profile into dotnet watch doesn't work.

mrakgr commented 1 year ago

It passes it in correctly when I do dotnet run without watch. Since it isn't FAKE's problem, I'll close this issue.