aspnet-snippets-sample

(★ 196)

A repository of code snippets that use Microsoft Graph to perform common tasks such as sending email, managing groups, and other activities from an ASP.NET Core MVC app. This sample uses the Microsoft Graph .NET Client Library to work with data, and the Microsoft Identity Web Library for authentication on the Microsoft identity platform v2.0 endpoint.

  • .gitattributes
  • .gitignore
  • aspnet-snippets-sample.yml
  • CODE_OF_CONDUCT.md
  • LICENSE
  • README.md
  • SECURITY.md

# 설치 가이드

1. 코드 내려받기
git clone https://github.com/microsoftgraph/aspnet-snippets-sample

깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.

cd aspnet-snippets-sample

방금 내려받은 프로젝트 폴더 안으로 이동합니다.

2. .NET

보통 추천
사전 준비물
  • Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
  • .NET SDK dotnet 명령어를 쓰기 위한 SDK입니다.
dotnet restore

프로젝트에 필요한 패키지를 내려받습니다.

dotnet user-secrets init

이 명령어를 터미널에 그대로 입력해 실행하세요.

dotnet user-secrets set "AzureAd:ClientId" "YOUR_APP_ID"

이 명령어를 터미널에 그대로 입력해 실행하세요.

dotnet user-secrets set "AzureAd:ClientSecret" "YOUR_APP_SECRET"

이 명령어를 터미널에 그대로 입력해 실행하세요.

- From your CLI: `dotnet run`

프로젝트를 빌드하고 바로 실행합니다.

dotnet run 실행 후 터미널에 나타나는 안내 메시지나 주소를 확인하세요.

이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.

// repository documentation