Git Product home page Git Product logo

Comments (14)

matkoch avatar matkoch commented on May 19, 2024

@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 -SolutionDirectory flag for nuget.exe:

7001502#diff-17bf411711a25aa07727e1ee506981afL16
7001502#diff-17bf411711a25aa07727e1ee506981afL40

I can revert this change, but could you first check if this fixes the situation for you?

from nuke.

abhinav2004 avatar abhinav2004 commented on May 19, 2024

@matkoch actually they are at the same location:

<redacted>@<redacted> MINGW64 ~/Workspace/<redacted> (<redacted>)
$ ls -al *.sln *.ps1
-rw-r--r-- 1 <redacted> 197121 7703 Oct  3 17:04 <redacted>.sln
-rw-r--r-- 1 <redacted> 197121 1922 Oct  3 17:04 build.ps1

I'll check if the fix given by you works and get back to you.

from nuke.

matkoch avatar matkoch commented on May 19, 2024

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.

from nuke.

abhinav2004 avatar abhinav2004 commented on May 19, 2024

I am executing it from where both the sln and ps1 files are.

from nuke.

matkoch avatar matkoch commented on May 19, 2024

Maybe it finds more than one solution file? Anyway, I'm sure specifying that parameter will fix it.

from nuke.

abhinav2004 avatar abhinav2004 commented on May 19, 2024

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 found out by manually restoring nuget packages.

Update-Package : Unable to resolve dependencies. 'Newtonsoft.Json 10.0.1' is not compatible with 'Nuke.Common 0.1.340 constraint: Newtonsoft.Json (>= 10.0.3)', 'Refit 4.0.1 constraint: 
Newtonsoft.Json (>= 10.0.3)'.

from nuke.

matkoch avatar matkoch commented on May 19, 2024

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 10.0.1 with 10.0.3 in both - project file and packages.config.

from nuke.

abhinav2004 avatar abhinav2004 commented on May 19, 2024

Yeah legacy can be a pain at times. I'll try that and see if it works.

from nuke.

matkoch avatar matkoch commented on May 19, 2024

No chance you can install msbuild 15 or use netcore ?

from nuke.

abhinav2004 avatar abhinav2004 commented on May 19, 2024

I am on msbuild 15. But need to use old .Net FW

from nuke.

matkoch avatar matkoch commented on May 19, 2024

Then you should be able to use .NET Framework + SDK-based project file.

from nuke.

abhinav2004 avatar abhinav2004 commented on May 19, 2024

Ok now I feel like an idiot. Thanks! The SDK based one worked without a hiccup.

from nuke.

matkoch avatar matkoch commented on May 19, 2024

That sounds great :D Everything alright, much appreciated that you actually found 2 bugs :)

from nuke.

lock avatar lock commented on May 19, 2024

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.

from nuke.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.