회사에서 받은 mqtt 연동 프로그램 Smart Connector가 IP 설정 및 포트 설정을 맞게 수정 했음에도 아예 실행이 안됐다.
발생한 에러들을 기록해놓고자 한다.
1. cache 파일
문제 해결에 성공한 다른 팀원 분께서 어느 부분이 문제인지 알려주셨다.
visual Studio로 실행하여 어느 부분에서 문제가 나는지 보면 build 자체에서 문제가 발생했다.
해당 cache 파일을 보면 위치가 다르다.
콘솔로 열어서 dotnet build로 다시 빌드해줘야 한다.
2. NETSDK1127
"The targeting pack Microsoft.NETCore.App is not installed"
구글링하여 아래 링크를 찾았다.
x64와 x86을 둘 다 설치하면 해결된다는 글이 있어 시도해보았다.
다운로드 링크
https://dotnet.microsoft.com/en-us/download/dotnet/6.0
다른 버전을 받았을 경우 default version 변경하는 법
https://dev.to/polarbit/how-to-change-default-dotnet-sdk-version-43ph
해당 오류는 해결되어 같은 경고문은 뜨지 않았다.
3. CS0246
'Newtonsoft' 형식 또는 네임스페이스 이름을 찾을 수 없습니다. using 지시문 또는 어셈블리 참조가 있는지 확인하세요.
그냥 새로 강사님이 주신 파일로 처음부터 x64 설치한 채로
비쥬얼 스튜디오 실행 - 옵션(nuget 설정 - 캐쉬 삭제 및 관리 형식 변경)
- powershell에서 dotnet build - 비쥬얼 스튜디오로 돌아와 program.cs를 빌드하니까 됐다.....
'공부 > Project' 카테고리의 다른 글
[Team 6] three.js 해당 모델 클릭 시 유튜브 스트리밍 embed 화면 표시 (store 이용) (0) | 2022.04.12 |
---|---|
[Team 6] 비전 인식 카메라 작동 안함 오류 (0) | 2022.03.28 |
[team 6] three.js 특정 오브젝트 클릭 이벤트 (클릭 감지) (0) | 2022.03.25 |
[Team 6] three.js Texture 구현 오류 해결 (0) | 2022.03.23 |
[Team 6] Edukit(공장 기기 kit) 디지털 트윈 프로젝트 (0) | 2022.03.23 |