【发布时间】:2023-03-19 06:31:01
【问题描述】:
两周前我更新了我的 Visual Studio 2017,但在发布我的 asp .net Web 项目后发现项目的 dll 丢失了。我记得它以前一直在那里。所以我想知道这是预期的行为还是问题?
此外,发布类型是文件系统发布。
更新:
以下是我的发布资料:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<PublishProvider>FileSystem</PublishProvider>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<publishUrl>bin\Release\PublishOutput</publishUrl>
<DeleteExistingFiles>False</DeleteExistingFiles>
</PropertyGroup>
我是SO的新用户,如果我有任何错误的操作,请告诉我。提前致谢。
【问题讨论】:
-
恐怕您将不得不分享有关您的发布配置文件和您正在发布的项目的更多信息。如果 dll 存在或不存在,您是否检查过您的 bin 文件夹?
-
不要轻易否定别人。我说过我
m new to SO. And this issue should easy to reproduced, the publish profile is very common. Have you ever test this issue before you vote down it? @sunilsachdeva, I have updated my question with publish profile and Im 确保我的 bin 文件夹中缺少项目的 dll。 -
您在哪里检查或验证丢失的 dll 所在的本地系统?其次,您是如何注意到缺少 dll 的?
-
@aaronR,缺少的项目的 dll 在 bin 文件夹中。在构建项目时,您必须注意构建后 bin 文件夹中的项目 dll,但如果您发布此项目,该 dll 将被“删除”。
-
您在 bin\Release 或 bin\debug 中看到它们了吗?
标签: c# asp.net msbuild visual-studio-2017 publish