Hi @Aditya Dalai , Welcome to Microsoft Q&A,
Microsoft employees said here that the powershell script of the package reference has been deprecated, and it is not recommended to use scripts in packages:
https://github.com/NuGet/Home/issues/4318#issuecomment-343255043
The target after build target method you use can be tested here:
The principle is to replace the dll and pdb of the current project.
If there is a problem, it may be because you did not choose to rebuild, so the previous metadata file is still used.
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.