.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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -