.net core - Pre- Post- Build Event Variables in Visual Studio are Empty -
have .net core app i'm trying use $(projectdir) , when attempt pass in macro, empty value. tried suggested in issue 26748846, didn't seem solve issue.
this happens because in .net core projects, pre- , post build macros set , $(projectdir)
property not yet available. note pre- , post build macros deprecated , should replaced proper targets (see https://github.com/dotnet/project-system/issues/1569).
a quick fix replace $(projectdir)
$(msbuildprojectdirectory)\
.
Comments
Post a Comment