发布ASP .NET Web项目后项目的dll丢失 [英] Project`s dlls missing after publish asp .net web project

查看:300
本文介绍了发布ASP .NET Web项目后项目的dll丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我两周前更新了Visual Studio 2017,但是发现发布ASP.NET Web项目后,项目的dll丢失了.我记得以前一直在那里.所以我想知道这是预期的行为还是问题?

I have updated my Visual Studio 2017 two weeks ago, but I found the Project`s dll's are missing after publishing my asp .net web project. I remember it was always there before. So I want to know if this is an expected behavior or a issue?

此外,发布类型是文件系统发布.

Besides, publish type is file system publish.

更新:

以下是我的发布资料:

<?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的新用户,如果我有任何不正确的操作,请告诉我.预先感谢.

I`m a new user for SO, if I have any incorrect operation, please let me know. Thanks in advance.

推荐答案

所以我想知道这是预期的行为还是问题?

So I want to know if this is an expected behavior or a issue?

我在

I have encountered the similar issue on MSDN. I could reproduce this issue as you description on the Visual Studio 2017 15.3.0 and later.

例如,当我们构建ASP.NET Web项目时,在构建该项目后,项目名称为WebApplicationTest. WebApplicationTest.dll将在WebApplicationTest\bin文件夹中生成.

When we build the ASP.NET web project, for example, the project name is WebApplicationTest, after build this project. The WebApplicationTest.dll will generated at WebApplicationTest\bin folder.

但是,发布此Web项目后,将删除此WebApplicationTest.dll.我在以前的版本15.2和Visual Studio 2015上对此进行了测试,它工作正常,发布后该dll文件仍然存在.

However, this WebApplicationTest.dll will be deleted after you publish this web project. I test this on the previous version 15.2 and Visual Studio 2015, it works fine, that dll file still exists after publish.

因此,我已经将此问题提交给Visual Studio开发人员社区(此问题仍在调查中),您可以按照自己的意见进行处理,并查看此问题的反馈.

So I have already submit this issue to the Visual Studio Developer Community (This issue is still under investigation), you can follow with your comments and check the feedback of this issue.

https ://developercommunity.visualstudio.com/content/problem/96746/visual-studio-153-publish-aspnet-web-projects-will.html

希望这会有所帮助.

这篇关于发布ASP .NET Web项目后项目的dll丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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