将现有文件夹添加到 ClickOnce 安装中
我正在 VS2010 中进行开发,我想为我的应用程序创建 ClickOnce 安装。启动项目名为MyApp。 该解决方案还包含另一个项目,我们称之为 DataProject,其中有一个文件夹,其中包含安装所需的几个 xml 文件。
我无法添加现有文件夹(或者至少到目前为止还没有找到方法),并且我不想单独添加每个文件,因为如果将其他文件添加到原始目录中,我希望它们也已发布。
我想我正在寻找一个选项来添加完整的文件夹作为链接或类似的东西。有什么建议吗?
谢谢
I'm developing in VS2010 and I'd like to create a ClickOnce installation for my application. The startup project is called MyApp.
The solution also contains another project, let's call it DataProject, which has a folder in it with several xml files I need for the installation.
I can't add an existing folder (or at least, haven't found a way so far), and I don't want to add each file separately because if other files are added to the original directory, I'd like them published as well.
I suppose I'm looking for an option to add a complete folder as link or something similar. Any suggestions?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在VS2010中右键单击项目名称;
添加...新文件夹;
单击所选文件夹,然后添加...现有项目;
记住!您必须将“构建操作”(在文件属性中)更改为“内容”。
您的文件夹应包含通过 clickOnce 发布的解决方案中的所有文件。
此致
Right click on the project name in VS2010;
Add... New Folder;
Click on selected folder then Add... Existing item;
Remember! You must change the BUILD ACTION (in file properties) to CONTENT.
Your folder should include all files in published solution via clickOnce.
Best regards