🧯WPF에서 Integration 오류인 경우

visual studio 2022 wpf .net standard 6.0 에서 작업을 하였습니다.

프로젝트 생성

Windows Forms 앱 선택

새 프로젝트 생성

첫 시작 화면

KIS-NAGT 설치를 합니다

파일경로: C:\Program Files (x86)\KIS-NAGT\AxInterop.KisPosAgentLib.dll

AxInterop.KisPosAgentLib.dll 를 참조해서 연결 해 줍니다.

AxInterop.KisPosAgentLib.dll 를 정상적으로 참조 화면

X86 빌드 화면

CS0234 'System.Windows' 네임스페이스에 'Forms' 형식 또는 네임스페이스 이름이 없습니다. 어셈블리 참조가 있는지 확인하세요.

System.Windows.Forms.dll 를 참조하는 방법

경로: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.7.2\System.Windows.Forms.dll

// Error CS0234	'System.Windows.Forms' 네임스페이스에 
'Integration' 형식 또는 네임스페이스 이름이 없습니다. 어셈블리 참조가 있는지 확인하세요.

프로젝트 파일 편집-> ItemGroup 태크 안에 FrameworkReference 추가 합니다.<FrameworkReference Include="Microsoft.WindowsDesktop.App" />

기존 샘플에서 활용하면 화면을 구성 해 줍니다.

axKisPosAgent1 선언

Button Click 연결하기

AGENT 체크 기능 추가

AGENT PAY 기능 추가 하기

Agent Stop 기능 추가

Last updated