开发者

Publishing via "File System" in Visual Studio 2010 - Doesn't work!

开发者 https://www.devze.com 2023-01-01 19:11 出处:网络
this is an extremely frustrating situation. We have just upgraded to Visual Studio 2010, and very nice it is, except for when it won\'t do something really simple, like Publish your ASP.NET Web Appli开

this is an extremely frustrating situation. We have just upgraded to Visual Studio 2010, and very nice it is, except for when it won't do something really simple, like Publish your ASP.NET Web Appli开发者_开发知识库cation to a folder on your desktop.

For some unearthly reason, what used to work flawlessly in 2008 is now generating an error: It stops Publishing, after successfully Building, saying:

Error: Copying file Images\Profile\32_32.JPG to 
  obj\x64\Release\Package\PackageTmp\Images\Prolfile\32_32.JPG failed. 
Could not find file 'Images\CelebrityProfileImages\32_32.JPG'.

The problem is that there isn't any reference to that file in the project code (in the database, yes, but not in the code itself), and we don't want to store such images with the project (and they're not).

Why (and how) has it suddenly decided that this unreferenced image (and presumably more if I get it to move past this one) is suddenly necessary to run the project? How can I stop this from happening?

Thanks for any help.


I would open your CSProj file up in a text editor and see if you can find where that file is referenced. A simple text search will help. Either you will discover where it is hiding inside your project, or you can just delete it using the text editor.


Im' having the same problem but it is happening for ALL projects and solutions using visual studio 2005, 2008, and 2010 but there are no error messages. It claims to publishbut nothing happens in the file sysytem.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号