[英]Can I send file from one project folder to an other project folder in C# web
I have two projects in one solution. 一个解决方案中有两个项目。 I know how to copy files from client to server file system. 我知道如何将文件从客户端复制到服务器文件系统。 How can I copy files from client system using admin project
and send into client project
file system. 如何使用admin project
从客户端系统复制文件并将其发送到client project
文件系统。
In Solution Explorer you could 'Ctrl'-Drag the file to the name of the client project. 在解决方案资源管理器中,您可以“ Ctrl”-将文件拖动到客户端项目的名称。 If you intend to keep the same code in both projects, I would suggest creating a class library as 3rd project, putting the file there, and adding a reference to this class library in both the admin- and client-project. 如果您打算在两个项目中保留相同的代码,则建议创建一个作为第三个项目的类库,将文件放在其中,并在admin和client-project中都添加对该类库的引用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.