Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.03 KB

resolveassemblyreference-task-now-warns-of-dependencies-with-the-wrong-architecture.md

File metadata and controls

30 lines (20 loc) · 1.03 KB

ResolveAssemblyReference task now warns of dependencies with the wrong architecture

Scope

Minor

Version Introduced

4.5.1

Source Analyzer Status

Planned

Change Description

The task emits a warning, MSB3270, which indicates that a reference or any of its dependencies does not match the app's architecture. For example, this occurs if an app that was compiled with the AnyCPU option includes an x86 reference. Such a scenario could result in an app failure at run time (in this case, if the app is deployed as an x64 process).

  • Quirked
  • Build-time break

Recommended Action

There are two areas of impact:

  • Recompilation generates warnings that did not appear when the app was compiled under a previous version of MSBuild. However, because the warning identifies a possible source of runtime failure, it should be investigated and addressed.
  • If warnings are treated as errors, the app will fail to compile.

Affected APIs

  • Not detectable via API analysis

Category

MSBuild