Groups
Groups
Sign in
Groups
Groups
OpenTouryoProject
Conversations
About
Send feedback
Help
NuGetパッケージの保存先の変更について
2,758 views
Skip to first unread message
masatakashibuya
unread,
Jan 3, 2018, 11:41:51 PM
1/3/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OpenTouryoProject
お世話になっております。
NuGetで取得したパッケージの保存先について、
ソリューションファイルのあるフォルダのpackagesファルダに保存されますが
任意の場所に保存させることは可能でしょうか。
よろしくお願いします。
nishi.74322014
unread,
Jan 4, 2018, 10:39:15 AM
1/4/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OpenTouryoProject
すいません、1/8から出る予定でまだ休んでますが、軽く調べてみました。「packages 場所 nuget」でググると、「.net - NuGetのパッケージの場所を変更することは可能です?」(https://code.i-harness.com/ja/q/3e7357)というページがヒットしました。ココから、「nuget.config repositoryPath」と言うキーワードを抽出しググると、幾つか参考になりそうな情報が出てきます。「複数のソリューション間で NuGet のリポジトリを共有する」(http://blog.shibayan.jp/entry/20150417/1429269753)と言うページなどが参考になりそうです。
Message has been deleted
daisukenishino
unread,
Jan 9, 2018, 5:35:43 AM
1/9/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OpenTouryoProject
検証して、コチラにまとめてみました。
NuGet を使用したパッケージ管理 - マイクロソフト系技術情報 Wiki
> その他 > NuGetパッケージのDL先の変更
https://techinfoofmicrosofttech.osscons.jp/index.php?NuGet%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%9F%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E7%AE%A1%E7%90%86#w8b2cd27
ご確認ください。
以上 よろしくお願いします。
2018年1月5日金曜日 0時39分15秒 UTC+9 nishi.74322014:
masatakashibuya
unread,
Jan 11, 2018, 3:47:13 AM
1/11/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OpenTouryoProject
マイクロソフト系技術情報 Wikiに記載の方法で
パッケージのDL先を変更できることを確認しました。
ありがとうございました。
2018年1月9日火曜日 19時35分43秒 UTC+9 daisukenishino:
masatakashibuya
unread,
Jan 11, 2018, 8:51:51 PM
1/11/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OpenTouryoProject
nugetが必要なプロジェクトの.csprojには、
パッケージのDL先が<HintPath></HintPath>のタグに既に記述されている状態なため、
そのままでは、パッケージのDL先を変更した場合、参照できないようです。
例えば、以下のプロジェクトとか
https://github.com/OpenTouryoProject/OpenTouryo/blob/develop/root/programs/C%23/Frameworks/Infrastructure/ServiceInterface/ASPNETWebService/ASPNETWebService/ASPNETWebService.csproj#L87
.csprojの内容を変更したパッケージのDL先に修正すると参照できました。
一度削除してからnugetすると、nuget.configファイルの
repositoryPathが反映されるかもしれません。
2018年1月11日木曜日 17時47分13秒 UTC+9 masatakashibuya:
daisukenishino
unread,
Jan 11, 2018, 9:41:55 PM
1/11/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OpenTouryoProject
以下のトピックを追加しました。
https://techinfoofmicrosofttech.osscons.jp/index.php?NuGet%20
を使用したパッケージ管理#efc7fefa
NuGetは整合性が崩れることが多いです。
リストアでは参照設定の整合性は回復しないと思います。
対応としては、<HintPath>を直に修正するのでもイイと思いますが、
Uninstall-Package -> Install-Packageでも復旧するかと思います。
2018年1月12日金曜日 10時51分51秒 UTC+9 masatakashibuya:
Reply all
Reply to author
Forward
0 new messages