构建自定义应用程序时出错 [英] Errors in building custom application

查看:106
本文介绍了构建自定义应用程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我正在寻求帮助,试图找出下面显示的错误,因为我尝试构建自定义应用程序。该应用程序托管在TFS上,我的笔记本电脑在Windows 7 Professional上运行VS 2012 Ultimate和更新5.


错误 1
无法复制文件"projectname\bin\Debug\filename.pdb"到"bin \ filename.pdb"。访问路径'bin \ filename.pdb'被拒绝。


错误 2
无法复制文件"projectname \bin \Debug \ filename.pdb"到"bin \ filename.pdb"。访问路径'bin \ filename.pdb'被拒绝。





错误 3
无法复制文件projectname \bin\Debug \ filename.pdb"到"bin \ filename.pdb"。拒绝访问路径'bin \ filename.pdb'。



错误 4
无法复制文件"projectname" \\bin\Debug\filename.pdb"到"bin \ filename.pdb"。拒绝访问路径'bin \ filename.pdb'。



错误 5
无法复制文件projectname \bin \Debug\filename.xml" to"bin\filename.xml"。拒绝访问路径"bin \ filename.xml"。










解决方案

Hi leonard,


欢迎来到MSDN论坛。


参考错误消息,请确保您没有将您的发布和调试文件夹签入TFS,这些文件(dll和pdb)是只读的
,我们将在尝试构建它们时收到错误。请查看
这个类似的问题
,您需要从TFS中删除这些文件,因为它们不应该被签入。


如果你不检查这些文件,请检查

此问题
并尝试使用以下解决方法:


1。以管理员身份运行VS


2。确保这些文件夹不是只读并重建解决方案


3。关闭Visual Studio,再次打开它并加载解决方案,重建您的解决方案


4。从bin文件夹中删除有争议的文件并重建项目




祝你好运,


Sara < /跨度>


Hello,

I am seeking help in trying to figure out the errors shown below as I try to build a custom application. The app is hosted on TFS and my laptop is running VS 2012 Ultimate with update 5 on Windows 7 Professional.

Error 1 Unable to copy file "projectname\bin\Debug\filename.pdb" to "bin\filename.pdb". Access to the path 'bin\filename.pdb' is denied.

Error 2 Unable to copy file "projectname\bin\Debug\filename.pdb" to "bin\filename.pdb". Access to the path 'bin\filename.pdb' is denied.


Error 3 Unable to copy file projectname\bin\Debug\filename.pdb" to "bin\filename.pdb". Access to the path 'bin\filename.pdb' is denied.

Error 4 Unable to copy file "projectname\bin\Debug\filename.pdb" to "bin\filename.pdb". Access to the path 'bin\filename.pdb' is denied.

Error 5 Unable to copy file projectname\bin\Debug\filename.xml" to "bin\filename.xml". Access to the path 'bin\filename.xml' is denied.



解决方案

Hi leonard,

Welcome to the MSDN forum.

Refer to the error message, please make sure you are not having your release and debug folders checked into TFS, these files (dll and pdb) are read-only and we will get an error when try to build them. Please have a look at this similar issue and you need to remove these files from TFS as they should not be checked in.

If you are not checked into those files, please check this issue and have a try with the following workarounds:

1. Run the VS as administrator

2. Make sure those folders are not Read-Only and rebuild the solution

3. Close Visual Studio, open it again and load the solution, Rebuild your solution

4. Delete the contentious files from the bin folder and rebuild the project

Best regards,

Sara


这篇关于构建自定义应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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