TFS issues the following warning:
C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Microsoft.Common.targets (1605): between the processor architecture the built project "MSIL" and the processor architecture Help "C: \ Windows \ Microsoft.NET \ Framework64 \ v4. 0.30319 \ System.Data.dll "," AMD64 ". This mismatch can lead to runtime failures. Please take note of the change in the target processor architecture of your project through the configuration manager to match the processor architectures between your project and the links, or to depend on the link with the processor architecture that matches the target processor architecture of your project.
Both “Release” and “Debug” configurations are configured to use “Any CPU” as the active solution platform.
I took a copy of System.Data.dll into the TEMP folder and extracted information about this assembly through PowerShell:
function ScanAssembly($assemblyPath) { [reflection.assemblyname]::GetAssemblyName($assemblyPath) } $assemblyPath = "C:\TEMP\System.Data.dll" $assemblyInfo = ScanAssembly($assemblyPath); $assemblyInfo | fl;
I got the following output:
Name : System.Data Version : 4.0.0.0 CultureInfo : CultureName : CodeBase : file:///C:/TEMP/System.Data.dll EscapedCodeBase : file:///C:/TEMP/System.Data.dll ProcessorArchitecture : Amd64 ContentType : Default Flags : PublicKey HashAlgorithm : SHA1 VersionCompatibility : SameMachine KeyPair : FullName : System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=...
For some reason, ProcessorArchitecture is set to Amd64 for this assembly. I am confused why it is configured on Amd64 because I am running a 64-bit operating system on an Intel processor.
These warnings do not show traffic jams, but I'm struggling to understand why we see them. If I understand this correctly, the configuration is configured for any processor when one of the collections is compiled for Amd64, which means that it will no longer work on any CPU - it will only work on a 64-bit processor. Why System.Data.dll for Amd64 is built outside of me.
Thanks.
user338195
source share