简体   繁体   English

发布ASP .NET Web项目后项目的dll丢失

[英]Project`s dlls missing after publish asp .net web project

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. 我已经在两周前更新了Visual Studio 2017,但是在发布asp .net Web项目后发现Project的dll丢失了。 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. 此外,发布类型是文件系统发布。

Update: 更新:

Below is my Publish Profile: 以下是我的发布资料:

<?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>

I`ma new user for SO, if I have any incorrect operation, please let me know. 我是SO的新用户,如果我有任何不正确的操作,请告诉我。 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 . 我在MSDN上遇到过类似的问题。 I could reproduce this issue as you description on the Visual Studio 2017 15.3.0 and later. 当您在Visual Studio 2017 15.3.0及更高版本上进行描述时,我可以重现此问题。

When we build the ASP.NET web project, for example, the project name is WebApplicationTest , after build this project. 例如,当我们构建ASP.NET Web项目时,在构建该项目后,项目名称为WebApplicationTest The WebApplicationTest.dll will generated at WebApplicationTest\\bin folder. WebApplicationTest.dll将在WebApplicationTest\\bin文件夹中生成。

However, this WebApplicationTest.dll will be deleted after you publish this web project. 但是,发布此Web项目后,将删除此WebApplicationTest.dll。 I test this on the previous version 15.2 and Visual Studio 2015, it works fine, that dll file still exists after publish. 我在以前的版本15.2和Visual Studio 2015上对此进行了测试,它工作正常,发布后该dll文件仍然存在。

在此处输入图片说明

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. 因此,我已经将此问题提交给Visual Studio开发人员社区(此问题仍在调查中),您可以按照自己的意见进行操作,并查看此问题的反馈。

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

Hope this helps. 希望这可以帮助。

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

相关问题 ASP.NET MVC发布多层Web项目 - asp.net mvc publish multilayer web project .NET Web发布后缺少dll - dlls missing after publishing .NET Web 如何将第三方dll从bin文件夹移动到ASP.NET Web Forms项目中的另一个文件夹? - How to move third party dlls from bin folder to another folder in ASP.NET Web Forms project? “模块”窗口中缺少项目 dll - Project dlls are missing in Modules window 在Apache服务器上发布asp.net项目 - publish asp.net project on apache server 使用.mdf数据库发布ASP.NET项目 - Publish ASP.NET project with .mdf database 为什么 web.config 是在发布时创建的,而不是在 Asp.Net Core API 中构建项目时创建的? - Why is web.config getting created on publish not on build the project in Asp.Net Core API? ASP.NET Core Web Application(.NET Framework)项目模板缺少System.Web.MVC dll - ASP.NET Core Web Application (.NET Framework) project template is missing System.Web.MVC dll Visual Studio Professional 2012错误:此项目引用ASP.NET MVC项目中缺少的NuGet包 - Visual Studio Professional 2012 error: This project references NuGet package(s) that are missing in ASP.NET MVC project .NET 中另一个项目使用的项目中引用的 DLL - DLLs referenced in a project used by another project in .NET
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM