You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had trouble getting conditional references in paket.references working in the context of .NET SDK-style projects. Roughly speaking I had this in paket.references:
Nancy.Hosting.Self framework: net461
But I still get this error for when compiling TargetFramework=netcoreapp2.0 for a multi-targeting project:
C:\GitHub\dsyme\FSharp.Data\tests\FSharp.Data.Tests\FSharp.Data.Tests.fsproj : error NU1701:
Package 'Nancy.Hosting.Self 2.0.0-clinteastwood' was restored using '.NETFramework,Version=v4.6.1'
instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully
compatible with your project.
I would have thought that the framework: net461 would suppress the reference for netcoreapp2.0?
The text was updated successfully, but these errors were encountered:
@forkiHere is a simple sample which shows this issue (error NU1202). A package should only be added in a higher framework, but it will be also added to the other ones:
VS 2017 15.6.4
R# 2017.3.5
Paket 5.153.2
The MaterialDesignThemes package should only be add for >= .NET45
I've had trouble getting conditional references in
paket.references
working in the context of .NET SDK-style projects. Roughly speaking I had this inpaket.references
:But I still get this error for when compiling
TargetFramework=netcoreapp2.0
for a multi-targeting project:I would have thought that the
framework: net461
would suppress the reference fornetcoreapp2.0
?The text was updated successfully, but these errors were encountered: