-
Notifications
You must be signed in to change notification settings - Fork 526
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
bcl.targets is not compatible with Paket #604
Comments
what about backlisting these? |
I have never had anything but pain from bcl.targets, and I've never seen a failure caused by removing them. Even with Nuget they tend to break if you configure a non-standard package directory. |
would love to see a pull request which blacklists these targets files. |
@mavnn - they confuse the hell out of me too. A bit concerned about where this path will lead us down though. |
I made this up-for-grabs, so if anyone wants to take it.... Blacklist is found here: https://github.com/fsprojects/Paket/blob/master/src/Paket.Core/InstallModel.fs#L228 Sample for a test case: https://github.com/fsprojects/Paket/blob/master/tests/Paket.Tests/InstallModel/Xml/LibGit2Sharp.fs |
I cannot reproduce the build failures under VS. The Bcl targets tells me that adding the following property in the project would skip nuget validation:
|
@forki I'll take a stab at it. |
Can I get an option to turn off this feature (no automatic .props or .targets)? Like NuGet content support, this is a feature that I would like to turn off. I was very excited about it when came out in NuGet 2.5, but it doesn't work very well. The |
How about a feature to opt-out of automatic import of targets with syntax from #574?
|
I leave it to @forki to decide. I know the ms BCL is a special kind of crap in this respect. I haven't seen anything else that bothers me that much... I don't think it's a bad idea to disable autoimport though, could be useful for more scenarios, but unlike what @ctaggart suggested, I think it should be a paket.references things, just like copy_local is |
Note that you will need targets for things like XUnit test runner in future (that's what got this whole .targets malarky started). But I agree - this BCL stuff is just a world of pain. |
@damageboy I wouldn't bother with an embedded text file personally - just make an F# list of strings for the blacklist (perhaps as it's own .fs file). F# is lightweight enough to not have fluff get in the way, and we're not going to do "drop in" replacements of the file. |
Please start by extending the blacklist. I need to think about a good way But I think it's safe to say that everyone wants to disable the bcl stuff
|
Deleted previous comment - I hadn't refreshed the page from earlier to see that this issue is closed! I'd done a quick fix with a blacklist but obviously not needed now. |
The issue is not closed. We still need a fix, but we have a workaround. You can disable the targets - see #615 |
Doh my mistake! Saw the Closed icon for the linked issue In that case here is a quick fix for that with a blacklist I did to get it working for us locally: If that's any good and assuming @damageboy hasn't got something better in store then I can submit it as a PR. |
Actually that might do the trick for us, more practical than adding to all the individual references files. Especially when dealing with the Bcl.Build which is a transitive dependency. — On Tue, Feb 17, 2015 at 8:33 PM, Steffen Forkmann
|
I still think it's a very good idea to blacklist since the package is
|
Also keep an eye on #587 |
Cool just created a PR, might want to check I've done it right. |
so it's blacklisted and a streamlined |
If you reference any of the BCL nuget packages, they add a target (Microsoft.Bcl.Build.targets) to the project file. This in turn tries to validate package references by looking for, you guessed it - packages.config.
Not sure what the solution to this is but it leads to a build error and associated warnings.
The text was updated successfully, but these errors were encountered: