3

我正在为多个 csproj 文件从 packages.config 迁移到 PackageReference 格式。恢复和构建成功,但有数百个警告。在我的 PackageReference 更改 csproj 文件之前,这些警告没有显示。如果您能指导解决这些问题,请告诉我。

警告 NETSDK1049:

Resolved file has a bad image, no metadata, or is otherwise inaccessible. An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) C:\Users\User_Name\.nuget\packages\Package_Name\Package_Version\lib\net45\AssemblyName.dll

警告 MSB3246:

Resolved file has a bad image, no metadata, or is otherwise inaccessible. Could not load file or assembly 'AssemblyName.dll' or one of its dependencies. The module was expected to contain an assembly manifest. 
4

0 回答 0