File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed
todo-list/src/McpSamples.TodoList.HybridApp/Repositories Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 32
32
- name : Checkout repository
33
33
uses : actions/checkout@v4
34
34
35
+ - name : Set up .NET
36
+ uses : actions/setup-dotnet@v4
37
+ with :
38
+ dotnet-version : ' 9.x'
39
+
35
40
- name : Pull the latest metadata.json
36
41
if : inputs.image_name == 'awesome-copilot'
37
42
shell : bash
81
86
git push origin main
82
87
fi
83
88
89
+ - name : Build app
90
+ if : env.BUILD_IMAGE == 'true' || inputs.force == true
91
+ shell : bash
92
+ run : |
93
+ pushd ${{ inputs.image_name }}
94
+ dotnet restore && dotnet build
95
+ popd
96
+
84
97
- name : Check if Dockerfile exists
85
98
if : env.BUILD_IMAGE == 'true' || inputs.force == true
86
99
id : check-dockerfile
@@ -126,7 +139,7 @@ jobs:
126
139
with :
127
140
platforms : linux/amd64,linux/arm64
128
141
push : true
129
- context : ${{ github.workspace }}/${{ inputs.image_name }}
142
+ context : ${{ github.workspace }}
130
143
file : ${{ github.workspace }}/Dockerfile.${{ inputs.image_name }}
131
144
tags : ' ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.REPOSITORY }}/${{ inputs.image_name }}:latest'
132
145
labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 1
1
# Model Context Protocol .NET Samples
2
2
3
- [ ![ Azure AI Community Discord] ( https://dcbadge.vercel.app /api/server/ByRwuEEgH4 )] ( https://discord.com/invite/ByRwuEEgH4 )
3
+ [ ![ Azure AI Community Discord] ( https://dcbadge.limes.pink /api/server/ByRwuEEgH4 )] ( https://discord.com/invite/ByRwuEEgH4 )
4
4
5
5
## 🚀 Introduction
6
6
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public async Task<TodoItem> UpdateTodoItemAsync(TodoItem todoItem)
74
74
. ConfigureAwait ( false ) ;
75
75
if ( record is null )
76
76
{
77
- return null ;
77
+ return default ! ;
78
78
}
79
79
80
80
record . Text = todoItem . Text ;
@@ -95,7 +95,7 @@ public async Task<TodoItem> CompleteTodoItemAsync(TodoItem todoItem)
95
95
. ConfigureAwait ( false ) ;
96
96
if ( record is null )
97
97
{
98
- return null ;
98
+ return default ! ;
99
99
}
100
100
101
101
record . IsCompleted = todoItem . IsCompleted ;
@@ -116,7 +116,7 @@ public async Task<TodoItem> DeleteTodoItemAsync(int id)
116
116
. ConfigureAwait ( false ) ;
117
117
if ( record is null )
118
118
{
119
- return null ;
119
+ return default ! ;
120
120
}
121
121
122
122
await db . TodoItems . Where ( p => p . Id == id )
You can’t perform that action at this time.
0 commit comments