Open rmunn opened 6 years ago
See also https://github.com/dotnet/cli/issues/4473#issuecomment-256531057 and https://github.com/dotnet/project-system/pull/3073 — it may be possible to set the <RunWorkingDirectory>
and/or <StartWorkingDirectory>
properties in the .csproj file to change this behavior, in which case the package.json
might not need to be changed. It's possible that doing this may allow the same configuration to work on older and newer dotnet versions, though I'm not able to test that right now.
I can't repro it...
BTW, in Fable 2 the subprocess will always be run in the directory where package.json
is found so hopefully there will be no more confusion :)
With the newly-released .Net Core SDK 2.1 (
dotnet version
reports 2.1.300), the handling of the current working directory has changed anddotnet foo
now sets the CWD to the root of the project before running thefoo
command. What's currently inpackage.json
is assuming that the CWD from which the command is run will besrc/Main
:But if running with dotnet 2.1.300 or later, that needs to become:
so that the
webpack.config.js
file will be found.