Visual studio commands don't work. ctrl + f5 doesn't run my application

前端 未结 10 1325
無奈伤痛
無奈伤痛 2020-12-29 19:43

I used to be able to build and run my console applications by hitting Ctrl + F5 in visual studio. This no longer works. I looked everywhere. Does anyon

10条回答
  •  忘掉有多难
    2020-12-29 20:29

    It happend to me something similar, but only with one project, and the others running right with CTRL + F5, so i will post here my problem and solution because it could help people searching for the same problem, as i was :)

    I was opening in Visual Studio 2012 a solution created with Visual Studio 2013, and it didn't run with CTRL + F5. I open the solution file with notepad, and i change the following section:

    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Debug|Any CPU = Debug|Any CPU
        Release|Any CPU = Release|Any CPU
    EndGlobalSection
    

    with this other:

    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Debug_x86|Any CPU = Debug_x86|Any CPU
        Debug_x86|x86 = Debug_x86|x86
        Debug|Any CPU = Debug|Any CPU
        Debug|x86 = Debug|x86
        PruebaRelease|Any CPU = PruebaRelease|Any CPU
        PruebaRelease|x86 = PruebaRelease|x86
        Release|Any CPU = Release|Any CPU
        Release|x86 = Release|x86
    EndGlobalSection
    

    That solves the problem for me.

提交回复
热议问题