-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Remove extraneous Bcl .targets reference #1100
Conversation
Looks like octokit@38ef630 introduced a nuget warning/import to the Bcl targets. Pretty sure that should only exist on Portable projects?
It's weird, because in 38ef630 I've now installed I think I need |
Maybe it only adds the references if it's a portable project? (I have no clue) |
So I'm pretty sure this is just the side-effect of me being lazy with updating packages in #1018. References have been a bit manual in the past so I updated the packages in 38ef630 - perhaps I didn't build-to-flush-the-changes-to-disk for that project (other projects have the same change). But even though no assemblies are referenced in the main project, it's still adding in the |
There's at least two assemblies in
But they're not referenced explicitly, so perhaps I'm just lucky here. |
Yeah I went on a rampage trying to fix this but wasn't sure about what this bcl thing is, and given the number of reference updates etc I ended up making, I didn't bother submitting the PR haha. Would be nice to get rid of the annoying errors |
@ryangribble which errors are we talking about? The |
@shiftkey He probably bumped into the same problem I had - every single project in the solution that references Octokit suddenly wanted to have the Bcl, Bcl.Build and Http packages added to them, which amounts to a ton of build errors and quite a bit of changes. OTOH, removing this extraneous .targets reference was so much simpler... |
Yeah, and I don't think we need those anymore, do we? We can choose to not support the platforms that required them. 😄 |
Ah, that issue. If that's the case then I'm 👍 for this change. In fact, we could probably do away with the new packages specified here - I think that's also to blame here, and the |
Not sure which ones you mean? (it doesn't actually link to a specific point in the diff probably because it's at the bottom of the page and can't scroll down more haha we should probably fix that at some point sigh anyways...) |
@shana it's meant to link to |
Do you mean you dont see the below errors @shiftkey ? They dont actually stop the build, but they do show up as errors (Im using VS2015 Update 1 incase that's related) Projects that reference Octokit.csproj say they want to have the Bcl.Build reference due to referencing the Octokit project that has that. Then other errors complain that Octokit.Tests project doesnt have a packages config file (it's named Often I seem to have the errors from all of the sub projects (eg Reactive, Portable, NetCore45, Mono) but then today when I went to grab this screenshot, it's only Octokit.Reactive that's doing it. Very odd! |
@shiftkey Ah, indeed. I can certainly 🔥 those as well! |
@ryangribble those errors are interesting. The first one is totally legit, and something we should be able to resolve here, but the second and third ones seem new, because they're not resolving the valid configuration files in that folder. Guess we should try and log that upstream at least while we're in here dealing with this. |
so do you not get those errors? What IDE are you using? And is upstream in this case Visual Studio itself or nuget or this Build.Bcl package? |
@ryangribble oh no, I get those errors. I just wasn't paying attention after updating. Anyway, the issue seems to be inside
It seems like this doesn't care that |
So far the best I've found is somebody with the exact same problem on SO, but they've just hacked/patched the Bcl.Build.targets file, to include the |
@shiftkey I've killed the nuget references too. FWIW, I don't get the Octokit.Tests errors because I'm only building Octokit and Octokit.Reactive on VS (I trust you to run the tests 😉 ) |
@shana that's fine |
@shana thanks for this! @ryangribble unfortunately this doesn't resolve the issues we're seeing. |
Remove extraneous Bcl .targets reference
Looks like 38ef630 introduced a nuget warning/import to the Bcl targets. Pretty sure that should only exist on Portable projects?