发布 asp .net web 项目后项目的 dll 丢失

Project`s dlls missing after publish asp .net web project(发布 asp .net web 项目后项目的 dll 丢失)
本文介绍了发布 asp .net web 项目后项目的 dll 丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

两周前我更新了我的 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"><属性组><WebPublishMethod>文件系统</WebPublishMethod><PublishProvider>文件系统</PublishProvider><LastUsedBuildConfiguration>发布</LastUsedBuildConfiguration><LastUsedPlatform>任何 CPU</LastUsedPlatform><SiteUrlToLaunchAfterPublish/><LaunchSiteAfterPublish>True</LaunchSiteAfterPublish><ExcludeApp_Data>假</ExcludeApp_Data><publishUrl>binReleasePublishOutput</publishUrl><DeleteExistingFiles>False</DeleteExistingFiles></属性组>

我是SO的新用户,如果我有任何错误的操作,请告诉我.提前致谢.

解决方案

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

我在

所以我已经把这个问题提交给Visual Studio开发者社区了(这个问题还在调查中),你可以关注你的评论并查看这个问题的反馈.

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

希望这会有所帮助.

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>binReleasePublishOutput</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.

解决方案

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 WebApplicationTestin 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.

这篇关于发布 asp .net web 项目后项目的 dll 丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)