更新 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也是一样的。