Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Commented Issue: NuGet doesn't run init.ps1 script when opening solution [2728]

$
0
0
I've submitted this bug previously via Microsoft Connect, but haven't received any status other than the issue is being reviewed.<br /><br />More info here: https://connect.microsoft.com/VisualStudio/feedback/details/762468/nuget-doesnt-run-init-ps1-script-when-opening-solution
Comments: For another project that I maintain, I edit the .nuget\NuGet.targets file if it exists to add extra imports. (http://razorgenerator.codeplex.com/SourceControl/changeset/view/bd1d081478bf#RazorGenerator.MsBuild%2fInstall.ps1). This lets me inject custom pre-build steps to projects that have package restore available. You could do something similar and hook on to the prebuild\build event to trigger your bit of code. That said, since the implementation of Package Restore in itself isn't documented or formalized, depending on it is treading on undocumented features. Perhaps it would be useful to create a work item for letting packages specify custom build actions \ build targets.

Viewing all articles
Browse latest Browse all 7612

Trending Articles



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