VS '17 - 构建文件在bin而不是Debug或Release中 [英] VS ’17 – build files are in bin not Debug or Release

查看:124
本文介绍了VS '17 - 构建文件在bin而不是Debug或Release中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个项目的解决方案。对于其中2个(FS上的第2个和第3个,VS中的第1个和第2个)文件会不时地生成
直接到bin文件夹而不是发布调试


在项目属性/ Build 中明确设置输出路径。


造成这种情况的原因是什么?



此外还有汇编对于其中一个项目不是
从未清理过
(发布或调试),它还  坚持重建



在我看来构建(配置) 以某种方式损坏。

解决方案

您好User919,


谢谢在这里发布。


项目属性中输出路径的值是多少?那些项目是ASP.NET项目吗?因为ASP.NET将网站的Bin文件夹识别为特定类型内容的特殊文件夹。 Bin文件夹旨在包含要在ASP.NET Web应用程序中引用的自定义ASP.NET控件,组件或其他代码的已编译程序集
(.dll文件)。


https://msdn.microsoft.com/en-us /library/cc295391.aspx?f=255&MSPPError=-2147217396


如果项目的输出路径是bin \Debug \或bin \Realease \\ \\,并且您的项目不是ASP.NET项目,请尝试创建新项目检查是否仍有此问题,如果是,请告诉我项目类型。



I have solution with few projects. For 2 of them (2nd and 3rd on FS, 1st and 2nd in VS) files are built from time to time directly to bin folder instead of Release and Debug.

Output paths are definitely set properly in project properties/Build.

What is causing this?

Furthermore there is assembly that for one of project is not never cleaned up (Release nor Debug) and it also persists rebuild.

It seems to me build (configuration) is somehow damaged.

解决方案

Hi User919,

Thanks for posting here.

What is the value of the output path in the project properties? Are those project ASP.NET projects? Because ASP.NET recognizes the Bin folder of a website as a special folder for specific types of content. A Bin folder is meant to contain compiled assemblies (.dll files) for custom ASP.NET controls, components, or other code that you want to reference in your ASP.NET web application.

https://msdn.microsoft.com/en-us/library/cc295391.aspx?f=255&MSPPError=-2147217396

If the project`s output path is bin\Debug\ or bin\Realease\, and your project is not ASP.NET project, please try to create new project check if it still have this issue, if yes, please tell me the project type.


这篇关于VS '17 - 构建文件在bin而不是Debug或Release中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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