Web Setup Project& Pdf文件 [英] Web Setup Project & Pdf files

查看:60
本文介绍了Web Setup Project& Pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在部署包含pdf文件的Web应用程序时遇到问题。

I'm having a problem deploying a web application that contain pdf files. 

不知何故,我的应用程序中的pdf文件未包含在Web安装项目中,因此当我在服务器上安装.msi文件时,我错过了pdf文件。

Somehow the pdf files in my application are not included in the web setup project so when I installed the .msi file on the server, I'm missing the pdf files.

如果我添加 - >文件 - >

If I do Add -> Files ->

将包含pdf文件,但不存储该文件的路径。我包含的所有pdf文件现在都存储在Web服务器的wwwroot目录中。

The pdf files will be included but the path of that file is not stored. All of the pdf files I included are now stored in the wwwroot directory on the webserver.

有没有办法在网页设置项目中包含这些pdf文件?

Is there a way to include these pdf files in the web setup project?

提前致谢

推荐答案

首先:此问题应发布到ASP.NET论坛

firstly: this question should be posted to the ASP.NET forums

www.asp.net

但我认为你的问题可能是你的pdf文件没有嵌入到项目中。
进入解决方案资源管理器,找到pdf,右键单击它并按属性,有一个名为"Buid Option"的选项。将其从"内容"更改为到"嵌入式资源"这应该将PDF文件嵌入到安装程序项目中。

but i think your problem may be that your pdf files are not embedded into the project.
Go into solution explorer, find the pdf, right click on it and press properties, there is an option called "Buid Option" Change it from "Content" to "Embedded Resource" and that should embed the PDF file into the installer Project.

HTH,
mcm

HTH,
mcm


这篇关于Web Setup Project& Pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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