I'm having issues when I try to build the application that leads me to run a package restore, but that fails, and I can't update packages either.
NU1107 Version conflict detected for Microsoft.CodeAnalysis.CSharp.Workspaces.
Install/reference Microsoft.CodeAnalysis.CSharp.Workspaces 4.4.0 directly to project DACRL.Portal.Admin to resolve this issue.
DACRL.Portal.Admin -> Microsoft.VisualStudio.Web.CodeGeneration.Design 7.0.1 -> Microsoft.VisualStudio.Web.CodeGenerators.Mvc 7.0.1 -> Microsoft.VisualStudio.Web.CodeGeneration 7.0.1 -> Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore 7.0.1 -> Microsoft.VisualStudio.Web.CodeGeneration.Core 7.0.1 -> Microsoft.VisualStudio.Web.CodeGeneration.Templating 7.0.1 -> Microsoft.VisualStudio.Web.CodeGeneration.Utils 7.0.1 -> Microsoft.CodeAnalysis.CSharp.Workspaces (>= 4.4.0)
DACRL.Portal.Admin -> Telerik.UI.for.AspNet.Core 2022.3.1109 -> Microsoft.CodeAnalysis 4.0.0 -> Microsoft.CodeAnalysis.CSharp.Workspaces (= 4.0.0).
I have the latest SDK installed:
And the whole solution (each project) is set to .net 7.0:
<TargetFramework>net7.0</TargetFramework>
And the global.json is also setup correctly:
{
"sdk": {
"version": "7.0.101"
}
}
The last thing that it advises is to manually install Microsoft.CodeAnalysis.Common 4.4.0 directly to project DACRL.Portal.Admin, and that also fails.
NU1107: Version conflict detected for Microsoft.CodeAnalysis.Common.
Install/reference Microsoft.CodeAnalysis.Common 4.4.0 directly to project DACRL.Portal.Admin to resolve this issue.
DACRL.Portal.Admin -> Microsoft.CodeAnalysis.CSharp.Workspaces 4.4.0 -> Microsoft.CodeAnalysis.Common (= 4.4.0)
DACRL.Portal.Admin -> Microsoft.VisualStudio.Web.CodeGeneration.Design 7.0.0 -> Microsoft.DotNet.Scaffolding.Shared 7.0.0 -> Microsoft.CodeAnalysis.CSharp.Features 4.0.0 -> Microsoft.CodeAnalysis.Common (= 4.0.0).
It seems that Telerik.UI.for.AspNet.Core 2022.3.1109 added v4.0.0 of Microsoft.CodeAnalysis.* DLLs. I had to manually add the following NuGtes:
Microsoft.CodeAnalysis.Common
Microsoft.CodeAnalysis.Workspaces.Common
Microsoft.CodeAnalysis.CSharp
Microsoft.CodeAnalysis.CSharp.Workspaces
Microsoft.CodeAnalysis.VisualBasic
Microsoft.CodeAnalysis.VisualBasic.Workspaces
Now, solution compiles and NuGets get appropriately updated.
Related
I am running a react app using node (version 16.13.1). Apparantly I am supposed to use node sass version 7.0.0.
So I install version 7.0.0, but when I run my application I get this error :
./src/misc/loading.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/react-scripts/node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/misc/loading.scss)
Error: Node Sass version 7.0.0 is incompatible with ^4.0.0.
Why am I getting this error?
And "incompatible with 4.0.0" means what? 4.0.0 of which module? node? sass? react? npm?
nvm ls:
-> system
default -> system
unstable -> system
node -> stable (-> v12.16.3) (default)
stable -> 12.16 (-> v12.16.3) (default)
iojs -> N/A (default)
lts/* -> lts/erbium (-> v12.16.3)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.20.1
lts/erbium -> v12.16.3
use nvm alias default v12.16.3 to set default version explicitly
I resolved this updating the node to LTS version:
nvm install --lts
DISCLAIMER: We were getting this error specifically trying to run
a React Native build for iOS in Microsoft AppCenter. The OP question did
not specify the environment so depending on your setup your mileage may
vary.
In our specific circumstance, the issue was resolved by bumping the
XCode version from 10.1 to 11.3.
I installed the sylius v1.0.0-beta2 and symfony 3 but I have a bit problems when I install Sylius metadata.
When I launch the command composer.phar require sylius/metadata-bundle it return an error
Your requirements could not be resolved to an installable set of packages.
Problem 1
- don't install sylius/resource v0.19.0|don't install sylius/sylius v1.0.0-beta.2
- don't install sylius/resource v0.19.0|remove sylius/sylius v1.0.0-beta.2
- don't install sylius/resource v0.19.0|don't install sylius/sylius v1.0.0-beta.2
- sylius/metadata v0.19.0 requires sylius/resource ^0.19 -> satisfiable by sylius/resource[v0.19.0].
- sylius/metadata-bundle v0.19.0 requires sylius/metadata ^0.19 -> satisfiable by sylius/metadata[v0.19.0].
- Installation request for sylius/metadata-bundle ^0.19.0 -> satisfiable by sylius/metadata-bundle[v0.19.0].
- Installation request for sylius/sylius (locked at v1.0.0-beta.2, required as ^1.0#beta) -> satisfiable by sylius/sylius[v1.0.0-beta.2].
Installation failed, reverting ./composer.json to its original content.
How can I install it ?
I want to install JUI Extension for Yii 2, but composer reports me the following issues:
Your requirements could not be resolved to an installable set of packages.
- yiisoft/yii2-jui 2.0.4 requires bower-asset/jquery-ui 1.11.*#stable -> no matching package found.
- yiisoft/yii2-jui 2.0.3 requires bower-asset/jquery-ui 1.11.*#stable -> no matching package found.
- yiisoft/yii2-jui 2.0.2 requires bower-asset/jquery-ui 1.11.*#stable -> no matching package found.
- yiisoft/yii2-jui 2.0.1 requires bower-asset/jquery-ui 1.11.*#stable -> no matching package found.
- yiisoft/yii2-jui 2.0.0 requires bower-asset/jquery-ui 1.11.*#stable -> no matching package found.
- Installation request for yiisoft/yii2-jui ^2.0 -> satisfiable by yiisoft/yii2-jui[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
What I can do in order to fix this?
Finally I found the solution:
If you want to install the JUI extension for Yii2, you should do the following steps:
Run the following composer command: php composer.phar require "fxp/composer-asset-plugin:~1.0"
Run php composer.phar update
Run php composer.phar require --prefer-dist yiisoft/yii2-jui
I had the same problem while I was trying to install Kartik's extension for Yii2 framework. Adding "fxp/composer-asset-plugin": "*" to the require section of my composer.json file solved it.
Need to install the Composer Asset Plugin first:
composer global require "fxp/composer-asset-plugin:~1.0"
This one worked for me
When I try to install the searchable plugin in a grails app, I'm told that grails can't resolve the following dependencies:
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.grails.plugins#searchable;0.6.3: java.lang.NullPointerException at org.apache.ivy.plugins.resolver.AbstractResolver.initRepositoryCacheManagerFromSettings(AbstractResolver.java:396)
::::::::::::::::::::::::::::::::::::::::::::::
Grails version is 2.0.3
What can i do?
Are you trying to install it from a zip file? This might be caused by GRAILS-9006, which prevents plugins from being installed via a local directory, to be fixed in Grails 2.0.4.
Try uncommenting the mavenCentral line in BuildConfig.groovy then try the install-plugin again.
//mavenLocal()
mavenCentral()
//mavenRepo...