Unit Testing ASP.net Web Site Project code stored in App_Code

后端 未结 8 1794
陌清茗
陌清茗 2020-12-01 01:43

I have an ASP.net Web Site Project (.net 3.5). Currently all of the non-code behind code files (including Linq2Sql stuff, data contexts, business logic, extension methods, e

8条回答
  •  执念已碎
    2020-12-01 02:27

    I had to change Brian White's solution by adding the PhysicalPath attribute. In addition I am not using the Default Web Site and had to change the VirtualPath property to my website name.

    
        
    
    

    The resulting dll will be at MySite_Precompiled\App_Code.dll

提交回复
热议问题