See the nuget transitive package dependency rules.
https://devblogs.microsoft.com/nuget/introducing-transitive-dependencies-in-visual-studio/
note: you can control versions by explicitly specifying the version in the target project.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
We tried to release a container for the function app project in VS and found that some projects had no problems after compilation and packaging, but some projects would encounter errors when running after compilation and packaging.
“Method not found Void Azure Core TokenRequestContext”
The project with errors includes a main project and two test projects. After repeated checks, we confirmed that the current project contains multiple versions of the Azure Core dll in the built package, and the error was caused by calling an older version of the Azure Core dll.
Later, we tried again and found that we need to add a line of <ItemGroup> in the csproj of the test project to introduce the csproj of the main project. In the case of introduction, there will be no problem in compiling and publishing!
We confirmed that this issue occurs when using the sln project file to build a function app with multiple projects during publishing. We need to know if this is a bug? Or what suggestions does the development team have for this situation?
See the nuget transitive package dependency rules.
https://devblogs.microsoft.com/nuget/introducing-transitive-dependencies-in-visual-studio/
note: you can control versions by explicitly specifying the version in the target project.