I have a visual studio 2019 and i have a solution.
I have 2 projects in the solution, one of them is a traditional .net core 2.2 web application, and now i have a new one, a python as well.
I need to copy the python project also to the publish folder, so the docker can containerize it.
I can not add the python project as a reference to the c# project because it will return with an error: the pyproj can not be found (i am 100% it is in the right way, but i guess it does not copy during building)
I tried to add some extra to msbuild in the csproj file to force copy it, but i guess it does not work because it is out of the project folder and it was not allowed.
I tried to add this lines to the csproj
<ItemGroup>
<MySourceFiles Include="..\PYNLP\" />
</ItemGroup>
and this one also
<ItemGroup>
<MySourceFiles Include="$(MSBuildProjectDirectory)\..\PYNLP\" />
</ItemGroup>
None of them worked well. If anybody has an idea i would be happy to try it.