Tem
You can't do this. Rather, you need to create a library project and
place the class in there, then add the reference to the output in each
website.
--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com
"Tem" <tem...@yahoo.com> wrote in message
news:%23gjszYQ...@TK2MSFTNGP05.phx.gbl...
This is sometimes called a business layer....or comparable.
And then have both websites reference the same dll.
........
A website should be considered a presentation layer....and almost anything
you can push down a level will help you in the end.
You're fortunate in that with 2 presentation layers...you actually can
visualize the WHY you should push it down a little better than those who use
a single layer, with a single presentation layer.
Here is a sample of a layered application.
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!139.entry
"Tem" <tem...@yahoo.com> wrote in message
news:%23gjszYQ...@TK2MSFTNGP05.phx.gbl...
"sloan" <sl...@ipass.net> wrote in message
news:eLKOldQa...@TK2MSFTNGP04.phx.gbl...
so that new code files I create in my project will have my references
Have
using System;
using MyProject.MyClass;
for every new file
"Nicholas Paldino [.NET/C# MVP]" <m...@spam.guard.caspershouse.com> wrote in
message news:#jDR5bQa...@TK2MSFTNGP03.phx.gbl...
Well, you could create a new item template (if you google, you should be
able to find examples), but remember, you also have to set the reference in
your project, just adding the using statement isn't enough.
--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com
"Tem" <tem...@yahoo.com> wrote in message
news:%23B9nHlQ...@TK2MSFTNGP03.phx.gbl...
That's a reason for App_Code.
Usually....presentation specific code...but common among pages is a good
candidate here.
Google
N Layered Development
..
App_Code is ok for hobby'ist websites that don't need code reuse/sharing.
But not for anything beyond that.
"Tem" <tem...@yahoo.com> wrote in message
news:eUFT0jQa...@TK2MSFTNGP05.phx.gbl...
"sloan" <sl...@ipass.net> wrote in message
news:#N6YnsQa...@TK2MSFTNGP03.phx.gbl...
You should plan out your directory structure a little bit, and then make
this happen.
That's the point. Push code down into reusable components.
..
During development, your (multiple) solutions...can reference the "common"
project.
As in, "Add Existing Project". This will allow you to actually step thru
the debugger.
During deployment, or when you think the "common" assembly is really
good....you can build it...and then reference from the other projects...via
a hard file.
I would STRONGLY recommend this book:
http://www.amazon.com/Developing-Application-Frameworks-NET-Chen/dp/1590592883/
Not so much for the code samples (its 1.1 code) but for the lessons you'll
learn about reusing code.
Check ebay , because sometimes you can get a book like this for really
cheap.
"Tem" <tem...@yahoo.com> wrote in message
news:usEOT2Ra...@TK2MSFTNGP04.phx.gbl...
"sloan" <sl...@ipass.net> wrote in message
news:OYpkW8Ra...@TK2MSFTNGP04.phx.gbl...
Here is the setup I (my company) uses:
(compiled code..dll's only)
\DotNet\v20\Assemblies\Applications\
\DotNet\v20\Assemblies\Framework\ (nothing in here, just a holder for
release and beta folders)
\DotNet\v20\Assemblies\Framework\Release\
\DotNet\v20\Assemblies\Framework\Beta\
( SOURCE CODE)
\DotNet\v20\Source\Applications\
\DotNet\v20\Source\Framework\
\DotNet\v20\Source\ThirdParty\
Examples:
(SOURCE CODE examples)
\DotNet\v20\Source\Applications\NorthwindManager\
(This is an application...one of many probably)
(but all the source code for the NorthwindManager goes here)
\DotNet\v20\Source\Framework\MyCompany.DataAccessHelper\
(This is a framework piece...the source code).
(Notice I can reference it via other applications via a RELATIVE path if
need be)
\DotNet\v20\Source\ThirdParty\Wintellect\PowerCollections\
(This is where I put source code for projects I get from the web or
something)
(COMPILED CODE examples)
\DotNet\v20\Assemblies\Applications\NorthwindManager.dll
\DotNet\v20\Assemblies\Framework\Release\MyCompany.DataAccessHelper.dll
\DotNet\v20\Assemblies\Framework\Release\PowerCollections.dll
"Tem" <tem...@yahoo.com> wrote in message
news:uNYglqTa...@TK2MSFTNGP03.phx.gbl...