■ 닷넷 어셈블리 2.0 버전을 닷넷 4.5 프로젝트에서 사용하는 방법을 보여준다.
1. c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe.config 파일에 노란색 마크 부분의 코드를 아래와 같이 추가한다.
▶ devenv.exe.config
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<?xml version="1.0"?> <configuration> ... <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> <supportedRuntime version="v2.0" /> </startup> <runtime> <NetFx40_LegacySecurityPolicy enabled="true" /> ... </runtime> ... <configuration> |
2. 프로젝트 app.config 파일에 노란색 마크 부분의 코드를 아래와 같이 추가한다.
▶ app.config
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<?xml version="1.0"?> <configuration> <runtime> <NetFx40_LegacySecurityPolicy enabled="true" /> ... </runtime> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> <supportedRuntime version="v2.0" /> </startup> </configuration> |