-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nuget.exe fails to restore packages for .build.csproj #7
Comments
@abhinav2004 I assume you have your solution file (sln) and the build.ps1 in different locations? That would be indeed a situation I didn't think of, when I recently cleaned up some parts of the bootstrapping. What you're probably missing is the 7001502#diff-17bf411711a25aa07727e1ee506981afL16 I can revert this change, but could you first check if this fixes the situation for you? |
@matkoch actually they are at the same location:
I'll check if the fix given by you works and get back to you. |
Are you executing from a different working directory? As far as I know nuget.exe tries to find the solution file by walking up the current directory. |
I am executing it from where both the sln and ps1 files are. |
Maybe it finds more than one solution file? Anyway, I'm sure specifying that parameter will fix it. |
Actually there are submodules in the project which have their own solution files but they are down in the sub paths. The immediate solution is just outside the build folder. And yes the change did fix it somewhat but now I have dependency issues :(
|
I really don't like supporting the legacy format. But I will still try :) It's much more fragile than using the sdk-based project files. In that case you could simply replace the version |
Yeah legacy can be a pain at times. I'll try that and see if it works. |
No chance you can install msbuild 15 or use netcore ? |
I am on msbuild 15. But need to use old .Net FW |
Then you should be able to use .NET Framework + SDK-based project file. |
Ok now I feel like an idiot. Thanks! The SDK based one worked without a hiccup. |
That sounds great :D Everything alright, much appreciated that you actually found 2 bugs :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
After running the powershell script nuget fails restore the packages for .build.csproj. I have setup nuke for .Net FW and legacy project structure.
Am I missing something?
The text was updated successfully, but these errors were encountered: