发布解决方案时未包含的其他文件 [英] Additional files not included when publish solution

查看:146
本文介绍了发布解决方案时未包含的其他文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VB2005 Express。

我正在开发一个涉及Windows窗体应用程序和

类库项目(DLL)的解决方案。一些DLL需要额外的数据

文件或第三方dll。我可以在我的

项目中包含其他非源文件,但是当我发布

应用程序时,这些文件并不总是自动包含在内。似乎包含在主应用程序项目中的文件

,但是我在解决方案中添加到其他项目的任何文件都不会自动添加。



有没有办法在引用

另一个项目时指定这些文件是必需的?使用VB6中的安装和部署向导,我可以生成依赖文件,然后它会知道当它包含DLL

时,它还必须包含其他文件。 .NET中是否有相同的

功能?

如果没有,是否可以指定其他文件包含而不用

实际添加它们全部到主项目?

当我点击发布屏幕中的''应用程序文件''时,它允许我

选择排除已自动添加的文件,但是没有

选项,我可以看到它添加了尚未拾取的其他文件。

TIA

Phil

VB2005 Express.
I am developing a solution that involves a windows forms application and a
number of class library projects (DLLs). Some of the DLLs require extra data
files or third party dlls. I can include additional non-source files in my
projects, but these are not always automatically included when I publish the
application. It seems that files included in the main application project
are included, but any files that I add to other projects in the solution are
not automatically added.
Is there a way of specifying that these files are required when referencing
another project? Using the Setup and Deployment wizard in VB6 I could
generate dependency files, then it would know that when it included the DLL
it would also have to include the additional files. Is there an equivalent
feature in .NET?
If not, is it possible to specify additional files to include without
actually adding them all to the main project?
When I click on ''Application Files'' in the publish screen, it allows me to
choose to exclude files that have been automatically added, but there is no
option that I can see to add additional files that it has not picked up.
TIA
Phil

推荐答案

Phil,


请注意,Express版本最初是作为一个scolar工具创建的,但是
没有太多使用限制的
(我甚至不知道一个,但在我忘记之前

一些)。您无法将其与实例VB6进行比较,VB6实际上从未在
a免费版本中进行过比较。


您的要求是Visual Studio所有付费版本的标准。


Cor

Phil,

Be aware that the Express version is first created as a scolar tool, however
without much use restriction (I don''t even know one, however before I forget
some). You cannot compare that with by instance VB6, which never has been in
a free version.

What your ask is standard in all payed versions of Visual Studio.

Cor


嗨Phil,


基于我理解,你有一个WinForm应用程序和一些包含一些数据文件的
类Libray项目。当您通过ClickOnce发布

WinForm应用程序时,您希望在ClickOnce部署包中包含这些数据文件

的类库项目。如果我是基地的
,请随时告诉我。


如你所说,WinForm应用程序的数据文件将被包括在内在

自动生成ClickOnce部署包,但是

类库项目的数据文件不会包含在部署包中

自动,甚至没有办法将这些数据文件添加到

部署包中。


我会说上面的行为是设计的。如果我们想将

数据文件包含到ClickOnce部署包中,我们必须首先将它们添加到

WinForm应用程序项目中。


如果您有任何疑虑,请随时告诉我。


此致,

Linda Liu

Microsoft在线社区支持


================================ ==================

通过电子邮件收到我的帖子通知?请参阅
http://msdn.microsoft .com / subscripti ... ult.aspx#notif

ications。


注意:MSDN托管新闻组支持服务是针对非紧急问题

如果社区或微软支持人员在1个工作日内做出初步回复是可以接受的。请注意,每个跟随

的响应可能需要大约2个工作日作为支持

专业人士与您合作可能需要进一步调查才能达到

最有效的分辨率。该产品不适用于需要紧急,实时或基于电话的交互或复杂的b $ b项目分析和转储分析问题的情况。这种性质的问题最好通过联系

Microsoft客户支持服务(CSS)处理
href =http://msdn.microsoft.com/subscriptions/support/default.aspx\"target =_ blank> http://msdn.microsoft.com/subscripti...t/default.aspx

======================================== ==========


此帖子按原样提供。没有保证,也没有授予任何权利。

Hi Phil,

Based on my understanding, you have a WinForm application and a number of
Class Libray projects which contains some data files. When you publish the
WinForm application via ClickOnce, you''d like to include these data files
of the Class Library projects in the ClickOnce deployment package. If I''m
off base, please feel free to let me know.

As you said, the data files of the WinForm application would be included in
the ClickOnce deployment package automatically, but the data files of the
Class Library projects won''t be included in the deployment package
automatically and there''s even no way to add these data files to the
deployment package.

I would say that the above behavior is by design. If we''d like to include
data files to a ClickOnce deployment package, we have to add them to the
WinForm application project first.

If you have any concern, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


>
>

根据我的理解,你有一个WinForm应用程序和一些包含一些数据文件的
类Libray项目。当您通过ClickOnce发布

WinForm应用程序时,您希望在ClickOnce部署包中包含这些数据文件

的类库项目。如果我是基地的
,请随时告诉我。
Based on my understanding, you have a WinForm application and a number of
Class Libray projects which contains some data files. When you publish the
WinForm application via ClickOnce, you''d like to include these data files
of the Class Library projects in the ClickOnce deployment package. If I''m
off base, please feel free to let me know.



这就是准确的问题,是的。

That is the issue precisely, yes.


>

正如你所说的,WinForm应用程序的数据文件将自动包含在
的ClickOnce部署包中,但是
$ b $的数据文件b类库项目不会自动包含在部署包

中,甚至无法将这些数据文件添加到

部署包中。
>
As you said, the data files of the WinForm application would be included
in
the ClickOnce deployment package automatically, but the data files of the
Class Library projects won''t be included in the deployment package
automatically and there''s even no way to add these data files to the
deployment package.



正确。

Correct.


>

我会说上面的行为是设计的。
>
I would say that the above behavior is by design.



这对我来说似乎不太可能。

我可以理解,如果这只是因为一个错误而遗漏,或者是因为它

在设计过程中没有考虑过。我还可以理解是否在Express版本中故意禁用了这个

。但是,我不能相信任何人都会刻意做出这个不应该实施的决定,因为他们认为强迫开发者更加可取。

将所有数据文件放入一个项目中。

This seems unlikely to me.
I can understand if this is just an ommission due to a bug, or because it
was not thought about in the design process. I can also understand if this
has been deliberately disabled in the Express edition. However, I cannot
believe that anyone would deliberately make a decision that this should not
be implemented, because they think it is more desirable to force developers
to put all data files into a single project.


如果我们想要将
数据文件包含到ClickOnce中部署包,我们必须先将它们添加到

WinForm应用程序项目中。
If we''d like to include
data files to a ClickOnce deployment package, we have to add them to the
WinForm application project first.



这似乎是这种情况,显然是不可取的,特别是一旦你开始在解决方案中获得许多项目。

That appears to be the case, and is obviously undesirable, especially once
you start getting a number of projects within a solution.


>

如果您有任何疑虑,请随时告诉我。
>
If you have any concern, please feel free to let me know.



我担心如果这个功能不可用,我们基本上必须手动管理所有项目依赖项。这是一个倒退的步骤。在

VB6打包和展开向导中,有一种机制可以自动确定
为您确定这些依赖关系。此外,这意味着如果您有多个解决方案共享一个或多个项目,那么您必须在两个解决方案的主项目中包含所有这些相关文件。 ,

当他们明显合理的地方在实际项目中时,他们需要他们。这可能会导致大量不必要的文件重复,

并导致各种版本控制问题。

My concern is that if this feature is not available, we basically have to
manually manage all project dependencies. This is a backward step. In the
VB6 Package and Deployment wizard there was a mechanism to automatically
determine these dependencies for you. In addition it means that if you have
more than one solution sharing one or more projects, you would have to
include all these dependent files in the main project of both solutions,
when the obvious and logical place for them is in the actual projects that
need them. This could result in a lot of unnecessary duplication of files,
and lead to all sorts of version control issues.


>

此致,

Linda Liu

Microsoft在线社区支持
>
Sincerely,
Linda Liu
Microsoft Online Community Support



这篇关于发布解决方案时未包含的其他文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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