简体   繁体   English

如何在 ClickOnce 发布中包含 excel 文件(Visual Studio 2013)

[英]How to Include excel file in ClickOnce publish (Visual Studio 2013)

I'm trying to add Excel files in order to be published through ClickOnce .我正在尝试添加 Excel 文件以便通过 ClickOnce 发布。 I've added the files in the project and its properties already marked as build content and copy always.我已经在项目中添加了文件,并且它的属性已经标记为构建内容并始终复制。 However it is not being published through ClickOnce .但是,它不是通过 ClickOnce 发布的。

Could help me with this issue?可以帮我解决这个问题吗?

I thank the support .我感谢支持。

Here is the MSDN page for it这是它的 MSDN 页面

How to: Specify Which Files Are Published by ClickOnce如何:指定 ClickOnce 发布的文件

EDIT: I apologize.编辑:我很抱歉。 I did not see where you had tried this.我没有看到你在哪里试过这个。 My bad.我的错。 I'll run a quick test and see if I can recreate the problem.我将进行快速测试,看看是否可以重现问题。

Go to Project > Properties and then select the Publish tab at the bottom.转到Project > Properties ,然后选择底部的Publish选项卡。 From there select Application Files .从那里选择Application Files You should see your file.你应该看到你的文件。 Make sure that the options for the file are Include (Auto) , (Required) , and Include .确保文件的选项是Include (Auto)(Required)Include That is what got my file to be added.这就是要添加我的文件的原因。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM