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

后端 未结 3 574
面向向阳花
面向向阳花 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-08 23:59

    This is based on GC.'s solution above. Add a class library (csproj) and reference that class library in the website project. Add the nuget packages to the class library. In the class library, actually reference the nuget packages in some class file. Maybe create a throwaway instance or something. You can use any class that's contained in the package. This forces the .dll to be copied to the Bin directory in the web site project.

提交回复
热议问题