473,725 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dumb question: how to add a new project using the same existing folder?

I would like to add a new VB.NET project using the same folder being used by
another project so that I can share several forms already creaded by the
other project. However, .NET created a new folder using whatever project
name I supplied.
Is there a work around for this?

Thanks

Bill
Nov 23 '05 #1
2 2224
So, first of all, VS projects treat files in their directories as belonging to them, and for this and other reasons (for example, handling output directories) putting two project files in the same directory is not recommended.

You can still add files from anyplace on your drive into your project simply by using "Add Existing Item."

However, the truly elegant way to reuse code is to take those commonly-used forms (and whatever else code is common) and place it all in a Class Library project which any other project can reference.

--Matt Gertz--*
VB Compiler Dev Lead

-----Original Message-----
From: Bill Nguyen
Posted At: Monday, November 21, 2005 11:58 AM
Posted To: microsoft.publi c.dotnet.langua ges.vb
Conversation: Dumb question: how to add a new project using the same existing folder?
Subject: Dumb question: how to add a new project using the same existing folder?
I would like to add a new VB.NET project using the same folder being used by
another project so that I can share several forms already creaded by the
other project. However, .NET created a new folder using whatever project
name I supplied.
Is there a work around for this?

Thanks

Bill
Nov 23 '05 #2
Thanks for your response, Matt.

Bill
<Ma***********@ feedback.micros oft.com> wrote in message
news:Ok******** ******@TK2MSFTN GP10.phx.gbl...
So, first of all, VS projects treat files in their directories as
belonging to them, and for this and other reasons (for example, handling
output directories) putting two project files in the same directory is not
recommended.

You can still add files from anyplace on your drive into your project
simply by using "Add Existing Item."

However, the truly elegant way to reuse code is to take those
commonly-used forms (and whatever else code is common) and place it all in
a Class Library project which any other project can reference.

--Matt Gertz--*
VB Compiler Dev Lead

-----Original Message-----
From: Bill Nguyen
Posted At: Monday, November 21, 2005 11:58 AM
Posted To: microsoft.publi c.dotnet.langua ges.vb
Conversation: Dumb question: how to add a new project using the same
existing folder?
Subject: Dumb question: how to add a new project using the same existing
folder?
I would like to add a new VB.NET project using the same folder being used
by
another project so that I can share several forms already creaded by the
other project. However, .NET created a new folder using whatever project
name I supplied.
Is there a work around for this?

Thanks

Bill

Nov 23 '05 #3

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

Similar topics

3
1489
by: JV | last post by:
I'm trying to understand how ASP.NET creates web folders when it creates a new ASP.NET project. I am experienced with DotNet development, but not an expert on how IIS works. Or, this may be a question about FP Server Extensions..... When you create a web project in the default way, VS.NET has no trouble browsing for files. However, I like to keep all of my projects under a folder structure like C:\PROJECTS\ with a subfolder for each...
10
3470
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read somewhere that each folder under the "web site" is compiled in separate assembly. I however, did not find that the "web site" creation in vs.net 2005 created any AssemblyInfo.cs file.
1
1255
by: Bob Dufour | last post by:
I created a form for enetering values in lookup tables (eg Phone Types) in a project. The form uses a SQLdataAdapter and works fine in project A. In another solution - Project B- I want to reuse the same form. It will look in the same database as it does in project A. If I go in poroject B an add the form as an existing Item from the folder in project A as soon as I add the existing item to project B I get 3 errors in the task lisdt...
3
1267
by: John Dann | last post by:
Is there any recommended way of creating a new version of an existing project inVB.Net? Or maybe an add-in that facilitates this process? Like most people I guess, I tend to develop projects in stages. When I've got the code working for a certain notional version say v0.4, I want to freeze that and keep the existing code intact before starting work on the next phase that will add further functionality and result in eg v0.5. Or maybe I'm...
11
1454
by: A.M-SG | last post by:
Hi, I understand that be default VS2005 uses the ASP.NET development server to run and test ASP.NET applications. Is it possible that we use IIS for ASP.NET application debugging in new IDE environment?
1
1000
by: jhcorey | last post by:
Alledgedly I have some experience, but somehow I'm drawing a blank on this. In VS2005 I would like to create a solution with two projects (one is a web site). I work with these all the time, but now I can't figure out how to do this. Right now, if I look at my .sln files in my folder, some have a strange icon and I can't start them by double-clicking. I can no longer open the solution I had with two projects. TIA,
2
2058
by: Rob Dob | last post by:
Hi, How do I go about installing another Web Site Project inside my existing VS2005 website project. I currently have both a forum WSP and my main WSP application within the same solution. Both compile and run without error. However they are separate applications and I would like to have them together in order to make use of my masterpages, and share controls between. Do I need to combine the web.config files? I figured I would just...
3
1724
by: ºa¤Ö | last post by:
We are developing ASP.NET web application and using Visual source safe (VSS) to control our source code We developed a user control and it will been used by different project. I know there have a function like sharing in VSS, which means you can link the file in different project and once you updated that file in either project, that file in other projects, which used that file, will been updated automatically, too. On the other hand,...
14
2037
by: Siv | last post by:
hi, I am converting an application that writes to an Excel spreadsheet and the code trips the "option Strict" that I would like on because the parser says "option Strict On disallows late binding", I am struggling to understand why I am tripping this error. This is the code that causes the problems: XLApp.Goto("MonthTitleTL") 'Goes to bookmark in sheet r = XLApp.ActiveCell.Row 'sets variable r equal
0
8888
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
9401
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
9257
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
9176
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
8097
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
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
3221
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
2635
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.