Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I recently upgraded from windows 7 to windows 10. I also updated my visual studio from 2008 to 2013. I have two laptops connected, one with VS 2008 & Win7 and the other is VS2013 and Win10. On my win 10 laptop I have the VS installer which seems to migrate the projects fine from the old laptop to the new one.

I click on the solution file and the app upgrades the the .sln & .vbproj and it comes back with the warning...

'Project.sln: Visual Studio needs to make non-functional changes to this project in order to enable the project to open in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without impacting project behavior.'

So when I go to VS I run the project and it says 'the source file is different from when the module was built.' & one of my private sub is not a member of the global system.

What I have tried:

The code works fine with the old laptop with VS2008 and Win7...It must be something different between the win 7 and 10. Or VS2008 to 2013
Posted
Updated 12-Dec-18 5:29am
Comments
F-ES Sitecore 12-Dec-18 10:32am    
Have you cleaned and re-built the solution?
BH2016 12-Dec-18 11:06am    
What do you mean by cleaned
Afzaal Ahmad Zeeshan 12-Dec-18 12:46pm    
You need to migrate the projects from an older VS to a newer VS. Windows has no connection in this aspect. :laugh:

1 solution

Go to the Menu bar, and Select "Build ... Clean Solution" to remove all intermediate files - in theory you don't have to do this, but I'm a trusting soul.
The Go to "Build ... Rebuild Solution" to do a full rebuild (in theory, this starts with a "Clean", but as I said - I'm a trusting soul, but not that trusting.)

You problem should be gone.
If it isn't, manually go to the solution with Windows Explorer and navigate to each projects "Bin/Debug" folder and delete it. A full rebuild should now make new versions for you that are up to date.
 
Share this answer
 
Comments
BH2016 12-Dec-18 11:53am    
I have my project on a copy on my C drive so I am willing to try anything. I tried the clean and the rebuild and it came back with the same errors. 'The system cannot find the file specified.'
OriginalGriff 12-Dec-18 12:04pm    
That's a different error: which file is it complaining about?
BH2016 12-Dec-18 12:32pm    
Setup. The other errors are there too. Because the code was rebuilt this is a new error
OriginalGriff 12-Dec-18 12:42pm    
OK, it's probably something external to the solution - a missing reference or similar.
Go back to the original lappy, and check ever project reference - are any of them non-standard DLL's which are not in your solution?

Now copy the original solution files onto the new one, and open it in VS. Check the references again. If any of them are to projects in the solution, go to that specific project and clean it, then rebuild just that project. when they are all done, clean and rebuild the whole project.

The chances are that either you have missing project references, or the file copy you did has changed the modification date on files so the make utility - which relies on them - is confused as sources are later than assemblies.

This isn't an easy one to help fix when you can't see the screen at all!
BH2016 12-Dec-18 15:19pm    
I agree, it is most likely something where its referenced to somewhere that changed from going from version to version. I just dont understand how it doesnt just work if its the same correct code just on a different version of vs and windows. The only error i get when I first try the code is

'Visual Studio needs to make non-functional changes to this project in order to enable the project to open in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without impacting project behavior.'

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900