Search code examples
asp.netasp.net-mvcnugetwebactivator

Nuget.exe not picking up App_Start folder


Has anyone experienced problems when NuGet pack command doesn't pick up the /App_Start or /content/App_Start folders where we put our .pp files for use with the WebActivator package? I have to open the package with Package Explorer and then manually add the desired folders and files, which is troublesome.


Solution

  • As dfowler suggests, it only includes files that are in the project. In the project, try clicking View All Files, and then include the relevant .pp file, with a build action of 'Content'.

    As an alternative, you can explicitly list those files in the nuspec file and they will be included.