ASP.NET - App_Code - Mix VB and C# in the same folder -


enter image description here

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

enter image description here


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -