-
Notifications
You must be signed in to change notification settings - Fork 514
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
Not able to run post build steps on .NET Core Debug #879
Comments
@flgarrid When debugging, VS Code will map your local Would it work to install the NPM packages in your local application output folder (e.g. as part of build), before debugging? |
Thank you @philliphoff. I used my local NPM packages, but one of them is platform-specific (I'm running a Windows machine and a Linux container), so it must be installed on the container. |
@flgarrid Ah, I see. I'll have to think about how that could work; since the entire application directory hierarchy is mapped in, I'm not sure how that could be resolved other than to move the Node files outside of the application directory hierarchy altogether. Can you provide a bit more context on your project (e.g. the structure/arrangement of its output between the .NET and Node pieces)? |
@philliphoff I'm using Microsoft.AspNetCore.NodeServices to run Node.js code from .NET Core. The key package that is platform-specific in Node.js is https://github.com/Automattic/node-canvas. We invoke the Node.js code by using await nodeServices.InvokeAsync() and it runs great both in Linux and in Windows (with the platform-specific packages installed). All of the Node code is running in the /Node folder. |
Fixed in #1245 although it will require the user to create a custom task that depends on the |
When debugging in Docker, if I install some npm packages in the base image, they are not preserved in the Debug instance.
My Dockerfile is super simple:
Which makes me think that the folder /app/bin/Debug is being overwritten after the .NET Core publish stage is done.
Is there any way I can run the npm install command after the .NET Core app is published?
(Or as a workaround, try to copy the node_modules folder to /app/bin/Debug/netcoreapp2.2/Node/`)
Thank you!
The text was updated successfully, but these errors were encountered: