Juan said:
re:
!> Do the folders need to be in the App_Code folder?
Yes, and the pointer to the folders needs to be in web.config.
re:
!> This isn't a Web Site project but a Class Library.
That's immaterial. It's still an ASP.NET Application.
re:
!> There is no web.config.
You'll have to create one, then, if you want to use more than one
language.
Just create it, even though Web Site Projects don't create one by
default. Web Site Projects can use web.config files, too.
re:
!> How would I do it with that type of project?
The same way I explained in my previous post.
I still can't seem to get my Class Library to work. No matter what I do, I
can't even get my C# programs to work.
I did what you suggested and added the App_Code folder with 2 folders (VB
and CS) below that and then putting my 2 vb files in the VB foldler and my 2
cs files in the CS folder.
It only compiled the VB files.
When I Updated my reference to this dll it showed the 2 classes from the 2
vb files but not the ones from the cs files.
It didn't matter where I put the vb files they got compiled and no matter
where I put the cs files they didn't.
I added the web.config file 1st as:
<configuration>
<system.web>
<compilation>
<codeSubDirectories>
<add directoryName="VB"/>
<add directoryName="CS"/>
</codeSubDirectories>
</compilation>
</system.web>
</configuration>
This didn't help. I then changed it by adding a defaultLanguage entry:
<configuration>
<system.web>
<compilation defaultLanguage="C#">
<codeSubDirectories>
<add directoryName="VB"/>
<add directoryName="CS"/>
</codeSubDirectories>
</compilation>
</system.web>
</configuration>
But still the cs files didn't compile but the vb files did.
Thanks,
Tom