ASP.NET Core용 Visual Studio의 개발 시간 IIS 지원
Windows Server에서 IIS를 통해 실행될 경우 ASP.NET Core 앱 디버그에 대한 지원을 확인해 보세요.
docs.microsoft.com
ASP.NET MVC 개발환경 셋팅 (이전 환경)
0. 도메인
http://juso.web.sphinx.com/
1. MVC 프로젝트 생성
프로젝트 루트 폴더 : D:\Workspace\Sphinx\Sphinx.Web.Juso
2. host 변조
C:\Windows\System32\drivers\etc\hosts
127.0.0.1 juso.web.Sphinx.com
3. IIS 셋팅
사이트 생성
풀 : .NET CLR 버전(C) : ".NET Framework v4.0.30319" 선택
4. 웹브라우저에서 실행
http://juso.web.Sphinx.com
5. 디버깅
Visual studio > 디버그 > 프로세스 연결 > juso.web.Sphinx.com 이름으로 되어 있는 IIS 선택후 진행
ASP.NET MVC CORE 개발 환경 셋팅 (신규 환경)
0. 도메인
http://juso.web.sphinx.com/
1. MVC 프로젝트 생성
프로젝트 루트 폴더 : D:\Workspace\Sphinx\Sphinx.Web.Juso
2. host 변조
C:\Windows\System32\drivers\etc\hosts
127.0.0.1 juso.web.Sphinx.com
3. IIS 셋팅
사이트 생성 및 바인딩
풀 : .NET CLR 버전(C) : "관리 코드 없음" 선택
4. Visual Studio 에서 프로젝트 마우스 오른쪽 클릭후 속성 > 디버그
프로필 : 새로만들기 후 "IIS" dlqfur
시작 : IIS 선택
환경 변수 : 추가 :
키 : ASPNETCORE_ENVIRONMENT
값 : Development
웹 서버 설정 : 앱 URL(P) : http://juso.web.Sphinx.com
5. 웹브라우저에서 실행
http://juso.web.Sphinx.com
6. 디버깅
Visual studio 상단 > 디버그를 IIS 선택 > IIS 클릭 또는 F5 클릭
추가 : 2022.11.11 - launch.settings.json
{
"profiles": {
"AspNetCore": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true,
"applicationUrl": "https://localhost:7049;http://localhost:5049"
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS": {
"commandName": "IIS",
"launchBrowser": true,
"launchUrl": "http://razor.sphinx.co.kr",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
},
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iis": {
"applicationUrl": "http://razor.sphinx.co.kr",
"sslPort": 0
}
}
}