Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Portability Warnings

Portability warnings support portability across different operating systems.

Rule

Description

CA1900: Value type fields should be portable

This rule checks that structures that are declared by using an explicit layout attribute will align correctly when marshaled to unmanaged code on 64-bit operating systems.

CA1901: P/Invoke declarations should be portable

This rule evaluates the size of each parameter and the return value of a P/Invoke, and verifies that their size is correct when marshaled to unmanaged code on 32-bit and 64-bit operating systems.

CA1903: Use only API from targeted framework

A member or type is using a member or type that was introduced in a service pack that was not included together with the targeted framework of the project.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.