Electron.NET icon indicating copy to clipboard operation
Electron.NET copied to clipboard

ElectronNET.CLI does not contain an inclusive lower bound

Open pandazzurro opened this issue 9 years ago • 8 comments

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

pandazzurro avatar Nov 19 '17 17:11 pandazzurro

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 avatar Dec 18 '17 21:12 GregorBiswanger

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 avatar Dec 20 '17 19:12 pandazzurro

Do you use first the dotnet electronize init command?

GregorBiswanger avatar Dec 20 '17 22:12 GregorBiswanger

Yep

pandazzurro avatar Dec 21 '17 10:12 pandazzurro

Can you share your project?

robertmuehsig avatar Dec 21 '17 10:12 robertmuehsig

Project

pandazzurro avatar Dec 23 '17 08:12 pandazzurro

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 avatar Jan 27 '18 03:01 mbuchok

I will update the documentation - thanks for sharing!

robertmuehsig avatar Feb 19 '18 21:02 robertmuehsig