각 어셈블리에 대한 바인딩 정책 및 어셈블리 위치를 캡슐화합니다. 각 어셈블리에 대해 하나의 dependentAssembly 요소를 사용합니다.
<구성>
<런타임>
<assemblyBinding>
<dependentAssembly>
문법
<dependentAssembly>
</dependentAssembly>
특성 및 요소
다음의 섹션은 특성, 자식 요소 및 부모 요소에 대해 설명합니다.
Attributes
없음.
자식 요소
| 요소 | Description |
|---|---|
assemblyIdentity |
어셈블리에 대한 식별 정보를 포함합니다. 이 요소는 각 dependentAssembly 요소에 포함되어야 합니다. |
codeBase |
런타임이 컴퓨터에 설치되지 않은 경우 공유 어셈블리를 찾을 수 있는 위치를 지정합니다. |
bindingRedirect |
한 어셈블리 버전을 다른 어셈블리 버전으로 리디렉션합니다. |
publisherPolicy |
런타임이 이 어셈블리에 게시자 정책을 적용할지 여부를 지정합니다. |
부모 요소
| 요소 | Description |
|---|---|
assemblyBinding |
어셈블리 버전 리디렉션 및 어셈블리의 위치에 대한 정보를 포함합니다. |
configuration |
공용 언어 런타임 및 .NET Framework 애플리케이션에서 사용하는 모든 구성 파일의 루트 요소입니다. |
runtime |
어셈블리 바인딩 및 가비지 수집에 대한 정보를 포함합니다. |
예시
다음 예제에서는 두 어셈블리에 대 한 어셈블리 정보를 캡슐화하는 방법을 보여 줍니다.
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="myAssembly"
publicKeyToken="32ab4ba45e0a69a1"
culture="neutral" />
<!--Redirection and codeBase policy for myAssembly.-->
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="mySecondAssembly"
publicKeyToken="32ab4ba45e0a69a1"
culture="neutral" />
<!--Redirection and codeBase policy for mySecondAssembly.-->
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
참고하십시오
- 구성 파일을 사용하여 앱 구성
- 런타임 설정 스키마
- 구성 파일 스키마
- 어셈블리 버전 리디렉션
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET