New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pandazzurro opened this Issue Nov 19, 2017 · 8 comments

Comments

Projects
None yet
4 participants
@pandazzurro

pandazzurro commented Nov 19, 2017

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

@GregorBiswanger

This comment has been minimized.

Show comment
Hide comment
@GregorBiswanger

GregorBiswanger Dec 18, 2017

Member

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

Member

GregorBiswanger commented 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?

@pandazzurro

This comment has been minimized.

Show comment
Hide comment
@pandazzurro

pandazzurro 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 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.

@GregorBiswanger

This comment has been minimized.

Show comment
Hide comment
@GregorBiswanger

GregorBiswanger Dec 20, 2017

Member

Do you use first the dotnet electronize init command?

Member

GregorBiswanger commented Dec 20, 2017

Do you use first the dotnet electronize init command?

@pandazzurro

This comment has been minimized.

Show comment
Hide comment
@pandazzurro

pandazzurro commented Dec 21, 2017

Yep

@robertmuehsig

This comment has been minimized.

Show comment
Hide comment
@robertmuehsig

robertmuehsig Dec 21, 2017

Collaborator

Can you share your project?

Collaborator

robertmuehsig commented Dec 21, 2017

Can you share your project?

@pandazzurro

This comment has been minimized.

Show comment
Hide comment
@pandazzurro

pandazzurro commented Dec 23, 2017

@mbuchok

This comment has been minimized.

Show comment
Hide comment
@mbuchok

mbuchok 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 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>

@robertmuehsig

This comment has been minimized.

Show comment
Hide comment
@robertmuehsig

robertmuehsig Feb 19, 2018

Collaborator

I will update the documentation - thanks for sharing!

Collaborator

robertmuehsig commented Feb 19, 2018

I will update the documentation - thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment