2017-02-17 9 views
4

dllといくつかのjavascript/css/htmlファイルを追加する内部使用のためにナゲットパッケージを作成しました。パッケージの新しいバージョンをインストールするときにcsprojファイルに含まれていないコンテンツファイルを更新しないNuget

初めてインストールするとすべてのファイルがコピーされますが、更新されたコンテンツファイルで新しいバージョンを作成すると、これらのファイルは更新されません。私はちょうどことを指摘したい

'App_Plugins\NuTranslation\views\translationHistory.html' already exists. Skipping... 
'App_Plugins\NuTranslation\views\sendforTranslation.html' already exists. Skipping... 
'App_Plugins\NuTranslation\views\manualTranslationImport.html' already exists. Skipping... 
'App_Plugins\NuTranslation\package.manifest' already exists. Skipping... 
'App_Plugins\NuTranslation\js\translationHistory.controller.js' already exists. Skipping... 
'App_Plugins\NuTranslation\js\sendForTranslation.controller.js' already exists. Skipping... 
'App_Plugins\NuTranslation\js\manualTranslationImport.controller.js' already exists. Skipping... 
Added package 'Consilium.NuTranslation.0.1.4' to 'packages.config' 

Removed package 'Consilium.NuTranslation.0.1.1-alpha' from 'packages.config' 
Directory 'App_Plugins\NuTranslation\views' is not empty. Skipping... 
Directory 'App_Plugins\NuTranslation\js' is not empty. Skipping... 
Directory 'App_Plugins\NuTranslation' is not empty. Skipping... 
Directory 'App_Plugins\NuTranslation' is not empty. Skipping... 
Directory 'App_Plugins\NuTranslation' is not empty. Skipping... 

また、新しいバージョンをインストールしている間、私はこれを取得:インストール私は古いバージョンのアンインストール中にこれを取得するログに

これらのファイルはcsprojファイルには含まれていませんが、フォルダ内にあります。プロジェクトファイルに追加しようとしましたが、すべてが更新されました。

これらのファイルをプロジェクトに追加しなくても強制的に更新する方法はありますか?

答えて

0

私は同じ問題があります。オプションがないようです。 Nuget won't replace content filesrelated questionにいくつかのアイデアがあります。たとえば、FileConflictActionオプションを使用することができます。これは、プロジェクト内のコンテンツファイルを参照する場合にのみ機能します。

Update-Packate my.package -FileConflictAction Overwrite 

しかし、そのすべてのアイデアはあなたの場合ではないようです。

関連する問題