C#/.net/NuGet: nuget ããã¥ã¼ããã¯ãªã
- usagi.cs ; ãããã欲ããã¨æã£ãé©å½ãªæ©è½ãã¡ for C#
æ°å¹´ã¶ãã« C# ã®å®è£ ãæ¸ãã¦ãã¦ããã¶ããã¨ããããã¤ããã§æ¸ãã¦ã¿ãã©ã¤ãã©ãªã¼çãªããã®ãã¡æ´çãããããã©ãã¨ããããä»é±æ«ã¯ nuget ã¨ãããä½ãã® author ã¨ãã¦ã®ä½¿ãæ¹ã®åºæ¬ãè¦ããäºã«ããã®ã§ãã
Microsoft ã®è§£èª¬ã¯ã
- NuGet パッケージの公開方法 | Microsoft Docs
- ãããæåã«è¦ã¦ãã»ã¼ããããã±ã¼ã¸ããã¼ã«ã«ã§ãããããå¾ã¯ã¦ã§ããã©ã¦ã¶ã¼ã§ã¢ãããã¼ãããã®ãç°¡åãããããªï¼ã¨ããããèªååãããããããªããAPIãã¼ãã©ãã¨ãè¦ããæéãããã¼ðï¼ã
- Create and publish a .NET Standard package using Visual Studio on Windows | Microsoft Docs
- 次ã«ãããè¦ã¦ããã¡ã®ããã¸ã§ã¯ãã Package ã¿ããªããã(´ã»Ïã»ï½)ã
- Create and publish a .NET Framework package using Visual Studio on Windows | Microsoft Docs
- 次ã«ãããè¦ã¦ãã»ãã»ããã»ãª nuget ... ã³ãã³ãã©ãããâ¦ãã¹ãéã£ã¦ãªããNATIVEã®CMDã§ããã¹éã£ã¦ãªããããã¤ãã®ã¨ããã«å ¥ã£ã¦ããã ãã©æ¢ãã®ããã©ããã¼ã
- NuGet Gallery | Downloads
â¦ã¨ãããããããªãã nuget ããã±ã¼ã¸ãä½ã£ã¦ nuget.org 㧠owner ã¨ãã¦å ¬éãã¾ããã
æé ã¡ã¢:
- VS2017 Installer 㧠NuGet ã®â¦ã¨ãããã®ã¯å®éåé¡ã©ãã§ãããã®ã§æ°ã«ããªãäºã«ã㦠IDE ã¨ãããã¦ããã¼ã¦ã£ã©ã®äºã¯å¿ããã
- https://www.nuget.org/downloads ã§ææ°ã® Windows x86 Commandline ãæ¾ã£ã¦ãããããã»ã¨ã°ã¼ããã¦ã³ãã¼ãããããããä½é¨â¥
- nuget.exe ãã©ããé©å½ãªã¨ããã«ç½®ãã¦ã端æ«ã¨ãã¥ã¬ã¼ã¿ã¼çãªä½ããã nuget.exe ãå©ãã¦ãµãã³ãã³ããªã¹ããåºãåä½ã確èªã
- ç§ã¯ã©ãã Visual Studio ã§æ±ã
%HOMEPATH%/source/repos/
以ä¸ã® dir ã® .sln ã®ä¸ã® .csproj ã§ãã使ããªãã®ã§ããã®repos
ã«ã¨ããããã§ç½®ããã
- ç§ã¯ã©ãã Visual Studio ã§æ±ã
nuget.exe spec myproject.csproj
ãã¦myproject.nuspec
ãçæmyproject.nuspec
ãé©å½ã«ç·¨é- å
ã® Microsoft ã®æ¡å
ã«ããã°
licenseUrl
,projectUrl
,iconUrl
,releaseNotes
,tags
ãé©å½ã«æ¸ãã¦ããã¨ã®äºãªã®ã§æ¸ããã- å
ã« repos ã github ã¸å
¬éãã¦ãããã®ã§
licenseUrl
,projectUrl
ã¯ããã¸ãªã³ã¯ããã ãã«ãããï¼ãã ããã©ããlicenseUrl
ãããã±ã¼ã¸å¤ã®URLã«ããã®ã¯ nuget.org çã«ã¯ Deprecated ã§ã¯ããããããï¼ iconUrl
㯠Gravater ã®ç§ã®ãã¤ãã®ã¢ã¤ã³ã³ã® URL ã«ãã¦ãããã
- å
ã« repos ã github ã¸å
¬éãã¦ãããã®ã§
- å ãã¦ã
authors
,owners
ã¯$author$
ã®ã¾ã¾ã 㨠nuget.exe ãã¨ã©ã¼ã§æ»ã¬ã®ã§ãé©å½ã«å¤æ°ã§ã¯ãªãå¤ãæ¸ãã¦ããå¿ è¦ããã£ãã
- å
ã® Microsoft ã®æ¡å
ã«ããã°
nuget.exe pack
ãã¦myproject.x.y.z.nupkg
ãããããï¼myproject.nuspec
ããããã£ã¬ã¯ããªã¼ã§è¡ãï¼- ã¦ã§ããã©ã¦ã¶ã¼ã§ https://www.nuget.org/packages/manage/upload ãã
myproject.x.y.z.nupkg
ãã¢ãããã¼ããã - README ã URL ããååããã¦ã¼ã¶ã¼ã¤ã³ã¿ã¼ãã§ã¼ã¹ãããã®ã§ github ã® README.md ã® raw 㪠URL ãªã©è²¼ã£ã¦åãè¾¼ã¾ããã
âã¡ãªã¿ã«ã»ï½ã»
ânuget.exe
㯠WSL ã® zsh ããå©ãã¦ãåãã¾ã(ãâã)