Problem
How to share postbuild Powershell Script in multiple solution so that each solution can invoke the script in post build event?
Solution Approach
Created a local PSGallary
Pushed my script into the gallery
- In the VS, added the new PSGallary as a nuget Source
- Pulled the postbuild script as the nuget package in the solution
Now i am stuck. The script is saved outside the solution in a nuget folder like this.
I don't want to hardcode the path of the script since, the versions changes and so does the path. How can i get the path of the actual nuget package content in post build event without hard coding it? is there other better approaches ?