Comments (14)
@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.
@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.
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.
I am executing it from where both the sln and ps1 files are.
from nuke.
Maybe it finds more than one solution file? Anyway, I'm sure specifying that parameter will fix it.
from nuke.
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.
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.
Yeah legacy can be a pain at times. I'll try that and see if it works.
from nuke.
No chance you can install msbuild 15 or use netcore ?
from nuke.
I am on msbuild 15. But need to use old .Net FW
from nuke.
Then you should be able to use .NET Framework + SDK-based project file.
from nuke.
Ok now I feel like an idiot. Thanks! The SDK based one worked without a hiccup.
from nuke.
That sounds great :D Everything alright, much appreciated that you actually found 2 bugs :)
from nuke.
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)
- Remove `perl` dependency from unix bootstrap and use global.json directly HOT 1
- Latest NSwag 14.0.3 support HOT 6
- Nuke Global Tool Fails To Run HOT 3
- AddRunSetting adds extra space to run setting HOT 1
- GitRepository attribute fails if TeamCity has multiple repositories
- avoid duplicate nuget packages HOT 1
- Latest version of JetBrains dotCover not running on Linux via dotCoverTasks
- dotnet-sonarscanner latest version not compatible with nuke
- DotNetPublishSettings lacks some arguments HOT 3
- ProjectExtensions.GetPackageReferenceVersion does not work with NuGet Central Package Management HOT 3
- Azure Pipelines: AccessToken not available HOT 4
- NpmToolResolver can hang waiting for input HOT 6
- .NET 8 Support HOT 1
- Issue with formating logs on AzureDevops HOT 1
- GitVersion.Tool PackageDownload Error HOT 3
- Exception in Rider for Plugin 2024.1 HOT 1
- Container build rootless for Kubernets
- Update actions/checkout, actions/cache and actions/upload-artifact to @v4 in generated Github Actions to use Node 20 HOT 2
- Exception in Rider for Plugin 2024.1.1 HOT 2
- ITest not generating code coverage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuke.