Open AceHack opened 6 years ago
To report new issues, use the Report a Problem tool. The GitHub Issue Tracker for the aspnet/Tooling repo is now deprecated in favor of the Report a Problem tool.
If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks. See here for more details.
@barrytang This is not an issue but a question. Report a Problem is not for questions, where do I go for questions?
I apologize. I reopened the issue now. I will see if I can find someone that I can add here to help.
@AceHack I'll try to help as best I can. Can you provide a little more context? Which set/version of (VS) tools are you using, what kind of a project(s) is it, etc.?
Ive expanded on the question a lot on stackoverflow since this was closed.
Ah, I see now.
You can add arbitrary arguments to the Docker build and Docker run commands via the DockerfileBuildArguments
and DockerfileRunArguments
MSBuild properties, respectively. For example:
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<DockerfileRunArguments>-v "C:\HostFolder:/ContainerFolder:ro"</DockerfileRunArguments>
</PropertyGroup>
</Project>
If those arguments need to vary from debug session to debug session, you can add conditions to the properties such that one applies to each selectable build configuration.
@philliphoff Those arguments look exactly like what I need. A couple of questions:
DOTNET_RUNNING_IN_CONTAINER
environment variable? Does it only work in a Docker project?DockerComposeProjectPath
seems to be another one.
Please give documentation on how to add volume mounts. I need to add a custom volume mount into my image.