Project, so I understand about creating language subfolders under App_Code
folder.
However, I have another project that I converted from Website Project to Web
Application Project.
It is all VB except for one C# class.
Since there is no App_Code folder with WAP, is there any way to still
include the C# class in the same project or am I resigned to either
converting it to VB or making it a separate project and referencing it in
the WAP?
TIA
--
AG
Email: discuss at adhdata dot comre:
!Since there is no App_Code folder with WAP, is there
!any way to still include the C# class in the same project
See Rick Strahl's blog entry on this :
"WAP recognizes the special APP_CODE folder but requires
that it be renamed and so it creates a OLD_APP_CODE folder.
It creates the folder containing files marked with a Build Action - Content
(select the source code file and look at properties). The file should be
marked with Build Action Compile.
Without this none of your APP_CODE related code will be
recognized most likely causing big problems for compilation."
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"AG" <NOSPAMa-giam@.newsgroups.nospamwrote in message news:utM5M5MnHHA.3544@.TK2MSFTNGP03.phx.gbl...
Quote:
Originally Posted by
Thanks to help from this group I was able to use both VB and C# in a Website Project, so I
understand about creating language subfolders under App_Code folder.
>
However, I have another project that I converted from Website Project to Web Application Project.
It is all VB except for one C# class.
Since there is no App_Code folder with WAP, is there any way to still include the C# class in the
same project or am I resigned to either converting it to VB or making it a separate project and
referencing it in the WAP?
>
TIA
>
--
>
AG
Email: discuss at adhdata dot com
>
>
>
>
Hi AG,
The WAP compiles your code into a single assembly, therefore I don't think
it's possible to use mixed language in it. You can create a separate C#
class library and put the C# class there, then reference the class from
your web project.
Hope this helps.
Regards,
Walter Wang (wawang@.online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
That's what I thought, but just wanted to confirm.
One more question. Is there any performance difference in a site published
via the Website model vs WAP?
--
AG
Email: discuss at adhdata dot com
"Walter Wang [MSFT]" <wawang@.online.microsoft.comwrote in message
news:DrJRZNQnHHA.5168@.TK2MSFTNGHUB02.phx.gbl...
Quote:
Originally Posted by
Hi AG,
>
The WAP compiles your code into a single assembly, therefore I don't think
it's possible to use mixed language in it. You can create a separate C#
class library and put the C# class there, then reference the class from
your web project.
>
Hope this helps.
>
>
Regards,
Walter Wang (wawang@.online.microsoft.com, remove 'online.')
Microsoft Online Community Support
>
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
>
This posting is provided "AS IS" with no warranties, and confers no
rights.
>
Thanks for the quick reply, Juan.
I could not find his blog entry, but did find his white paper. It does
provide a link
http://webproject.scottgu.com/CShar...Migration2.aspx for
instructions to convert from Website to WAP. It happens to be the same
instructions I had used to do my conversion.
My site is already converted and works. I just had to put the C# class into
a separate class library and was wondering if there was another way to mix
languages.
--
AG
Email: discuss at adhdata dot com
"Juan T. Llibre" <nomailreplies@.nowhere.comwrote in message
news:eyJpu$MnHHA.3656@.TK2MSFTNGP06.phx.gbl...
Quote:
Originally Posted by
re:
!Since there is no App_Code folder with WAP, is there
!any way to still include the C# class in the same project
>
See Rick Strahl's blog entry on this :
>
"WAP recognizes the special APP_CODE folder but requires
that it be renamed and so it creates a OLD_APP_CODE folder.
>
It creates the folder containing files marked with a Build Action -
Content
(select the source code file and look at properties). The file should be
marked with Build Action - Compile.
>
Without this none of your APP_CODE related code will be
recognized most likely causing big problems for compilation."
>
>
>
>
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"AG" <NOSPAMa-giam@.newsgroups.nospamwrote in message
news:utM5M5MnHHA.3544@.TK2MSFTNGP03.phx.gbl...
Quote:
Originally Posted by
>Thanks to help from this group I was able to use both VB and C# in a
>Website Project, so I
>understand about creating language subfolders under App_Code folder.
>>
>However, I have another project that I converted from Website Project to
>Web Application Project.
>It is all VB except for one C# class.
>Since there is no App_Code folder with WAP, is there any way to still
>include the C# class in the
>same project or am I resigned to either converting it to VB or making it
>a separate project and
>referencing it in the WAP?
>>
>TIA
>>
>--
>>
>AG
>Email: discuss at adhdata dot com
>>
>>
>>
>>
>
>
>
I don't think there're any notable performance difference.
Regards,
Walter Wang (wawang@.online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Thank you.
--
AG
Email: discuss at adhdata dot com
"Walter Wang [MSFT]" <wawang@.online.microsoft.comwrote in message
news:HOXDbqanHHA.3352@.TK2MSFTNGHUB02.phx.gbl...
Quote:
Originally Posted by
>I don't think there're any notable performance difference.
>
>
Regards,
Walter Wang (wawang@.online.microsoft.com, remove 'online.')
Microsoft Online Community Support
>
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
>
This posting is provided "AS IS" with no warranties, and confers no
rights.
>
0 comments:
Post a Comment