Kevin Trethewey

Software Developer, Technologist, Connoisseur of things that go 'bing'.

  • Home
  • Contact
  • Links
  • About

Obscure Visual Studio Conversion Wizard Error

Published Tuesday, February 27, 2007 9:35 AM

This refers to a problem that arose when converting a Microsoft Visual Studio 2003 solution to a Visual Studio 2005 solution using the Conversion Wizard.

 

Background: We have several samples that we are shipping with our upcoming CTP. Because the outputted binary is included as part of the integration build I included it in the project so that I could check the whole set in at the same time without having to find the files in Windows Explorer (I use the Ankh VS plugin for SVN). This has worked fine up until now.

Problem: Yesterday QA came back to me with an odd bug: When one of the samples that I recently created was opened on a machine with only VS2005 installed and the project (which is shipped as a VS03 project) was run through the conversion wizard, it failed to build with the following error:

Error 1 Unable to copy file "C:\Documents and Settings\redfive\Desktop\Samples\Smart Stock\bin\Debug\SmartStock.exe" to "bin\Debug\bin\Debug\SmartStock.exe". Could not find file 'C:\Documents and Settings\redfive\Desktop\Samples\Smart Stock\bin\Debug\SmartStock.exe'. SmartStock

Strange.

Issue: It turns out that problem was the above mentioned inclusion of the output binaries in the solution file. When the Conversion Wizard ran it added the property "Copy if newer" to SmartStock.exe. This caused the build to fail.

Resolution: Remove the reference to the exe in the project. This shortcut works fine if your solution is going to only be used in VS03 or VS05 but as described above it will fail on conversion.

 

(this posted so that anyone googling the same problem will get a hit, unlike I did!)

Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!
by Kevin Trethewey

Comments

No Comments

Go

Tags

  • .NET
  • Admin
  • ALT.NET
  • Community
  • Dotnet.org.za
  • eBooks
  • Fonts
  • Free Stuff
  • Fun Stuff
  • Google
  • Links
  • Microsoft
  • Personal OffTopic
  • Quotes
  • Red Five Labs
  • Robotics
  • Software Development
  • South Africa
  • SQL
  • Useful Advice
  • Utilities
  • Video
  • Virtual Post-It
  • Vista
  • VSTS Tips
  • WebDev
  • Wiki

Navigation

  • Home
  • Careers
  • Downloads
  • Support

Archives

  • May 2008 (1)
  • October 2007 (1)
  • July 2007 (1)
  • June 2007 (2)
  • May 2007 (1)
  • February 2007 (2)
  • January 2007 (2)
  • December 2006 (3)
  • November 2006 (9)
  • October 2006 (10)
  • September 2006 (3)
  • August 2006 (2)
  • July 2006 (6)
  • June 2006 (7)
  • May 2006 (9)
  • April 2006 (4)
  • March 2006 (14)
  • February 2006 (2)
  • January 2006 (5)
  • December 2005 (5)
  • November 2005 (7)
  • October 2005 (4)
  • September 2005 (10)
  • August 2005 (3)
  • July 2005 (5)
  • June 2005 (8)
  • May 2005 (11)
  • April 2005 (10)
  • March 2005 (7)
  • February 2005 (11)
  • January 2005 (12)
  • December 2004 (5)
  • November 2004 (2)
  • October 2004 (3)
  • September 2004 (10)
  • August 2004 (13)
  • July 2004 (6)
  • June 2004 (7)
  • May 2004 (24)
  • April 2004 (20)
  • March 2004 (21)
  • February 2004 (19)

Syndication

  • RSS
  • Atom
  • Comments RSS
Powered by Community Server (Commercial Edition), by Telligent Systems