Michael T
Michael T

Reputation: 739

Common MACROS for C# Project in Visual Studio 2022

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?

Upvotes: 5

Views: 2192

Answers (1)

Michael T
Michael T

Reputation: 739

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

Upvotes: 2

Related Questions