copying files will not give you reusability....make them in a classlibrary...build it and then take the DLL....and add it as reference to the project where you want to use this class...
I think you shoudn't copy .cs file from one to another project. Because may be it is not suitable for new project, but have a exception if this file have only function code (eg: return string, int, static, etc).
akpaga22
Member
181 Points
251 Posts
copy a .cs file from one project to another?
Apr 06, 2012 08:56 PM|LINK
How can i copy a .Cs file from one project to another with its resx file as well..Thank you..
basically its a report file whci i want to re sues in another solution.
santosh.jagd...
Star
7625 Points
1454 Posts
Re: copy a .cs file from one project to another?
Apr 07, 2012 04:33 AM|LINK
you just copy physically all required files and paste on location where you want.
come to the solution, select project & show all files. then include copied files into project
MCP
priyankmtr
Contributor
2626 Points
526 Posts
Re: copy a .cs file from one project to another?
Apr 07, 2012 07:11 AM|LINK
you can not reuse this like this. all you need to copy it physically.
(Mark as Answer If you find helpful)
ramiramilu
All-Star
95393 Points
14096 Posts
Re: copy a .cs file from one project to another?
Apr 07, 2012 09:05 AM|LINK
copying files will not give you reusability....make them in a classlibrary...build it and then take the DLL....and add it as reference to the project where you want to use this class...
Thanks,
JumpStart
NhanDT
Member
27 Points
18 Posts
Re: copy a .cs file from one project to another?
Apr 07, 2012 10:18 AM|LINK
I think you shoudn't copy .cs file from one to another project. Because may be it is not suitable for new project, but have a exception if this file have only function code (eg: return string, int, static, etc).
Hope it helps!