473,657 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\pro ject1
c:\solution\pro ject2
....

I put my main dll under c:\solution\bin , it works fine. When I compile
project1, I get a dll under c:\solution\pro ject1\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 1567
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****@affinis ys.com> wrote in message
news:eA******** ********@tk2msf tngp13.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\pro ject1
c:\solution\pro ject2
...

I put my main dll under c:\solution\bin , it works fine. When I compile
project1, I get a dll under c:\solution\pro ject1\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*******@hotm ail.nospam.com> wrote in message
news:CAeZc.2166 26$8_6.113751@a ttbi_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.

"Raghavendr a T V" <ra*****@hotmai l.com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
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****@affinis ys.com> wrote in message
news:eA******** ********@tk2msf tngp13.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\pro ject1
c:\solution\pro ject2
...

I put my main dll under c:\solution\bin , it works fine. When I compile
project1, I get a dll under c:\solution\pro ject1\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****@affinis ys.com> wrote in message
news:uv******** *****@tk2msftng p13.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*******@hotm ail.nospam.com> wrote in message
news:CAeZc.2166 26$8_6.113751@a ttbi_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
9910
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 want to obtain is not possible, but I would like the advice of more experienced python programmers. I am writing a relatively complex program in python that has now around 40 files.
121
10025
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 support IDEs are DreamWeaver 8 and Zend PHP Studio. DreamWeaver provides full support for Unicode. However, DreamWeaver is a web editor rather than a PHP IDE. It only supports basic IntelliSense (or code completion) and doesn't have anything...
7
1385
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 instrument, the other instruments may not be needed at all. So I was thinking if I want to write one executable file and put all instruments functions in it, I will have a huge file and user just needs 2% of that. So I thought that could be better to have...
2
1230
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 size 3.0MB. I m using VS.NET for development. I m thinking of using two projects (one for phase I and one for Phase II), but both the projects pointing to same physical directory. So
1
1644
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, data-logic - projects. When I create such solution as WebProject I wonder where to save core VB-Classes (for datalogic or Standard-Classes I use for my projects). Shall I save normal VB-Classes on the webserver too or just in normal...
5
276
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 c:\solution c:\solution\project1 c:\solution\project2 ....
3
1618
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 should post here. I was afraid to spam the group further with my silly questions, but I agree with his sentiment that this might benefit others, so here we are. My question regards the proper way to build the plugin projects. My host
4
1692
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: http://us2.php.net/manual/en/language.types.object.php In the sample code like this: <?php class foo {
2
2478
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 latter can be organized in packages, where appropriate. There's also a search path (sys.path) that you can modify in various ways (including from within the program) if you want to fetch modules from different locations.
0
8421
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8844
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8742
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8518
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8621
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.