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

NuGet packages for 1.1 cause MSBuild warnings #63

Closed
Spongman opened this issue Feb 20, 2018 · 3 comments
Closed

NuGet packages for 1.1 cause MSBuild warnings #63

Spongman opened this issue Feb 20, 2018 · 3 comments
Assignees
Labels
bug Something isn't working Component-Scripts
Milestone

Comments

@Spongman
Copy link

  • new c# .net 4.7 console app
  • install-package Fizzler.Systems.HtmlAgilityPack
  • build

C:\vs15\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1988,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Fizzler.Systems.HtmlAgilityPack, Version=1.1.21209.0, Culture=neutral, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

@atifaziz
Copy link
Owner

I don't have .NET 4.7 so is this something you can help investigate and find what's the issue with the packages. I'm afraid I don't have much to go by with given the steps you listed and the warning you quoted.

@atifaziz
Copy link
Owner

Looks like this may have nothing to do with which version of .NET Framework you target. I tried with 4.6 and got a warning as well, except it's a little different and complaining about Fizzler rather than Fizzler.Systems.HtmlAgilityPack:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2041,5): warning MSB3277: Found conflicts between different versions of "Fizzler" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.

I think the issue here might be that Fizzler.Systems.HtmlAgilityPack incorrectly lists Fizzler 1.0.0 as a dependency instead of 1.1.0:

<dependency id="Fizzler" version="1.0.0" />

A workaround is to explicitly upgrade Fizzler to 1.1.0 after installing Fizzler.Systems.HtmlAgilityPack. @Spongman, does that make the warning go away for you too?

@atifaziz atifaziz changed the title nuget packages are broken NuGet packages for 1.1 cause MSBuild warnings Feb 21, 2018
@atifaziz atifaziz added Component-Scripts bug Something isn't working labels Feb 23, 2018
@atifaziz atifaziz self-assigned this Feb 23, 2018
@atifaziz atifaziz added this to the 1.1.1 milestone Feb 23, 2018
@atifaziz
Copy link
Owner

Fixed by 17b6fb5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Component-Scripts
Projects
None yet
Development

No branches or pull requests

2 participants