为了安全起见,我需要更新Microsoft.Data.OData dll/package。不幸的是,我们不清楚为什么这个dll在我们的输出(bin文件夹)中。它是间接使用的,我们想知道它来自哪里。
这个包没有在csproj文件中引用 - 我们正在使用旧版csproj的<PackageReference>
。(<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
)
有办法找出这个dll(Microsoft.Data.OData.dll)来自哪里吗?我尝试过:
Searched in the code - it's not used by our code.
Checked the build log. I see this in the build log:
Primary reference "Microsoft.Data.OData, Version=5.8.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". 2> Resolved file path is "C:\Users\MyUsername\.nuget\packages\microsoft.data.odata\5.8.2\lib\net40\Microsoft.Data.OData.dll". 2> Reference found at search path location "{RawFileName}". 2> Found related file "C:\Users\MyUsername\.nuget\packages\microsoft.data.odata\5.8.2\lib\net40\Microsoft.Data.OData.xml". 2> Found satellite file "de\Microsoft.Data.OData.resources.dll". 2> Found satellite file "es\Microsoft.Data.OData.resources.dll". 2> Found satellite file "fr\Microsoft.Data.OData.resources.dll". 2> Found satellite file "it\Microsoft.Data.OData.resources.dll". 2> Found satellite file "ja\Microsoft.Data.OData.resources.dll". 2> Found satellite file "ko\Microsoft.Data.OData.resources.dll". 2> Found satellite file "ru\Microsoft.Data.OData.resources.dll". 2> Found satellite file "zh-Hans\Microsoft.Data.OData.resources.dll". 2> Found satellite file "zh-Hant\Microsoft.Data.OData.resources.dll". 2> This reference is not "CopyLocal" because at least one source item had "Private" set to "false" and no source items had "Private" set to "true". 2> The ImageRuntimeVersion for this reference is "v4.0.30319".
Checked the csproj (no packages.config here) - it's not there
Cleaned the bin folder and rebuild - it clear which project this dll is outputing, and it's there after rebuild.
是否有其他日志或工具可供使用?