更新2021/4/10 -- 1.10.0-rc2从Nuget安装和运行成功!
基本上只有标题,我能够安装和运行beta1,但rc1在DotnetToolSettings.xml不正确方面抛出了一些问题。在我看来,这两个包中的文件看起来是一样的,因此我不确定怎么办。输出比较两个文件和安装命令
john@bbox ~ (git)-[master] % cat .nuget/packages/clojure.main/1.10.0-rc1/tools/net5.0/any/DotnetToolSettings.xml
<?xml version="1.0" encoding="utf-8"?>
<DotNetCliTool Version="1">
<Commands>
<Command Name="Clojure.Main" EntryPoint="Clojure.Main.dll" Runner="dotnet" />
</Commands>
</DotNetCliTool>
john@bbox ~ (git)-[master] % cat .nuget/packages/clojure.main/1.10.0-beta1/tools/net5.0/any/DotnetToolSettings.xml
<?xml version="1.0" encoding="utf-8"?>
<DotNetCliTool Version="1">
<Commands>
<Command Name="Clojure.Main" EntryPoint="Clojure.Main.dll" Runner="dotnet" />
</Commands>
</DotNetCliTool>
john@bbox ~ (git)-[master] % dotnet tool install --global Clojure.Main --version 1.10.0-rc1
The settings file in the tool's NuGet package is invalid: Failed to retrieve tool configuration: Could not find a part of the path '/home/john/.dotnet/tools/.store/clojure.main/1.10.0-rc1/clojure.main/1.10.0-RC1/tools/net5.0/any/DotnetToolSettings.xml'.
Tool 'clojure.main' failed to install. Contact the tool author for assistance.
1 john@bbox ~ (git)-[master] % dotnet tool install --global Clojure.Main --version 1.10.0-beta1
Tools directory '/home/john/.dotnet/tools' is not currently on the PATH environment variable.
If you are using bash, you can add it to your profile by running the following command:
cat << \EOF >> ~/.bash_profile
# Add .NET Core SDK tools
export PATH="$PATH:/home/john/.dotnet/tools"
EOF
You can add it to the current session by running the following command:
export PATH="$PATH:/home/john/.dotnet/tools"
You can invoke the tool using the following command: Clojure.Main
Tool 'clojure.main' (version '1.10.0-beta1') was successfully installed.
版本信息
john@bbox ~ (git)-[master] % uname -a
Linux bbox 5.10.23-0-lts #1-Alpine SMP Mon, 15 Mar 2021 06:55:22 +0000 x86_64 Linux
john@bbox ~ (git)-[master] % dotnet --version
5.0.202
john@bbox ~ (git)-[master]
dotnet安装的输出来自dotnet core 3.1也是一样的。