Instead of having the .cs files in the app_code folder, can I generate a .dll? Creating a project in order to generate the .dll is not difficult, but how should I proceed in order to use it in my webapp ... I know I need the .ddl in my bin directory, make a
reference to it, but I think I need some config added in the web.config ... any ideas?
You don't. If you add the DLL to the bin, and add a reference, you then just need to stick the appropriate "using" statement at the top of your client code anywhere to get the namespace, and you're good to go.
I guess i´m doing something wrong when generating the dll ... my using CSSFriendly; just don´t bring the classes??? any tutorials on how to accomplish it?
Download the
current release. Only the CSSFriendly.dll and CSSFriendlyAdapters.browser files are required.
Add a reference to the CSSFriendly.dll to your web application.
Add the CSSFriendlyAdapters.browser configuration file to your App_Browsers directory.
If you don't care about the source code, download the CSSFriendly.dll and CSSFriendlyAdapters.browser files and use those in your web site. If you do it this way you don't need the *.cs files -- their functionality is included
in the CSSFriendly.dll file (which is basically the compiled DLL of those files).
KenA
Member
562 Points
157 Posts
Generate a .dll file from the App_code/Adapters .cs files?
Apr 19, 2007 05:41 PM|LINK
shados
Star
12285 Points
2229 Posts
Re: Generate a .dll file from the App_code/Adapters .cs files?
Apr 19, 2007 06:07 PM|LINK
bdemarzo
Member
435 Points
168 Posts
Re: Generate a .dll file from the App_code/Adapters .cs files?
Apr 19, 2007 06:21 PM|LINK
The CodePlex version of the adapters can be compiled for this purpose. http://www.codeplex.com/cssfriendly
- blog: www.sidesofmarch.com
KenA
Member
562 Points
157 Posts
Re: Generate a .dll file from the App_code/Adapters .cs files?
Apr 19, 2007 06:24 PM|LINK
bdemarzo
Member
435 Points
168 Posts
Re: Generate a .dll file from the App_code/Adapters .cs files?
Apr 19, 2007 06:53 PM|LINK
Did you read and follow the implementation steps posted on http://www.codeplex.com/cssfriendly/?
- Download the
current release. Only the CSSFriendly.dll and CSSFriendlyAdapters.browser files are required.
- Add a reference to the CSSFriendly.dll to your web application.
- Add the CSSFriendlyAdapters.browser configuration file to your App_Browsers directory.
If you don't care about the source code, download the CSSFriendly.dll and CSSFriendlyAdapters.browser files and use those in your web site. If you do it this way you don't need the *.cs files -- their functionality is included in the CSSFriendly.dll file (which is basically the compiled DLL of those files).- blog: www.sidesofmarch.com