Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Including PSGallery nuget dependency in Visual studio solution

$
0
0

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. enter image description here

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 ?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>