473,395 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

What is the right way to organize projects in .NET,? thanks!

I am using microsoft development enviroment 2003. I created a solution, and
have some projects, I put the root dir as my IIS home, and each project has
their own directory, so it is like
c:\solution
c:\solution\project1
c:\solution\project2
....

I put my main dll under c:\solution\bin, it works fine. When I compile
project1, I get a dll under c:\solution\project1\bin. But the dll of
project1 is used to handle root http request, I need it handle url like
http://mydomain/chat.aspx, not something like
http://mydomain/project1/chat.aspx, so I think I need put the project1 dll
into the bin under c:\solution, but I can not change the output path, it is
"bin\" now, everytime I changed it to "..\bin\", it always changed back
automatically, I remember I did do this successfully on my other projects, I
have no idea if this should work and why it doesn't work. Any suggestion to
my problem?
Thanks.
Jul 21 '05 #1
5 1557
Hi David,

Assume that you have 3 projects.
1) project 1 - DLL
2) project 2 - DLL
3) project 3 - Need reference to project 1 - DLL and project 2 - DLL

All you need to do is Add a reference (right click on references -> Add
references and select the project 1 dll and project2 dll from the Projects
Tab)in Project 3
Now your project 3 has references to project 1 dll and project 2 dll ..and
you need to just build the solutions which will automatically places the
latest project 1dll and project 2 dll
to your project 3 dll.

Hope this solves your problem.

Thanks
Raghavendra
"davidw" <da****@affinisys.com> wrote in message
news:eA****************@tk2msftngp13.phx.gbl...
I am using microsoft development enviroment 2003. I created a solution, and have some projects, I put the root dir as my IIS home, and each project has their own directory, so it is like
c:\solution
c:\solution\project1
c:\solution\project2
...

I put my main dll under c:\solution\bin, it works fine. When I compile
project1, I get a dll under c:\solution\project1\bin. But the dll of
project1 is used to handle root http request, I need it handle url like
http://mydomain/chat.aspx, not something like
http://mydomain/project1/chat.aspx, so I think I need put the project1 dll
into the bin under c:\solution, but I can not change the output path, it is "bin\" now, everytime I changed it to "..\bin\", it always changed back
automatically, I remember I did do this successfully on my other projects, I have no idea if this should work and why it doesn't work. Any suggestion to my problem?
Thanks.

Jul 21 '05 #2
Hi David,

You said:
I put the root dir as my IIS home <


I have never heard of anyone doing that before. I assume that means that
you have asked Visual Studio to place the solution into the
C:/inetpub/wwwroot folder.

That is not the most effective thing to do.

Set it to a normal folder, somewhere out from under IIS.

Then, when you create web app in Visual Studio, and reference the DLL from a
project that simply compiles to a DLL, then the DLL will automatically be
copied to the /bin directory of your web app, without you needing to worry
about it.

Just let Visual Studio handle the act of creating the web application.

--- Nick
Jul 21 '05 #3
Sorry, I didn't explain well, I did set it as normal folder.

My question is I put different projects under different sub-directory, I
think it is the right way since you don't want to mix files of different
projects together. Since they are under different sub-directories, they will
create bin under those sub-directories. Their dll would not go to the /bin
of my web app, they are one level down
"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message
news:CAeZc.216626$8_6.113751@attbi_s04...
Hi David,

You said:
I put the root dir as my IIS home <
I have never heard of anyone doing that before. I assume that means that
you have asked Visual Studio to place the solution into the
C:/inetpub/wwwroot folder.

That is not the most effective thing to do.

Set it to a normal folder, somewhere out from under IIS.

Then, when you create web app in Visual Studio, and reference the DLL from

a project that simply compiles to a DLL, then the DLL will automatically be
copied to the /bin directory of your web app, without you needing to worry
about it.

Just let Visual Studio handle the act of creating the web application.

--- Nick

Jul 21 '05 #4
I don;t have problem on reference, refrence doesn't care much where you put
it. I just have several dlls created by several projects, they will handle
requests like /chat, /image, things like that, but I could not find a way to
make the compiled dlls go to the bin under my web root.

"Raghavendra T V" <ra*****@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hi David,

Assume that you have 3 projects.
1) project 1 - DLL
2) project 2 - DLL
3) project 3 - Need reference to project 1 - DLL and project 2 - DLL

All you need to do is Add a reference (right click on references -> Add
references and select the project 1 dll and project2 dll from the Projects
Tab)in Project 3
Now your project 3 has references to project 1 dll and project 2 dll ..and
you need to just build the solutions which will automatically places the
latest project 1dll and project 2 dll
to your project 3 dll.

Hope this solves your problem.

Thanks
Raghavendra
"davidw" <da****@affinisys.com> wrote in message
news:eA****************@tk2msftngp13.phx.gbl...
I am using microsoft development enviroment 2003. I created a solution, and
have some projects, I put the root dir as my IIS home, and each project

has
their own directory, so it is like
c:\solution
c:\solution\project1
c:\solution\project2
...

I put my main dll under c:\solution\bin, it works fine. When I compile
project1, I get a dll under c:\solution\project1\bin. But the dll of
project1 is used to handle root http request, I need it handle url like
http://mydomain/chat.aspx, not something like
http://mydomain/project1/chat.aspx, so I think I need put the project1 dll into the bin under c:\solution, but I can not change the output path, it

is
"bin\" now, everytime I changed it to "..\bin\", it always changed back
automatically, I remember I did do this successfully on my other

projects, I
have no idea if this should work and why it doesn't work. Any suggestion

to
my problem?
Thanks.


Jul 21 '05 #5
OK, so let me get this straight...

You have a solution file in a normal folder. Neither the solution file, nor
any of its subdirectories are addressable from the web server at all.

Under the solution file, you have one web project and one or more DLL
projects.
Visual Studio creates seperate subdirectories for each DLL project. VS
created the web project under your IIS wwwroot folder and created the /bin
directory under that.

Am I still on the page with you? You didn't create the subdirectories...
you created the projects... VS created the subdirectories... right?
Also, you didn't create the web application in IIS... VS did that for you,
right?
(this would be normal).

Now, you open the solution, and in the web project, you make project
references to the DLL projects. Still with me?

And you are stating that when compile all of it, VS is not putting the DLLs
into the /bin folder of the web project? That's pretty odd, because VS has
never failed to do this for me. It simply copies the DLLs for you. By
default... no special settings are needed.

Now... what am I missing?

--- Nick

"davidw" <da****@affinisys.com> wrote in message
news:uv*************@tk2msftngp13.phx.gbl...
Sorry, I didn't explain well, I did set it as normal folder.

My question is I put different projects under different sub-directory, I
think it is the right way since you don't want to mix files of different
projects together. Since they are under different sub-directories, they will create bin under those sub-directories. Their dll would not go to the /bin
of my web app, they are one level down
"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message
news:CAeZc.216626$8_6.113751@attbi_s04...
Hi David,

You said:
I put the root dir as my IIS home <
I have never heard of anyone doing that before. I assume that means that you have asked Visual Studio to place the solution into the
C:/inetpub/wwwroot folder.

That is not the most effective thing to do.

Set it to a normal folder, somewhere out from under IIS.

Then, when you create web app in Visual Studio, and reference the DLL from a
project that simply compiles to a DLL, then the DLL will automatically

be copied to the /bin directory of your web app, without you needing to worry about it.

Just let Visual Studio handle the act of creating the web application.

--- Nick


Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: TokiDoki | last post by:
Hello there, I have been programming python for a little while, now. But as I am beginning to do more complex stuff, I am running into small organization problems. It is possible that what I...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
7
by: Adine | last post by:
Hi, I need to develop a program to control electronic instruments. We have so many different instruments but we can group them. Each group has some common functions. When user choose an...
2
by: Ravi Sankar | last post by:
Hi, I m in the process of starting phase II of my web application. My phase I application dll is 1.5MB already. So if i start to build phase II on top of phase I, i may end up with a dll of...
1
by: Greg Cyrus | last post by:
"How to organize a Web-Project with DLL-Projects and Forms-Authentication" Hi, i would like to create a multi-tier solution with many projects using ASP.NET such like presentation, biz-logic,...
5
by: davidw | last post by:
I am using microsoft development enviroment 2003. I created a solution, and have some projects, I put the root dir as my IIS home, and each project has their own directory, so it is like ...
3
by: Rune Jacobsen | last post by:
Hello all, I mailed our common hero and fellow newsgroupian Jon Skeet a question regarding his article on plugins at http://www.yoda.arachsys.com/csharp/plugin.html, and he suggested that I...
4
by: MikeB | last post by:
I'm looking at some code and found the -operator. In looking at the PHP manual at php.net, I can't find a description of what it does. I can find an example of where it is used, like on this page:...
2
by: Fredrik Lundh | last post by:
Dudeja, Rajat wrote: A Python program consists of a script file (the py file you run to start the program), and usually one or more additional module files (py files that you import). The...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.