问题
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.
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`m a new user for SO, if I have any incorrect operation, please let me know. Thanks in advance.
回答1:
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.
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.
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.
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
Hope this helps.
来源:https://stackoverflow.com/questions/46087918/projects-dlls-missing-after-publish-asp-net-web-project