-
Notifications
You must be signed in to change notification settings - Fork 124
Use NuKeeper CLI in shell instead of VS Developer Command Prompt #916
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I don't like creating useless bump posts, but I guess stale bot leaves me no choice. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bump. Nukeeper still doesn't work outside of vs developer command prompt. However, it doesn't throw exceptions, it just hangs on the nuget restore command. The performance of nuget restore seems to have improved. |
I have finally taken a closer look at the environment settings that VsDevCommand.bat creates. It seems it was as simple as the location of MsBuild. This message gets printed when I'm using bash:
When I prefix the invocation of the nukeeper command as follows;
It correctly finds the up-to-date MsBuild version! I'm keeping this issue open for now, since I don't know whether this is linked to NuGet, or NuKeeper per se, and if the former whether NuKeeper can set up the environment correctly such that NuGet will find the correct version of MsBuild. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Ignore the close, I slipped. Just removing the wontfix label |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I still have an issue related with this. I have a custom project import that looks like this:
But I can't set the SolutionDir variable so it doesn't work. Is there a way to customize the parameters that get passed to msbuild? EDIT - We were able to implement a workaround by using the MSBuildProjectDirectory variable instead of SolutionDir |
Glad you found a workaround. Back in the olden days (like before 2010 when NuGet was better integrated with MSBuild) NuGet would reference packages based on the That said, I think we might need a way of passing msbuild properties in general via NuKeeper. As problems like this could be solved. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
💬 Questions and Help
When I use bash to run the
repo
nukeeper command, I receive exceptions related to NuGet.exe not being able to restore packages:Cannot determine the packages folder to restore NuGet packages. Please specify either -PackagesDirectory or -SolutionDirectory.
When I execute the exact same command in VS's Developer Command Prompt it works.
How can I get NuKeeper CLI to work properly in bash or other shells?
Also as a side remark, the nuget restore on all projects takes around 15 minutes for a single solution, any idea why this is so slow?
The text was updated successfully, but these errors were encountered: