我已经在我的Raspberry Pi 3上安装了Mono(版本3.2.8(,以执行将文本文件上传到SharePoint的C#程序。 该程序使用名为Microsoft.SharePointOnline.CSOM的NuGet包。
我可以在我的Windows PC上执行该程序,但我不知道如何在Mono中安装该软件包以在那里执行它。
谁能帮我?
restore 命令 (NuGet CLI(
下载并安装包文件夹中缺少的任何包。
或
安装命令 (NuGet CLI(
使用指定的包源将包下载并安装到项目中,默认为当前文件夹。
例子:
nuget restore mySolution.sln
nuget install Microsoft.SharePointOnline.CSOM
- 安装 : https://learn.microsoft.com/en-us/nuget/tools/cli-ref-install
- 恢复:https://learn.microsoft.com/en-us/nuget/tools/cli-ref-restore
最新版本的 Mono 环境附带msbuild
可以恢复解决方案的依赖项(带有/r
或/restore
标志(:
$ msbuild solution.sln /restore
我在系统中使用了这个,其中命令whereis nuget
不返回任何内容(这意味着未安装nuget
(