ElectronNET.CLI does not contain an inclusive lower bound
See original GitHub issueThis is my .csproj:
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ElectronNET.API" Version="0.0.7" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.3" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.1" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="ElectronNET.CLI" Version="*" />
</ItemGroup>
</Project>
My error:
NU1604: Project dependency ElectronNET.CLI does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
What dependency do I have to upgrade? I do not understand
I follow readme installation guide and I got stuck when I added this piece of code to .csproj
<ItemGroup>
<DotNetCliToolReference Include="ElectronNET.CLI" Version="*" />
</ItemGroup>
Thanks Andrea
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
How to correct dotnet restore warning NU1604, does not ...
NameResolution does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore ...
Read more >NuGet Warning NU1604
A project dependency doesn't define a lower bound. This means that restore did not find the best match. Each restore will float downwards ......
Read more >ManagePackageVersionsCentrally works in VS but not ...
csproj : warning NU1604: Project dependency NLog does not contain an inclusive lower bound. Include a lower bound in the dependency version to ......
Read more >Project dependency Microsoft.NETCore.App does not ...
NETCore.App does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
Read more >How to correct dotnet restore warning NU1604, does not ...
Net.NameResolution does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had this same problem and found that explicitly setting my version to the electronnet.cli package fixed it
Try changing:
<ItemGroup> <DotNetCliToolReference Include="ElectronNET.CLI" Version="*" /> </ItemGroup>
to this:
<ItemGroup> <DotNetCliToolReference Include="ElectronNET.CLI" Version="0.0.7 (or whatever version)"/> </ItemGroup>
I will update the documentation - thanks for sharing!