ElectronNET.CLI does not contain an inclusive lower bound #76

Closed
opened 2026-01-29 16:29:58 +00:00 by claunia · 8 comments
Owner

Originally created by @pandazzurro on GitHub (Nov 19, 2017).

Originally assigned to: @robertmuehsig on GitHub.

This 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

Originally created by @pandazzurro on GitHub (Nov 19, 2017). Originally assigned to: @robertmuehsig on GitHub. This 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
Author
Owner

@GregorBiswanger commented on GitHub (Dec 18, 2017):

Hi Andrea,
did you type the "dotnet restore" command after you edited the .csproj file?
When and where did you get the error message?

@GregorBiswanger commented on GitHub (Dec 18, 2017): Hi Andrea, did you type the "dotnet restore" command after you edited the .csproj file? When and where did you get the error message?
Author
Owner

@pandazzurro commented on GitHub (Dec 20, 2017):

I create new project in another machine.
After execute:
dotnet electronize start
There is an error:
image

After that I clear .\obj folder but without success.

This example work very well.

@pandazzurro commented on GitHub (Dec 20, 2017): I create new project in another machine. After execute: `dotnet electronize start` There is an error: ![image](https://user-images.githubusercontent.com/7531792/34224328-cd29a5fe-e5c2-11e7-944c-9f921fd77b5b.png) After that I clear .\obj folder but without success. This [example](https://github.com/ElectronNET/electron.net-api-demos) work very well.
Author
Owner

@GregorBiswanger commented on GitHub (Dec 20, 2017):

Do you use first the dotnet electronize init command?

@GregorBiswanger commented on GitHub (Dec 20, 2017): Do you use first the `dotnet electronize init` command?
Author
Owner

@pandazzurro commented on GitHub (Dec 21, 2017):

Yep

@pandazzurro commented on GitHub (Dec 21, 2017): Yep
Author
Owner

@robertmuehsig commented on GitHub (Dec 21, 2017):

Can you share your project?

@robertmuehsig commented on GitHub (Dec 21, 2017): Can you share your project?
Author
Owner

@pandazzurro commented on GitHub (Dec 23, 2017):

Project

@pandazzurro commented on GitHub (Dec 23, 2017): [Project](https://github.com/pandazzurro/Electron)
Author
Owner

@mbuchok commented on GitHub (Jan 27, 2018):

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>

@mbuchok commented on GitHub (Jan 27, 2018): 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>`
Author
Owner

@robertmuehsig commented on GitHub (Feb 19, 2018):

I will update the documentation - thanks for sharing!

@robertmuehsig commented on GitHub (Feb 19, 2018): I will update the documentation - thanks for sharing!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#76