Is there a more elegant way to copy specific files using Docker COPY to the working directory? : <p>Attempting to create a container with microsoft/dotnet:2.1-aspnetcore-runtime.  The .net core solution file has multiple projects nested underneath the solution, each with it's own .csproj file.  I am attemping to create a more elegant COPY instruction for the sub-projects</p>

<p>The sample available here <a href="https://github.com/dotnet/dotnet-docker/tree/master/samples/aspnetapp" rel="noreferrer">https://github.com/dotnet/dotnet-docker/tree/master/samples/aspnetapp</a> has a solution file with only one .csproj so creates the Dockerfile thusly:</p>

<pre><code>COPY *.sln .
COPY aspnetapp/*.csproj ./aspnetapp/
RUN dotnet restore
</code></pre>

<p>It works this way</p>

<pre><code>COPY my_solution_folder/*.sln .
COPY my_solution_folder/project/*.csproj my_solution_folder/
COPY my_solution_folder/subproject_one/*.csproj subproject_one/
COPY my_solution_folder/subproject_two/*.csproj subproject_two/
COPY my_solution_folder/subproject_three/*.csproj subproject_three/
</code></pre>

<p>for a solution folder structure of:</p>

<pre><code>my_solution_folder\my_solution.sln
my_solution_folder\project\my_solution.csproj
my_solution_folder\subproject_one\subproject_one.csproj
my_solution_folder\subproject_two\subproject_two.csproj
my_solution_folder\subproject_three\subproject_three.csproj
</code></pre>

<p>but this doesn't (was a random guess)</p>

<pre><code>COPY my_solution_folder/*/*.csproj working_dir_folder/*/
</code></pre>

<p>Is there a more elegant solution?</p>
