I have an ASP.NET Core 2 project that uses the UseWebpackDevMiddleware
from Microsoft.AspNetCore.SpaServices.Webpack
.
Unfortunately the aspnet webpack node plugin is complaining about Error: ENOENT: no such file or directory, lstat 'c:\ContainerMappedDirectories'
. See NodeJS Issue for details.
There's a workaround, but I can't try it out because I cannot change the docker compose file that Visual Studio is generating. The file they generate under obj\Docker\docker-compose.vs.debug.g.yml
, always creates a volume from my project to C:\app
, but for the workaround I need it to point to G:\
.
Any idea how I can force Visual Studio to use different values when it generates these debugger compose files?
This is what the generated file looks like:
version: '3.6'
services:
employeemap.app:
image: employeemapapp:dev
environment:
- DOTNET_USE_POLLING_FILE_WATCHER=1
- NUGET_PACKAGES=C:\.nuget\packages
- NUGET_FALLBACK_PACKAGES=c:\.nuget\fallbackpackages
volumes:
- C:\Users\nswimberghe\projects\EmployeeMap\EmployeeMap.App:C:\app
- C:\Users\nswimberghe\onecoremsvsmon\15.0.27428.1:C:\remote_debugger:ro
- C:\Users\nswimberghe\.nuget\packages\:c:\.nuget\packages:ro
- C:\Program Files\dotnet\sdk\NuGetFallbackFolder:c:\.nuget\fallbackpackages:ro
entrypoint: C:\\remote_debugger\\x64\\msvsmon.exe /noauth /anyuser /silent /nostatus /noclrwarn /nosecuritywarn /nofirewallwarn /nowowwarn /timeout:2147483646
labels:
com.microsoft.visualstudio.debuggee.program: "\"C:\\Program Files\\dotnet\\dotnet.exe\""
com.microsoft.visualstudio.debuggee.arguments: " --additionalProbingPath c:\\.nuget\\packages --additionalProbingPath c:\\.nuget\\fallbackpackages bin\\Debug\\netcoreapp2.0\\EmployeeMap.App.dll"
com.microsoft.visualstudio.debuggee.workingdirectory: "C:\\app"
com.microsoft.visualstudio.debuggee.killprogram: "C:\\remote_debugger\\x64\\utils\\KillProcess.exe dotnet.exe"
There are other containers in the composer file which I removed for simplicity.
Only the employeemap.app should use G:\
.