Reputation: 19
I have a C# project which works with python web server, written with FastAPI. Server is a part of C# application, and runs and shuts down by C# app.
I usually work only with C# apps and have no experience in cases, when there are two or more projects in repo, which form one app, but written in different programming languages. So, I'm interested in two things:
Upvotes: -2
Views: 81
Reputation: 476
Manually adding post-build events to .csproj file can ensure your .py file copied to the output directory:
<Target Name="CopyPythonFiles" AfterTargets="Build">
<Copy SourceFiles="(yourFileName).py" DestinationFolder="$(OutDir)" />
</Target>
Upvotes: 0