「マイクロソフト系技術情報 Wiki」は、「Open棟梁Project」,「OSSコンソーシアム .NET開発基盤部会」によって運営されています。
「NuGetパッケージの開発と公開」を参照。
NuGetは、Symbol Packageを作成し、
「ソース サーバ」、「シンボル サーバ」に公開することもサポート
<files> <file src="Full\bin\Debug\*.dll" target="lib\net40" /> <file src="Full\bin\Debug\*.pdb" target="lib\net40" /> <file src="Silverlight\bin\Debug\*.dll" target="lib\sl40" /> <file src="Silverlight\bin\Debug\*.pdb" target="lib\sl40" /> <file src="**\*.cs" target="src" /> </files>
nuget pack [*.nuspecファイルパス] -Symbols
nuget pack [*.nuspecファイルパス]
nuget SetApiKey Your-API-Key
nuget push *.symbols.nupkg
nuget push *.symbols.nupkg -source https://nuget.smbsrc.net/
nuget push *.nupkg
nuget SetApiKey [ApiKey] nuget push *.nupkg -source https://www.nuget.org/ nuget push *.symbols.nupkg -source https://nuget.smbsrc.net/
※ https://nuget.smbsrc.net/ は、symbolsource.orgのプッシュURL。
nuget.exe による、*.symbols.nupkg の push の補足説明
以下の手順で、Primary packageのPDBとSymbol Packageを切替え可能にできる。
<files> <file src="Full\bin\Debug\*.dll" target="lib\net40" /> <file src="Full\bin\Debug\*.pdb" target="pdb\net40" /> ※ pdbの場所を外す。 </files>
<files> <file src="Full\bin\Debug\*.dll" target="lib\net40" /> <file src="Full\bin\Debug\*.pdb" target="lib\net40" /> <file src="**\*.cs" target="src" /> </files>
nuget pack [*.nuspecファイルパス]
nuget pack [*.nuspecファイルパス] -Symbols
※ このため、出力先を分けるといい。
必要に応じて、Push前の確認を行う。
nuget push *.nupkg -source https://www.nuget.org/
nuget push *.symbols.nupkg -source https://nuget.smbsrc.net/
※ Symbol PackageフォルダにPrimary packageは不要。
- http://referencesource.microsoft.com/symbols
- http://srv.symbolsource.org/pdb/Public
or the authenticated variant (see above)- http://srv.symbolsource.org/pdb/MyGet
or the authenticated variant (see above)- (other symbol servers with sources)
- http://msdl.microsoft.com/download/symbols
- (other symbol servers without sources)
(企業アカウントの場合)
プライベート・アカウントを登録するインスタンス
myget.orgとユーザーを共有するインスタンス。
Publicインスタンスから利用するリポジトリ
NuGet用のリポジトリ
OpenWrap?用のリポジトリ
Chocolatey用のリポジトリ
Windows用パッケージマネージャ
以下のようにsymbolsource.orgの各リポジトリは、
nuget.orgやchocolatey.orgなどギャラリーと統合できる。
(企業アカウントのリポジトリ、プライペート・アカウントのリポジトリ)
以下のようにmyget.orgギャラリーと統合できる(nuget.orgと異なる統合モデル)。
Your source for debugging symbols... and sources.
What does it do?
https://www.symbolsource.org/Public/
https://github.com/OpenTouryoProject/SampleProgram/tree/master/NuGet