Using NuGet with *.dll.refresh files in ASP.NET “Web Site” projects with Web Deployment Projects

后端 未结 3 571
面向向阳花
面向向阳花 2020-12-08 23:53

If you have an ASP.NET Web Site project type (the one without a proper .csproj or .vpproj project file and that is just a folder of loose files), then when you add a package

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 00:15

    -- EDIT -- See updated version of this solution above.

    Just add a class library project to the solution, and add a reference to the class library project to your website.

    Then, add the nuget in the class library, not the website project.

    When your website builds, it pulls in all the class libraries' dependencies in turn.

提交回复
热议问题