visual-studiodevenv

devenv.exe /upgrade not working as intended


I am trying to use devenv.exe to upgrade Visual Studio 2013 solution files through the command line.

"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe" TimeReportingDataMart.sln /Upgrade

But there is no output, and the solution does not upgrade. Is devenv not the correct tool for this? Or am I just missing something completely?


Solution

  • The problem was that I was calling devenv.exe when I should have been calling devenv.

    Calling, "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe" TimeReportingDataMart.sln /Upgrade fails.

    But calling

    "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv" TimeReportingDataMart.sln /Upgrade gives me output.

    It gives:

    Copyright (C) Microsoft Corp. All rights reserved.
    
    Information:
    This project/solution does not require migration. It will open without modification.
    

    Which doesn't help me, but at least I got the command to run..