简体   繁体   English

我可以将文件从一个项目文件夹发送到C#Web中的另一个项目文件夹吗

[英]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.

相关问题 C#从项目文件夹加载文件 - C# Load file from project folder 如何将 VisualStudio 中的 C# 项目保存到单个.cs 文件而不是整个项目文件夹中? - How can I save a C# project in VisualStudio into a single .cs file instead of a whole project folder? 如何将文件保存到我的Project文件夹c# - How can I save files to my Project folder c# 从安装项目上的用户安装文件夹中打开文件-C# - Open file from user setup folder on setup project - C# 从C#项目中的文件夹获取许可证文件 - Get license file from a folder in C# project 我可以将 windows (.bat ) 文件放在 Visual Studio C# 项目的资源文件夹中吗? - Can I put a windows (.bat ) file inside the resources folder of a Visual studio C# project? 如何在C#中将文件从一个文件夹复制到另一个文件夹 - How to copy a file from one folder to other in c# 如何从字符串中获取文件夹(在我的项目中)? (C#) - How can I get a folder (in my project) from string? (C#) C#中Web文件夹中的文件计数 - File count from web folder in C# 我想从MVC操作执行一个预编译的Java类文件。该类文件与C#项目文件夹中放置在一起。 - i want to execute a precompiled java class file from a MVC action.the class file is placed with in the C# project folder.
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM