원인
하나의 메서드 매개 변수에 지정된 값 요소가 두 개 이상 있습니다. 각 메서드 매개 변수에 지정된 값은 하나만 있을 수 있습니다.
규칙 설명
사용자 지정 특성 주석 파일은 지정된 항목에 특정 특성이 있는 것처럼 동작하도록 트리머에 지시하는 데 사용됩니다. 특성 주석은 트리머 동작에 영향을 미치는 특성을 추가하는 데만 사용할 수 있으며, 다른 모든 특성은 무시됩니다. 특성 주석을 통해 추가된 특성은 트리머 동작에만 영향을 주며 출력 어셈블리에 추가되지 않습니다.
지정된 method
에 동일한 name
값을 가진 parameter
요소가 두 개 이상 있습니다. parameter
의 모든 특성은 단일 요소에 배치해야 합니다.
예제
<!-- IL2024: More than one value specified for parameter 'parameter' of method 'method' -->
<linker>
<assembly fullname="MyAssembly">
<type fullname="MyType">
<method name="MyMethod">
<parameter name="methodParameter">
<attribute fullname="FirstAttribute"/>
</parameter>
<parameter name="methodParameter">
<attribute fullname="SecondAttribute"/>
</parameter>
</method>
</type>
</assembly>
</linker>
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET