Repository navigation
Paket causes build warnings by adding references to NETStandard.Library #2852
Description
Activity
- changed the title
[-]Paket causes build warnings by adding implicit references to NETStandard.Library[/-][+]Paket causes build warnings by adding references to NETStandard.Library[/+]on Oct 18, 2017 Looks like this is .NET Command Line Tools (2.0.2) behaviour.
Will try to work aroundBTW: you commited 8MB version of paket into the repro. Usually you want to commit the bootstrapper renamed as paket.exe. Then it's only couple of KB
Thanks!
And yeah, I know. Simple dirty repro... didn't know you could rename the bootstrapper though, thanks for the tip.
https://fsprojects.github.io/Paket/bootstrapper.html#Magic-mode for more details
Reacted by Yaakovmhm for some reason this breaks VS integration. reverting for now
looks it wasn't the issue for broken VS integration
Wrong bisect?
no I don't really know yet. It's VS isn't really stable and therefore it's all manual testing..
- added a commit that references this issue
on Oct 18, 2017 This should still be open right?
Reacted by mdacws, Alex Justus and Adrián Montesinos GonzálezI thought we fixed that in the targets file?
26 remaining items
Sorry didn't notice your message.
Good news, no errors & i can see the nowarn in my paket props file.
Bad news, warning still shows in visual studio 🤦♂can you please remove the obj folder and delete the paket-files folder so that we test against freshly created obj?
i can see the nowarn in my paket props file.
didn't read that, So the nowarn did not help. can you please manually remove the condition from that property group?
adding
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>to my project file manually cleared the warningfrom https://github.com/dotnet/cli/issues/5346#issuecomment-276029481
manually updating paket.props file to have
<PropertyGroup Condition="($(DesignTimeBuild) == true)"> <DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences> </PropertyGroup>stops the warning showing...
ok since it's only about designtime we can use that for now. In Paket 6 we will revisit how to deal with Implicit references. They are pretty bad from package management standpoint....
Reacted by Chris Blythok 5.236.5 is out now
Should the paket props version number be bumped?
- In theory yes. But I don't think we need to force rebuild on everyone Chris Blyth <notifications@github.com> schrieb am Do., 21. Nov. 2019, 15:55:…Should the paket props version number be bumped? — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#2852?email_source=notifications&email_token=AAAOANCGNSE6RLRE5ADYSYTQU2OPBA5CNFSM4D7URXH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE2PZCY#issuecomment-557120651>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAOANDO4FGUSM7Y7FVWK6LQU2OPBANCNFSM4D7URXHQ> .Reacted by Chris Blyth
@forki that fixes some....but broke others...so i don't think having that property is a good idea :(
My hunch....just reset this and leave the warning in Visual studio....it's not the end of the world...
ok let's close it with manual workaround in csproj for people that want to get rid of it:
<PropertyGroup Condition="($(DesignTimeBuild) == true)"> <DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences> </PropertyGroup>we will revisit it soonish
sounds like a good idea to me :)
5.236.6 is on it's way and should restore original behaviour

Description
When adding Paket to a project which either:
the project immediately gets two build warnings. In a strict environment, this fails the build.
Repro steps
Please provide the steps required to reproduce the problem
dotnet restoredotnet build.Expected behavior
The build completes with zero warnings and zero errors.dotnet
Actual behavior
Known workarounds
netand/ornetcoreappexplicitly instead ofnetstandard, or<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>to the project file.Additional Information