Skip to content
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

Conflict when adding a nuget to the Test Project #303

Open
gusty opened this issue Jun 18, 2017 · 0 comments
Open

Conflict when adding a nuget to the Test Project #303

gusty opened this issue Jun 18, 2017 · 0 comments

Comments

@gusty
Copy link
Member

gusty commented Jun 18, 2017

Description

Adding a nuget to the Test project using paket fails due to a conflict of FSharp.Core versions

Repro steps

  1. After cloning, run build as stated in the doc, name the solution MySolution, put anything for the rest.

  2. Go to the paket directory and add a nuget to the Test group like this:

    paket add project MySolution.Tests group Test nuget YC.PrettyPrinter

Expected behavior

Succeed

Actual behavior

Fails with this error:

Package FSharp.Core is referenced in different versions in C:\ProjectScaffold\tests\MySolution.Tests\MySolution.Tests.fsproj (4.0.0.1 vs 4.2.1), ...

Known workarounds

None at the moment

Related information

I showed here an example with the nuget of YC.PrettyPrinter but I tried many other libraries and it always fails like this.

It detects F# core 4.2.1 immediately after the NUnit.Runners:

Paket version 5.0.0
Adding YC.PrettyPrinter to C:\Repos\ProjectScaffold\paket.dependencies into group Test
Skipping resolver for group Build since it is already up-to-date
Skipping resolver for group Main since it is already up-to-date
Resolving packages for group Test:
 - NUnit 2.6.4
 - NUnit.Runners 2.6.4
 - YC.PrettyPrinter 0.0.5
 - FSharp.Core 4.2.1
 - System.IO 4.3.0
 ...

I'm using this VS:

Microsoft Visual Studio Professional 2017
Version 15.2 (26430.13) Release
VisualStudio.15.Release/15.2.0+26430.13
Microsoft .NET Framework
Version 4.6.01586

Visual F# 4.1 00369-60000-00001-AA382
Microsoft Visual F# 4.1

NuGet Package Manager 4.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant