Monday, January 18, 2010

Cannot get the list of output files from the project

If you are a Silverlight developer who likes to keep himself updated on the latest stuff around in technology then you might face this problem. Actually this happens when you upgrade your system to VS2010 , by update i don’t mean that you are changing the target framework to be used to .net framework 4.0 update here just means that your .csproj file now knows that it has to open itself with VS2010 but after sometime if you feel that VS2010 beta is unstable, which looked to me also then you want to revert back to old and tested VS2008 everything can be reverted back without problems but when you will build the project in VS2008 you will notice that it complains “Cannot get the list of output files from the project” this is because the ToolsVersion used is still 4.0

The simple solution is to just go to the .csproj file in any of the text editors and modify the ToolsVersion in every project in the solution which contains your silverlight project.

Just replace the ToolsVersion = 4.0 with ToolsVersion= 3.5 and your solution will start working again.

That’s it.

Happy Programming!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Unknown said...

You ROCK! This was the first post I found when I Googled this error and it worked perfectly! I had in fact switched one of my projects in my solution to 4.0. Switching it back to 3.5 worked perfect. And, just know I am no slouch when it comes to Silverlight; I have written 3 books on Silverlight now. The last one can be found here:

Thank you very much for your help, Victor G.

almedajohnson said...

I was surfing for this solution from so long and I was just about to loose the hope for getting the solution. Thanks a ton finally my surf ends with fruitful result. I hope this work for me.

Post a Comment