Comments (4)
What about NuGet 3.4.4 with the gradle plugin? Also, the executable seems to return a non-zero code, isn't there any output? (If you run with --info
or --debug
).
from gradle-nuget-plugin.
- I tried --info and --debug and nothing useful comes out of the output
- I can't get gradle-nuget-plugin to download 3.4.4 because of the case difference. Also see issue #43.
from gradle-nuget-plugin.
Additional information to figure out the problem:
In fact, we got the same error
:nugetRestore FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':nugetRestore'.
> Process 'command 'C:\Windows\System32\config\systemprofile\.gradle\caches\nuget\3.4.4\NuGet.exe'' finished with non-zero exit value -2146232576
when upgrading the JVM version Jenkins and within Gradle is running on from 7 to 8.
We are quite sure, this is the only change we did to the project before rebuilding it as we just have merged back a branch with no changes on the trunk and the branch was before built without errors with the same build logic but Java 7 backed.
I tried to figure out why Java 7 backed Gradle build worked before. It seems, with Java 8 the system profile path (where also the gradle.properties file is taken from) has been changed from "C:.gradle" to "'C:\Windows\System32\config\systemprofile\.gradle".
When I'm trying to start 'C:\Windows\System32\config\systemprofile.gradle\caches\nuget\3.4.4\NuGet.exe' by double clicking, I'm getting an error pointing to https://support.microsoft.com/en-us/help/2715633/shim-errors-for-the-.net-framework-version-and-platform-support
However, if copying the same executable to elsewhere, if runs fine without that error.
Setting up NUGET_HOME
in System environment variables pointing to the elsewhere copied NuGet.exe as mentioned by @DKroot worked for me too. However, I would like to have the out-of-box behavior as we had it with Java 7. Any idea how to achieve this?
I guess, there must be a Windows system configuration which allows to start .NET applications from within the localsystem's profile path. But I did not find any resource about that on the net...
from gradle-nuget-plugin.
This is maybe related: https://github.com/dotnet/cli/issues/4196 (moved to NuGet/Home#3839)
from gradle-nuget-plugin.
Related Issues (20)
- Allow ad-hoc location to NuGet Executable HOT 3
- Project configuration fails without nugetSources section in build.gradle HOT 4
- Plugin cannot be released by gradle 4.9
- Timescale for 2.18? HOT 1
- Plugin won't work for Azure NuGet 3
- HOTWO nugetSpec and list of files? HOT 1
- The process cannot access the file 'fileContent.lock' because it is being used by another process HOT 1
- The distsDir method has been deprecated. This is scheduled to be removed in Gradle 6.0.
- Property is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. HOT 3
- Could not generate a decorated class for type NuGetPush HOT 4
- nugetRestore also triggers nugetSources with error HOT 1
- Solution file argument isn't being passed
- Gradle 7.0 - No such property: UPLOAD_GROUP HOT 1
- deprecated feature warning in Gradle 7.0.2
- Additional task "nugetInstall"
- nugetPack.basePath incorrect annotated as a file
- NuGetPack.getIdFromMsbuildTask got broken by csprojPath type change
- Collision when downloading nuget in multiple sub projects HOT 1
- Could not set unknown property 'nugetExePath' for extension 'nuget' of type com.ullink.NuGetExtension. HOT 1
- Gradle 8 - update version and use providers on Task objects
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 gradle-nuget-plugin.