I have converted a VS 2019 using .NET 4.8 csproj file to VS 2022 using .NET 5.0 Everything builds however my post processing command fails.
It uses $(TargetPath) which seems to be no longer available.
What do we use instead?
I have converted a VS 2019 using .NET 4.8 csproj file to VS 2022 using .NET 5.0 Everything builds however my post processing command fails.
It uses $(TargetPath) which seems to be no longer available.
What do we use instead?
Found the answer here PostEvents
in other words take a copy of your PostBuild event script, edit your project file and delete the PostBuild event section. The open the project file in Visual Studio and recreate the PostBuild event. This will create it using Targets