File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ dotnet tool install -g dotnet-cnblog
3333
3434![ 5b8aaca060f93] ( https://i.loli.net/2018/09/01/5b8aaca060f93.png )
3535
36- 原因是因为你没有配置path环境变量,我们可以查看下C:\Users\用户名.dotnet\tools 看看是否存在 dotnet-cnblog.exe。
36+ 原因是因为你没有配置path环境变量,我们可以查看下C:\Users\用户名\\ .dotnet\tools 看看是否存在 dotnet-cnblog.exe。
3737
38- ![ 5b8aad768599c] ( https://i.loli.net/2018/09/01 /5b8aad768599c.png)
38+ ![ 5b8aad768599c] ( assets /5b8aad768599c.png)
3939
4040如果存在就把这个目录添加到path环境变量即可。
4141
42- ![ 5b8aae1eba289] ( https://i.loli.net/2018/09/01 /5b8aae1eba289.png)
42+ ![ 5b8aae1eba289] ( assets /5b8aae1eba289.png)
4343
4444### 3.重置配置
4545
@@ -67,6 +67,12 @@ dotnet-cnblog <markdown文件路径>
6767
6868> 可能会引起杀毒软件误报,请允许。
6969
70+ 若出现 error NETSDK1053: Pack as tool does not support self contained. 则表示未完成,
71+
72+ > 解决办法:进入` 项目根目录\CnBlogPublishTool ` 文件夹,修改dotnet-cnblog.csproj,
73+ 删除`<PackAsTool> true</PackAsTool >`这条语句即可。
74+
75+
7076### 2.创建快捷方式
7177
7278进入 ` 项目根目录\Publish ` 文件夹,选中 ` dotnet-cnblog.exe ` ,【右键菜单】->【创建快捷方式】
Original file line number Diff line number Diff line change 11@ echo off
2- echo ×źą¸ˇ˘˛ź
2+ echo Mission preparation..
33
44dotnet publish ..\CnBlogPublishTool.sln -c Release -r win10-x86 -o ../Publish
55
6- echo ˇ˘˛źÍęłÉ
6+ echo mission accomplished!
77
88pause
9+
You can’t perform that action at this time.
0 commit comments