Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwplvx
dotnetCoreVue
提交
863b3ef9
D
dotnetCoreVue
项目概览
lwplvx
/
dotnetCoreVue
通知
4
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
代码片段
项目成员
Pages
D
dotnetCoreVue
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
863b3ef9
编写于
6月 01, 2021
作者:
lwplvx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update README.md
上级
fb357968
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
0 addition
and
71 deletion
+0
-71
README.md
README.md
+0
-71
未找到文件。
README.md
浏览文件 @
863b3ef9
...
@@ -6,74 +6,3 @@
...
@@ -6,74 +6,3 @@
1) 使用 httpvueload (生成环境不推荐)
1) 使用 httpvueload (生成环境不推荐)
2) 之前阅读过一篇博客,已经测试过了,尽快找处理,把示例代码写出来
2) 之前阅读过一篇博客,已经测试过了,尽快找处理,把示例代码写出来
This is a simple pipeline example for a .NET Core application, showing just
how easy it is to get up and running with .NET development using GitLab.
# Reference links
-
[
GitLab CI Documentation
](
https://docs.gitlab.com/ee/ci/
)
-
[
.NET Hello World tutorial
](
https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/
)
If you're new to .NET you'll want to check out the tutorial, but if you're
already a seasoned developer considering building your own .NET app with GitLab,
this should all look very familiar.
## What's contained in this project
The root of the repository contains the out of the
`dotnet new console`
command,
which generates a new console application that just prints out "Hello, World."
It's a simple example, but great for demonstrating how easy GitLab CI is to
use with .NET. Check out the
`Program.cs`
and
`dotnetcore.csproj`
files to
see how these work.
In addition to the .NET Core content, there is a ready-to-go
`.gitignore`
file
sourced from the the .NET Core
[
.gitignore
](
https://github.com/dotnet/core/blob/master/.gitignore
)
. This
will help keep your repository clean of build files and other configuration.
Finally, the
`.gitlab-ci.yml`
contains the configuration needed for GitLab
to build your code. Let's take a look, section by section.
First, we note that we want to use the official Microsoft .NET SDK image
to build our project.
```
image: microsoft/dotnet:latest
```
We're defining two stages here:
`build`
, and
`test`
. As your project grows
in complexity you can add more of these.
```
stages:
- build
- test
```
Next, we define our build job which simply runs the
`dotnet build`
command and
identifies the
`bin`
folder as the output directory. Anything in the
`bin`
folder
will be automatically handed off to future stages, and is also downloadable through
the web UI.
```
build:
stage: build
script:
- "dotnet build"
artifacts:
paths:
- bin/
```
Similar to the build step, we get our test output simply by running
`dotnet test`
.
```
test:
stage: test
script:
- "dotnet test"
```
This should be enough to get you started. There are many, many powerful options
for your
`.gitlab-ci.yml`
. You can read about them in our documentation
[
here
](
https://docs.gitlab.com/ee/ci/yaml/
)
.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录