Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dotnet-cicd-demo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eoc-group
dotnet-cicd-demo
Commits
c4d51b79
Commit
c4d51b79
authored
Aug 20, 2025
by
shipengwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.aipark.com:eoc-group/dotnet-cicd-demo
parents
30fc80c1
1c7eb718
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
dotnet-tools.json
DotNetCicdDemo/.config/dotnet-tools.json
+14
-0
Program.cs
DotNetCicdDemo/Program.cs
+10
-3
No files found.
DotNetCicdDemo/.config/dotnet-tools.json
0 → 100644
View file @
c4d51b79
{
"version"
:
1
,
"isRoot"
:
true
,
"tools"
:
{
"dotnet-ef"
:
{
"version"
:
"9.0.8"
,
"commands"
:
[
"dotnet-ef"
],
"rollForward"
:
false
}
}
}
\ No newline at end of file
DotNetCicdDemo/Program.cs
View file @
c4d51b79
...
@@ -12,15 +12,22 @@ namespace DotNetCicdDemo
...
@@ -12,15 +12,22 @@ namespace DotNetCicdDemo
builder
.
Services
.
AddControllers
();
builder
.
Services
.
AddControllers
();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder
.
Services
.
AddEndpointsApiExplorer
();
builder
.
Services
.
AddEndpointsApiExplorer
();
builder
.
Services
.
AddSwaggerGen
();
builder
.
Services
.
AddSwaggerGen
(
option
=>
{
option
.
SwaggerDoc
(
"v1"
,
new
()
{
Title
=
"DotNetCicdDemo"
,
Version
=
"v1"
});
});
var
app
=
builder
.
Build
();
var
app
=
builder
.
Build
();
// Configure the HTTP request pipeline.
// Configure the HTTP request pipeline.
if
(
app
.
Environment
.
IsDevelopment
())
//
if (app.Environment.IsDevelopment())
{
{
app
.
UseSwagger
();
app
.
UseSwagger
();
app
.
UseSwaggerUI
();
app
.
UseSwaggerUI
(
options
=>
{
options
.
SwaggerEndpoint
(
"/swagger/v1/swagger.json"
,
"DotNetCicdDemo v1"
);
options
.
RoutePrefix
=
string
.
Empty
;
});
}
}
app
.
UseAuthorization
();
app
.
UseAuthorization
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment