Nuget does not update content files that are not included in the csproj file when installing a new version of the package

I made a nuget package for internal use that adds a dll and some javascript / css / html files.

The first time I install all the files, they are copied, but when I create a new version with updated content files, they are not updated.

In the installation log I get this when uninstalling the old version:

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...

And I get this when installing the new version:

'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'

I just want to indicate that these files are not in the csproj file, but they are only inside the folder. I tried to add them to the project file and everything will be updated.

Is there a way to force update these files without even adding them to the project?

+4
1

. , . Nuget . , . , FileConflictAction - , .

Update-Packate my.package -FileConflictAction Overwrite

, .

0

Source: https://habr.com/ru/post/1670080/


All Articles