ASP.NET - App_Code - Mix VB and C# in the same folder -
i use webforms type. , in website project, there pages using vb , c#... works!...
but problem is, can see on picture above, put 'cs' file , 'vb' file in 'app_code' folder, , there error appear.....
the files '/app_code/bsn3.class.cs' , '/app_code/assemblyinfo.vb' use different language, not allowed since need compiled together.
ok... solved problem..
in web.config file, add code
<compilation debug="false"> <codesubdirectories> <add directoryname="vbcode" /> <add directoryname="cscode" /> </codesubdirectories> </compilation>
and seperate vb , cs code 2 folder 'vbcode' , 'cscode' ..
so, this
Comments
Post a Comment