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

后端 未结 8 1799
陌清茗
陌清茗 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:25

    It looks like this is possible whilst still using App_code, but I would either move this logic out to its own class library project or change the project type to Web Application, as Fredrik and Colin suggest.

    I always create my own ASP.NET projects as Web Application projects not Websites.

提交回复
热议问题