下載地址:https://www.nuget.org/downloadsapi
官網地址:https://www.nuget.org/服務器
建立一個Keyui
建立完成後點擊copy,保存起來。由於之後沒法再次複製密鑰!!!spa
nuspec是NuGet將項目打包成nupkg的輸入文件,能夠經過nuget spec
命令產生。code
NugetTest.nuspec
文件注意裏面的$xxx$
宏,這些就是引用了AssemblyInfo.cs
中的設置值,在編譯產生package的時候,會使用AssemblyInfo.cs
中的相應值進行替換。完成編輯後,咱們的nuspec文件以下:blog
總結:開發
1.經過命令 nuget setapikey xxxxx-xxxx-xxx-xxxx-xxxx-xxxx , 設置API Key;文檔
2.經過命令 nuget spec 生成xxxx.nuspec文件;get
3.經過命令 nuget pack xxxxxx.csproj 生成xxxx.nupkg文件;編譯
4.經過命令 nuget.exe push xxxxx.nupkg -Source https://www.nuget.org ,將NuGet發佈到服務器。
Everything1.4安裝包下載:https://pan.baidu.com/s/1e-fisP7y9bCWHsMsxamYAg 提取碼: w8su
參考文檔:https://docs.microsoft.com/zh-cn/nuget/quickstart/create-and-publish-a-package-using-the-dotnet-cli