I'm relatively new to the .cs world. I would like to have some "shared" .cs
files, which several solutions can use. I don't want to place these in a
..dll, I simply want them included into various applications. I have tried
several methods, but most have failed. The most obvious way (I thought) was
to place the .cs files in a parent folder (maybe called "shared"), and then
simply drag-n-drop the files into the "Solution Explorer" (files list) --
But, this actually copies the files into the folder where the solution
exists.
Is there some way to have a folder with many .cs files in it, and have those
..cs files be included in several solutions?
Any suggestions, pointers concepts, ideas?
Thanks
DanB
The only idea I currently have is as follows:
1) Have a main project folder: "C:\Project s\"
2) Place the solution files for every project in this folder (this includes:
..sln, .slu, .csproj, .csproj.user)
(Note: This seems like a huge pain. Every project solution files are in
the same folder! Yuck!)
project1.*
project2.*
project3.*
...
3) Each project would have a folder for the project files:
"C:\Projects\pr oject1"
Form1.cs
App.ico
bin\
...
4) Have a "shared" folder: "C:\Projects\Sh ared"
Shared.cs
OtherShared.cs
...
5) Now, all the projects can include the shared .cs files, and only have
*one* copy of them also. 2 3165
There was a discussion on this subject a little while back. http://www.google.ca/groups?hl=en&lr...TNGP10.phx.gbl
--
Tim Wilson
..Net Compact Framework MVP
"Dan Baker" <dbmail> wrote in message
news:uo******** ******@tk2msftn gp13.phx.gbl... I'm relatively new to the .cs world. I would like to have some "shared"
..cs files, which several solutions can use. I don't want to place these in a .dll, I simply want them included into various applications. I have tried several methods, but most have failed. The most obvious way (I thought)
was to place the .cs files in a parent folder (maybe called "shared"), and
then simply drag-n-drop the files into the "Solution Explorer" (files list) -- But, this actually copies the files into the folder where the solution exists.
Is there some way to have a folder with many .cs files in it, and have
those .cs files be included in several solutions?
Any suggestions, pointers concepts, ideas? Thanks DanB
The only idea I currently have is as follows: 1) Have a main project folder: "C:\Project s\" 2) Place the solution files for every project in this folder (this
includes: .sln, .slu, .csproj, .csproj.user) (Note: This seems like a huge pain. Every project solution files are
in the same folder! Yuck!) project1.* project2.* project3.* ... 3) Each project would have a folder for the project files: "C:\Projects\pr oject1" Form1.cs App.ico bin\ ... 4) Have a "shared" folder: "C:\Projects\Sh ared" Shared.cs OtherShared.cs ... 5) Now, all the projects can include the shared .cs files, and only have *one* copy of them also.
Fantastic!
Thank you * 1Gig.
DanB
The part from the discussion I was looking for I copied below:
"When you add the code file to the project make sure that you specify it as
a
"link file". So in the "Add Existing Item" dialog, after you select the
DM.cs file, select the drop down arrow on the "Open" button and then select
"Link File". The file will now appear in the Solution Explorer, under the
appropriate project, with a code file icon that looks like it has a little
shortcut image over top of it."
"Tim Wilson" <TIM(UNDERSCORE )WILSON(AT)ROGE RS(PERIOD)COM> wrote in message
news:eV******** ******@TK2MSFTN GP15.phx.gbl... There was a discussion on this subject a little while back. http://www.google.ca/groups?hl=en&lr...TNGP10.phx.gbl
-- Tim Wilson .Net Compact Framework MVP
"Dan Baker" <dbmail> wrote in message news:uo******** ******@tk2msftn gp13.phx.gbl... I'm relatively new to the .cs world. I would like to have some "shared" .cs files, which several solutions can use. I don't want to place these in a .dll, I simply want them included into various applications. I have tried several methods, but most have failed. The most obvious way (I thought) was to place the .cs files in a parent folder (maybe called "shared"), and then simply drag-n-drop the files into the "Solution Explorer" (files list) -- But, this actually copies the files into the folder where the solution exists.
Is there some way to have a folder with many .cs files in it, and have those .cs files be included in several solutions?
Any suggestions, pointers concepts, ideas? Thanks DanB
The only idea I currently have is as follows: 1) Have a main project folder: "C:\Project s\" 2) Place the solution files for every project in this folder (this includes: .sln, .slu, .csproj, .csproj.user) (Note: This seems like a huge pain. Every project solution files are in the same folder! Yuck!) project1.* project2.* project3.* ... 3) Each project would have a folder for the project files: "C:\Projects\pr oject1" Form1.cs App.ico bin\ ... 4) Have a "shared" folder: "C:\Projects\Sh ared" Shared.cs OtherShared.cs ... 5) Now, all the projects can include the shared .cs files, and only have *one* copy of them also.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Eliezer Figueroa |
last post by:
Managing Multiple Excel incoming files?
I have this situation. I have a client which have several locations they
work primary with excel forms and they are thinking in doing reports with
them. What they want is to import those Excel files into SQL Server for
later using crystal reports or maybe asp.net for reporting. Those files
will come every week from diferent locations then go to SQL Server and then
they should be stored in a folder...
|
by: \A_Michigan_User\ |
last post by:
Ok, I give up.
I need to #include the same 1 file (IncludeThis.asp) into 3 different asp
files.
1> C:\MyDir\ThisFile.asp
2> D:\MyDir\AASubSub\ThatFile.asp
3> E:\MyDir\CCSub\DDSubSub\AnotherFile.asp
On another server... those same 3 files... need to include
|
by: Corey Burnett |
last post by:
I have a client that has a split database (front-end/back-end). They
are also using Access security - MDW file. The front end MDE file,
the back end MDB file, and the MDW file are all located on a shared
folder on the file server. They have two populations of users - local
and remote. *ALL* users currently get to the system via a Citrix
login. They log in to Citrix and get a Citrix desktop. Then they
start the application via a...
|
by: Brian |
last post by:
I need to import data from 720 csv files into an Access database so I can do
some editing prior to loading into a SQL Server. These files came from data
output from a mainframe on a monthly basis. There are 15 files created each
month with each file containing specific data.
What I started to do is store the files by year and then by month so I new
when the data is based on. I have linked the table to the database and them
append the...
|
by: Invalidlastname |
last post by:
Hi,
We developed some assemblies which use EnterpriseServices queued components.
In order to use EnterpriseServices, these assemblies need to be installed
into GAC. I used the pre-build and post-build events to automate GAC
installation processes and the asp.net application has "copy to local" set
to false for the references of these shared assemblies.
However, every time we made the changes to the shared assemblies, we had to
restart...
| |
by: John K. |
last post by:
Hi
I was wondering if it's possible to use the WebRequest class to access a file on windows shared folder with authentication? If yes, what would the syntax be? I've tried to look this up in the references available but to no avail
Also, is it safer (better practise) in an LAN environment to use HTTP requests to access shared files (via ASP.NET) rather than UNC file shares
TIA
Regards
John
|
by: Apprentice |
last post by:
Hi there,
Is there a way in which I can specify at runtime to an application
the locations of shared dynamic libraries on which it depends? I do
not want to use LD_LIBRARY_PATH or other LD constructs.
My Shared libraries can be placed any place on the system by the end
user and I would like to use shared libraries from that location as
specified by user in a config file or as command line arguments .
I needed this, since I want my...
|
by: esha |
last post by:
I'm learning WEB site stuff with C# and have a question.
In order to produce precompiled application (dlls and required for a real
hosting files) it's not enough to build the solution. It must be published.
This process will create necessery files.
I used to keep all data (including all VS projects) outside of my primary
partition. I'm using Symantec Ghost to create an image of my working primary
partition. In case I get some problem...
|
by: DragonShade |
last post by:
To be honest, I'm not sure if this is a .NET issue, some configuration on a PC, or a setting in a database but here goes:
Environment (have NO control over): XP (London & Tokyo),.NET 2.0 C#, 2 text files from different sources, 1 database (in Tokyo).
Working on GUI application (to be run in Tokyo) and Server exe (either in London or Tokyo).
Application works with strings which contain both English and Japanese (typically english word...
|
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...
|
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...
| |
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,...
|
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...
|
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();...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |