在C#中嵌入文件以粘贴到指定的文件夹中 [英] embed a file in C# to paste in the specified folder

查看:52
本文介绍了在C#中嵌入文件以粘贴到指定的文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是.net的新手

我想在C#应用程序中嵌入一个excel文件并将其粘贴到指定的文件夹.

I am new to .net

i want to embed a excel file in the C# application and paste it the specified folder.

推荐答案

使用应用程序资源.


只需将文件添加到您的项目中(将其移动到指定的文件夹之后).
在为应用程序创建安装安装时,请记住要包括将文件复制到指定文件夹位置的操作.
Just add the file to your project (after moving it to the specified folder).
Remember to include an action to copy this file to the specified folder location, when you create a setup installation for your application.


这篇关于在C#中嵌入文件以粘贴到指定的文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆