You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We like to move from NuGet v2 (packages.config) to NuGet v3 (project.json). But after a investigation we have a showstopper. We use a template NuGet package (on our own private NuGet feed). This template NuGet package is installed one time on setup of the project (will never be updated in the project, and we make project specific changes on the template NuGet files after install of the package). With NuGet v3 the files (.pp, *.cshtml,.js,.css, *.jpg,.less) in the NuGet package are not added as a reference in the .csproj file.
Is there a possibility to automatically add file references from a NuGet v3 package to .csproj file? Or maybe in the future? With other NuGet v3 packages it is a good idea that the files not included are in the .csproj file (to prevent merge conflict by update of the NuGet package).
The text was updated successfully, but these errors were encountered:
if the files are never changed you can do that. You need to put the files in the contentfiles section instead of content.
At the moment these files do not show up in the tree (but are included), we are working on making them visible in the next version of visual studio. #3683 will resolve this issue going forward.
@karann-msft I can't find a good document on the docs site pointing to content files at the moment. Can you point to one?
@WimBoom feel free to continue the discussion here, I'm closing because I don't think there is any actual further work other than the already tracked item. I can always be wrong, so feel free to keep the discussion flowing.
We like to move from NuGet v2 (packages.config) to NuGet v3 (project.json). But after a investigation we have a showstopper. We use a template NuGet package (on our own private NuGet feed). This template NuGet package is installed one time on setup of the project (will never be updated in the project, and we make project specific changes on the template NuGet files after install of the package). With NuGet v3 the files (.pp, *.cshtml,.js,.css, *.jpg,.less) in the NuGet package are not added as a reference in the .csproj file.
Is there a possibility to automatically add file references from a NuGet v3 package to .csproj file? Or maybe in the future? With other NuGet v3 packages it is a good idea that the files not included are in the .csproj file (to prevent merge conflict by update of the NuGet package).
The text was updated successfully, but these errors were encountered: