简体   繁体   English

Visual Studio错误使用WPF应用程序构建解决方案

[英]Visual Studio error building a solution with WPF application

When I am trying to build a solution file which has WPF projects, I get this error 当我尝试构建具有WPF项目的解决方案文件时,出现此错误

Could not copy the file "bin\\Debug\\test.exe.config" because it was not found. 由于找不到文件“ bin \\ Debug \\ test.exe.config”,因此无法复制。

I tried Clean Solution, Rebuild solution. 我尝试过“清洁解决方案”,“重建解决方案”。 Tried deleting the bin directory. 尝试删除bin目录。 This started yesterday. 从昨天开始。 Not sure what I changed. 不知道我改变了什么。

How do I fix this. 我该如何解决。 so I can do a build. 这样我就可以进行构建。

Just a thought, but anti-virus software could potentially cause this type of problem if it decides that your exe is suspicious. 只是想一想,但是防病毒软件如果确定您的exe可疑,可能会导致此类问题。

If you have any AV software running, try disabling it temporarily, and/or excluding your project build folders from its protection. 如果您正在运行任何AV软件,请尝试暂时将其禁用,和/或从其保护范围中排除项目构建文件夹。

OK. 好。 The problem with my solution was a extension(a config Transform extension) that was installed. 我的解决方案存在的问题是安装了扩展(配置转换扩展)。 I updated the Visual studio extension and the build succeeded. 我更新了Visual Studio扩展,并且构建成功。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM