I have a c# project on visual studio 2019. I want to build the project again at the post-build event command line, I have this written:
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe" "$(ProjectDir)ProfileTypes.csproj"
However, this makes it build it infinite times understandably. Do you know how can I make this line to run only the first time post-build was called?