Skip to content

change to .NET6 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
这是书中第一个示例。它使用 `wercker.yml` 文件控制 Wercker 自动构建的方式。每次签入代码之后,Wercker 就会构建项目,并部署到 docker hub。

可以在[此处](https://hub.docker.com/r/dotnetcoreserviceszh/hello-world/tags)查看此工程的 docker 镜像。

## 注释
由于测试时wercker已经注册不了(人机验证弹框不出),所以建议若有人重新按照此书进行学习,直接使用circleCI即可,circleCI在本次提交时(2022-01-25),配置文件默认路径为.circleci/config.yml,本处的circle.yml配置仍然会运行成功无需修改。而且由于jenkins和github action也可以支持了,建议尝试。
由于更新到.NET6,语法部分已经做了很大修改 为了与书本保持一致,只修改了docker及项目依赖包
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

多谢创建 PR!近期我未能测试这份代码,直接更新运行时参数后,原代码还能直接运行吗?

2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: mcr.microsoft.com/dotnet/core/sdk:2.2.300
- image: mcr.microsoft.com/dotnet/sdk:6.0
steps:
- checkout
- run:
Expand Down
2 changes: 1 addition & 1 deletion hello-world.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down