CompositionalIT / farmer

Repeatable Azure deployments with ARM templates - made easy!
https://compositionalit.github.io/farmer
MIT License
526 stars 159 forks source link

dotnet new Farmer -> Package downgrade detected #634

Open biltongza opened 3 years ago

biltongza commented 3 years ago

Running dotnet new Farmer results in the following fsproj:

<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="Program.fs" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Update="FSharp.Core" Version="4.*" />
    <PackageReference Include="Farmer" Version="1.*" />
  </ItemGroup>
</Project>

Running a dotnet restore results in:

C:\dev\repos\Azure\FarmerApp.fsproj : warning NU1605: Detected package downgrade: FSharp.Core from 5.0.0 to 4.7.2. Reference the package directly from the project to select a different version.  [C:\dev\repos\Azure\FarmerApp.sln]
C:\dev\repos\Azure\FarmerApp.fsproj : warning NU1605:  FarmerApp -> Farmer 1.5.2 -> FSharp.Core (>= 5.0.0)  [C:\dev\repos\Azure\FarmerApp.sln]
C:\dev\repos\Azure\FarmerApp.fsproj : warning NU1605:  FarmerApp -> FSharp.Core (>= 4.7.2) [C:\dev\repos\Azure\FarmerApp.sln]

I resolved it by changing the FSharp.Core version to 5.*, but this isn't an ideal first use experience.

isaacabraham commented 3 years ago

Yes, the template needs an update. Good spot.

ninjarobot commented 3 years ago

@isaacabraham is this all that is needed? https://github.com/CompositionalIT/farmer-template/pull/6

biltongza commented 3 years ago

I believe this is fixed? Can I close this?

isaacabraham commented 3 years ago

The fix is in place, yes. But not yet released - should be later today.