-
-
Notifications
You must be signed in to change notification settings - Fork 977
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
Build fails when returning type from PackageReference #2344
Comments
Is the generated code using a fully qualified type name (#1009) when referring to |
Yes, I checked the .notcs file, it's |
This bug is specific to <ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
<PackageReference Include="ProtoPromise" Version="2.5.4"/>
</ItemGroup> Here is the relevant fragment of "Newtonsoft.Json/13.0.3": {
"type": "package",
"compile": {
"lib/net6.0/Newtonsoft.Json.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net6.0/Newtonsoft.Json.dll": {
"related": ".xml"
}
}
},
"ProtoPromise/2.5.4": {
"type": "package",
"build": {
"build/net6.0/ProtoPromise.targets": {}
}
} As we can see, However,
With Conclusion: by default, BenchmarkDotNet correctly processes transitive dependencies for most NuGet packages. However, in some corner cases (as described above), the generated project doesn't inherit some of the references that are hidden for transitive resolving because of the |
If we are not able to find a more reliable solution we should mark it as by design and close. Thank you for a detailed investigation! |
I believe when #1403 is solved it will solve this as well. So it can be linked and closed at the same time as the other linked issues. |
Sounds reasonable to me 👍 |
I added a nuget package.
Created a benchmark to return a type from that package.
And the benchmark project build failed.
Is there any way to get it to work?
[Edit] Note: it works when I use the types in my benchmarks, but when I return a type, it breaks.
The text was updated successfully, but these errors were encountered: