aspnet-snippets-sample
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.
파일 탐색기
최종 버전 다운로드 (.zip)- ask-a-question.md
- bug_report.md
- launch.json
- tasks.json
- README-de-de.md
- README-es-es.md
- README-fr-fr.md
- README-ja-jp.md
- README-pt-br.md
- README-ru-ru.md
- README-zh-cn.md
- README-zh-tw.md
- AlertExtensions.cs
- WithAlertResult.cs
- BaseController.cs
- CalendarController.cs
- ExtensionsController.cs
- FilesController.cs
- GroupsController.cs
- HomeController.cs
- MailController.cs
- TeamsController.cs
- UsersController.cs
- GraphClaimsPrincipalExtensions.cs
- GraphConstants.cs
- Alert.cs
- CalendarViewEvent.cs
- CalendarViewModel.cs
- DailyViewModel.cs
- ErrorViewModel.cs
- FilesViewDisplayModel.cs
- GroupsListDisplayModel.cs
- GroupWithPhoto.cs
- MailViewDisplayModel.cs
- NewEvent.cs
- RoamingSettings.cs
- RoamingSettingsDisplayModel.cs
- TeamDisplayModel.cs
- TeamMessageDisplayModel.cs
- TeamsListDisplayModel.cs
- UsersListDisplayModel.cs
- UserWithPhoto.cs
- launchSettings.json
- DateTimeOffsetTagHelper.cs
- _AttendeeListPartial.cshtml
- _AttendeeTimePartial.cshtml
- _DailyEventsPartial.cshtml
- _OrganizerTimePartial.cshtml
- Display.cshtml
- Index.cshtml
- New.cshtml
- Index.cshtml
- _FileListPartial.cshtml
- _FolderListPartial.cshtml
- _SharedItemListPartial.cshtml
- Display.cshtml
- Drive.cshtml
- Index.cshtml
- NewFile.cshtml
- NewFolder.cshtml
- SharedWithMe.cshtml
- UploadFile.cshtml
- _GroupListPartial.cshtml
- Create.cshtml
- Display.cshtml
- List.cshtml
- Index.cshtml
- _MessageListPartial.cshtml
- _RecipientListPartial.cshtml
- Display.cshtml
- Index.cshtml
- New.cshtml
- _AlertPartial.cshtml
- _AttachmentListPartial.cshtml
- _Layout.cshtml
- _LoginPartial.cshtml
- _ValidationScriptsPartial.cshtml
- Error.cshtml
- _AppListPartial.cshtml
- _ChannelListPartial.cshtml
- _NonTeamGroupListPartial.cshtml
- _TeamGroupListPartial.cshtml
- _TeamListPartial.cshtml
- Create.cshtml
- Display.cshtml
- List.cshtml
- PostMessageToChannel.cshtml
- _UserListPartial.cshtml
- AdminList.cshtml
- Create.cshtml
- Display.cshtml
- List.cshtml
- _ViewImports.cshtml
- _ViewStart.cshtml
- site.css
- no-profile-photo-lg.png
- no-profile-photo.png
- site.js
- bootstrap-grid.css
- bootstrap-grid.css.map
- bootstrap-grid.min.css
- bootstrap-grid.min.css.map
- bootstrap-reboot.css
- bootstrap-reboot.css.map
- bootstrap-reboot.min.css
- bootstrap-reboot.min.css.map
- bootstrap.css
- bootstrap.css.map
- bootstrap.min.css
- bootstrap.min.css.map
- bootstrap.bundle.js
- bootstrap.bundle.js.map
- bootstrap.bundle.min.js
- bootstrap.bundle.min.js.map
- bootstrap.js
- bootstrap.js.map
- bootstrap.min.js
- bootstrap.min.js.map
- LICENSE
- jquery.js
- jquery.min.js
- jquery.min.map
- LICENSE.txt
- additional-methods.js
- additional-methods.min.js
- jquery.validate.js
- jquery.validate.min.js
- LICENSE.md
- jquery.validate.unobtrusive.js
- jquery.validate.unobtrusive.min.js
- LICENSE.txt
- favicon.ico
- appsettings.Development.json
- appsettings.json
- libman.json
- Program.cs
- SnippetsApp.csproj
- Startup.cs
- .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
보통 추천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
Was this content helpful?
(0 ratings)
