-
Notifications
You must be signed in to change notification settings - Fork 767
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1065 from OfficeDev/v-harikrishnan/ImplementToolk…
…itCsharpSample_1 PR 2 - Implement toolkit csharp samples
- Loading branch information
Showing
47 changed files
with
1,121 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# TeamsFx files | ||
build | ||
AppManifest/build | ||
env/.env.*.user | ||
env/.env.local | ||
appsettings.Development.json | ||
.deployment | ||
|
||
# User-specific files | ||
*.user | ||
|
||
# Build results | ||
[Dd]ebug/ | ||
[Dd]ebugPublic/ | ||
[Rr]elease/ | ||
[Rr]eleases/ | ||
x64/ | ||
x86/ | ||
bld/ | ||
[Bb]in/ | ||
[Oo]bj/ | ||
[Ll]og/ | ||
|
||
# Notification local store | ||
.notification.localstore.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 18 additions & 17 deletions
35
samples/tab-channel-group/razor-csharp/Properties/launchSettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
{ | ||
"iisSettings": { | ||
"windowsAuthentication": false, | ||
"anonymousAuthentication": true, | ||
"iisExpress": { | ||
"applicationUrl": "http://localhost:3978", | ||
"sslPort": 0 | ||
} | ||
}, | ||
"profiles": { | ||
"IIS Express": { | ||
"commandName": "IISExpress", | ||
"launchBrowser": true, | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
} | ||
}, | ||
"ChannelGroupTab": { | ||
// Debug project within Teams | ||
"Microsoft Teams (browser)": { | ||
"commandName": "Project", | ||
"dotnetRunMessages": true, | ||
"launchBrowser": true, | ||
"launchUrl": "https://teams.microsoft.com/l/app/%TEAMSAPPID%?installAppPackage=true&webjoin=true&appTenantId=%TENANTID%&login_hint=%USERNAME%", | ||
"applicationUrl": "https://localhost:44302;http://localhost:2544", | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
}, | ||
"applicationUrl": "https://localhost:3979;http://localhost:3978" | ||
"hotReloadProfile": "aspnetcore" | ||
} | ||
//// Uncomment following profile to debug project only (without launching Teams) | ||
//, | ||
//"Start Project (not in Teams)": { | ||
// "commandName": "Project", | ||
// "dotnetRunMessages": true, | ||
// "launchBrowser": true, | ||
// "applicationUrl": "https://localhost:44302;http://localhost:2544", | ||
// "environmentVariables": { | ||
// "ASPNETCORE_ENVIRONMENT": "Development" | ||
// }, | ||
// "hotReloadProfile": "aspnetcore" | ||
//} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,8 @@ | |
</EmbeddedResource> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectCapability Include="TeamsFx" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This file includes environment variables that can be committed to git. It's gitignored by default because it represents your local development environment. | ||
|
||
# Built-in environment variables | ||
TEAMSFX_ENV=local | ||
|
||
# Generated during provision, you can also add your own variables. | ||
TEAMS_APP_ID= | ||
TAB_ENDPOINT= | ||
|
||
TEAMSFX_M365_USER_NAME= | ||
|
||
APP_NAME_SUFFIX= | ||
TAB_DOMAIN= | ||
TEAMS_APP_TENANT_ID= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# yaml-language-server: $schema=https://aka.ms/teams-toolkit/v1.2/yaml.schema.json | ||
# Visit https://aka.ms/teamsfx-v5.0-guide for details on this file | ||
# Visit https://aka.ms/teamsfx-actions for details on actions | ||
version: v1.2 | ||
|
||
additionalMetadata: | ||
sampleTag: Microsoft-Teams-Samples:tab-channel-group-razor-csharp | ||
|
||
provision: | ||
# Set TAB_DOMAIN and TAB_ENDPOINT for local launch | ||
- uses: script | ||
with: | ||
run: | ||
echo "::set-teamsfx-env TAB_DOMAIN=localhost:44302"; | ||
echo "::set-teamsfx-env TAB_ENDPOINT=https://localhost:44302"; | ||
|
||
# Creates a Teams app | ||
- uses: teamsApp/create | ||
with: | ||
# Teams app name | ||
name: tab-channel-group-${{TEAMSFX_ENV}} | ||
# Write the information of created resources into environment file for | ||
# the specified environment variable(s). | ||
writeToEnvironmentFile: | ||
teamsAppId: TEAMS_APP_ID | ||
|
||
# Validate using manifest schema | ||
- uses: teamsApp/validateManifest | ||
with: | ||
# Path to manifest template | ||
manifestPath: ./AppManifest/manifest.json | ||
# Build Teams app package with latest env value | ||
- uses: teamsApp/zipAppPackage | ||
with: | ||
# Path to manifest template | ||
manifestPath: ./AppManifest/manifest.json | ||
outputZipPath: ./AppManifest/build/AppManifest.${{TEAMSFX_ENV}}.zip | ||
outputJsonPath: ./AppManifest/build/manifest.${{TEAMSFX_ENV}}.json | ||
# Validate app package using validation rules | ||
- uses: teamsApp/validateAppPackage | ||
with: | ||
# Relative path to this file. This is the path for built zip file. | ||
appPackagePath: ./AppManifest/build/AppManifest.${{TEAMSFX_ENV}}.zip | ||
# Apply the Teams app manifest to an existing Teams app in | ||
# Teams Developer Portal. | ||
# Will use the app id in manifest file to determine which Teams app to update. | ||
- uses: teamsApp/update | ||
with: | ||
# Relative path to this file. This is the path for built zip file. | ||
appPackagePath: ./AppManifest/build/AppManifest.${{TEAMSFX_ENV}}.zip | ||
|
||
# Create or update debug profile in lauchsettings file | ||
- uses: file/createOrUpdateJsonFile | ||
with: | ||
target: ./Properties/launchSettings.json | ||
content: | ||
profiles: | ||
Microsoft Teams (browser): | ||
commandName: "Project" | ||
dotnetRunMessages: true | ||
launchBrowser: true | ||
launchUrl: "https://teams.microsoft.com/l/app/${{TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&appTenantId=${{TEAMS_APP_TENANT_ID}}&login_hint=${{TEAMSFX_M365_USER_NAME}}" | ||
applicationUrl: "https://localhost:44302;http://localhost:2544" | ||
environmentVariables: | ||
ASPNETCORE_ENVIRONMENT: "Development" | ||
hotReloadProfile: "aspnetcore" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# yaml-language-server: $schema=https://aka.ms/teams-toolkit/v1.2/yaml.schema.json | ||
# Visit https://aka.ms/teamsfx-v5.0-guide for details on this file | ||
# Visit https://aka.ms/teamsfx-actions for details on actions | ||
version: v1.2 | ||
|
||
additionalMetadata: | ||
sampleTag: Microsoft-Teams-Samples:tab-channel-group-razor-csharp | ||
|
||
environmentFolderPath: ./env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
samples/tab-conversations/csharp/TabConversation/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# TeamsFx files | ||
build | ||
AppManifest/build | ||
env/.env.*.user | ||
env/.env.local | ||
appsettings.Development.json | ||
.deployment | ||
|
||
# User-specific files | ||
*.user | ||
|
||
# Build results | ||
[Dd]ebug/ | ||
[Dd]ebugPublic/ | ||
[Rr]elease/ | ||
[Rr]eleases/ | ||
x64/ | ||
x86/ | ||
bld/ | ||
[Bb]in/ | ||
[Oo]bj/ | ||
[Ll]og/ | ||
|
||
# Notification local store | ||
.notification.localstore.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 26 additions & 27 deletions
53
samples/tab-conversations/csharp/TabConversation/Properties/launchSettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
{ | ||
"iisSettings": { | ||
"windowsAuthentication": false, | ||
"anonymousAuthentication": true, | ||
"iisExpress": { | ||
"applicationUrl": "http://localhost:3978", | ||
"sslPort": 0 | ||
} | ||
}, | ||
"profiles": { | ||
"IIS Express": { | ||
"commandName": "IISExpress", | ||
"launchBrowser": true, | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development", | ||
"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" | ||
} | ||
}, | ||
"TabConversation": { | ||
"commandName": "Project", | ||
"launchBrowser": true, | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development", | ||
"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" | ||
}, | ||
"applicationUrl": "http://localhost:5000" | ||
} | ||
} | ||
"profiles": { | ||
// Debug project within Teams | ||
"Microsoft Teams (browser)": { | ||
"commandName": "Project", | ||
"dotnetRunMessages": true, | ||
"launchBrowser": true, | ||
"launchUrl": "https://teams.microsoft.com/l/app/294d0749-3209-4cfe-9f85-2d0c99684e8d?installAppPackage=true&webjoin=true&appTenantId=72f988bf-86f1-41af-91ab-2d7cd011db47&login_hint=v-hrajandira@microsoft.com", | ||
"applicationUrl": "https://localhost:44302;http://localhost:2544", | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
}, | ||
"hotReloadProfile": "aspnetcore" | ||
} | ||
//// Uncomment following profile to debug project only (without launching Teams) | ||
//, | ||
//"Start Project (not in Teams)": { | ||
// "commandName": "Project", | ||
// "dotnetRunMessages": true, | ||
// "launchBrowser": true, | ||
// "applicationUrl": "https://localhost:44302;http://localhost:2544", | ||
// "environmentVariables": { | ||
// "ASPNETCORE_ENVIRONMENT": "Development" | ||
// }, | ||
// "hotReloadProfile": "aspnetcore" | ||
//} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
samples/tab-conversations/csharp/TabConversation/env/.env.local
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This file includes environment variables that can be committed to git. It's gitignored by default because it represents your local development environment. | ||
|
||
# Built-in environment variables | ||
TEAMSFX_ENV=local | ||
|
||
# Generated during provision, you can also add your own variables. | ||
TEAMS_APP_ID= | ||
TAB_ENDPOINT= | ||
|
||
APP_NAME_SUFFIX= | ||
TAB_DOMAIN= | ||
TEAMS_APP_TENANT_ID= | ||
TEAMSFX_M365_USER_NAME= |
Oops, something went wrong.