简体   繁体   English

为Windows窗体应用程序创建依赖关系的推荐方法是什么?

[英]what is a recommended way to create a dependency for a windows forms application?

I want to associate a text or xml file with my project. 我想将文本或xml文件与我的项目相关联。 So when the applications gets published this text file should tag along. 因此,当应用程序发布时,该文本文件应随之标记。 How do you do this in visual studio? 您如何在Visual Studio中做到这一点?

Normally I'd just add the file to the project, set the Build Action to Content and Copy to Output directory to Always Copy . 通常,我只是将文件添加到项目中,将“ Build Action设置为Build Action ContentCopy to Output directory为“ Always Copy I don't normally publish projects though (I just copy the files) but I'd assume this would still be the correct way. 我通常不发布项目(我只是复制文件),但是我认为这仍然是正确的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 .NET Windows窗体应用程序更新自身的最佳方法是什么? - What's the best way for a .NET windows forms application to update itself? 将Windows窗体应用程序带到前台的“正确”方法是什么? - What is the “right” way to bring a Windows Forms Application to the foreground? 建议在C#应用程序中处理不同用户角色的方法是什么? - What is the recommended way to handle different user roles in a C# application? 创建多个(超过10个)BackgroundWorkers的推荐方法是什么? - What is the recommended way to create multiple (more than 10) BackgroundWorkers? 如何创建第一个Windows Forms DevExpress应用程序 - How to create first Windows Forms DevExpress application Windows窗体应用程序将创建另一个可执行文件 - Windows Forms application that will create another executable file 如何在Windows窗体应用程序中创建mailto链接 - How to create a mailto link in windows forms application 如何为Windows窗体应用程序创建安装程序和卸载程序 - How to create an installer and uninstaller for a Windows Forms application 在 Windows 窗体中绘制立方体的最简单方法是什么? - What is the easiest way to draw a cube in Windows Forms? 什么是在Windows窗体中进行验证的最佳方法 - What is the best way to do validations in windows forms
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM