Microsoft
Visual Studio
Visual Studio
  • Home
    • Problems
    • Suggestions
  • Downloads
    • Visual Studio IDE
    • Visual Studio Code
    • Azure DevOps
    • Team Foundation Server
    • Accounts and Subscriptions
  • Subscriber Access
      • Microsoft 365
      • Azure
      • Office 365
      • Dynamics 365
      • SQL
      • Windows 10
      • Windows Server
      • Enterprise Mobility + Security
      • Power BI
      • Teams
      • Visual Studio
      • Surface for Business
      • AI
      • Internet of Things
      • Azure Cognitive Services
      • Quantum
      • Research
      • Docs
      • TechNet
      • Developer Network
      • Windows Dev Center
      • Windows IT Pro Center
      • FastTrack
      • Partner Network
      • Solution Providers
      • Partner Center
      • Cloud Hosting
      • Education
      • Financial services
      • Government
      • Health
      • Manufacturing & resources
      • Retail
      • Security
      • Licensing
      • AppSource
      • Azure Marketplace
      • Events
    • View all
    Sign in

    Developer Community

    Get help from our community supported forum
    • Home /
    • Visual Studio /
    Searched and didn’t find your feedback?
    • Visual Studio
    • Visual Studio for Mac
    • .NET
    • C++
    • Azure DevOps
    • TFS
    or
    • Visual Studio
    • Visual Studio for Mac
    • .NET
    • C++
    • Azure DevOps
    • TFS
    Visual Studio
    Visual Studio for Mac
    .NET
    C++
    Azure DevOps
    TFS
    7

    F7 Build does not work

    fixed in: visual studio 2017 version 15.7.4windows 10.0visual studio 2017 version 15.7

    avatar image wonsch6207 reported May 10, 2018 at 04:46 AM

    thub.nodes.view.add-new-comment
    Add comment Show 5

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    avatar image Barry Tang [MSFT] · May 10, 2018 at 05:48 PM 0
    Share
    avatar image Dhiren Sham · May 11, 2018 at 06:37 AM 1
    Share
    avatar image Nick Carroll · May 11, 2018 at 08:51 PM 0
    Share
    avatar image wonsch6207 Nick Carroll · May 12, 2018 at 07:57 AM 0
    Share
    avatar image Barry Tang [MSFT] · Jun 08, 2018 at 08:37 PM 0
    Share

    Solutions

    · Add your solution
    1
    Best Solution

    Solution by avatar image wonsch6207 · May 11, 2018 at 02:27 PM

    I have found the solution from another post.

    https://developercommunity.visualstudio.com/content/problem/247977/f7-does-not-build-anymore.html

    SOLUTION:

    I think the problem is EditorContextMenus.CodeWindow.ToggleRazorView is set to F7 as well.

    Once I delete this shortcut above and set Build to F7 and "Shortcut currently used by" shows only Build then it works fine again for me.

    thub.nodes.view.add-new-comment
    Add comment · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    1

    Solution by avatar image Joe Davis (WEB TOOLS) [MSFT] · May 11, 2018 at 05:15 PM

    Thank you for reporting this issue. We added a new command in 15.7 that supports switching between a Razor View and its C# code file, and we mapped it to F7 because that's a common mapping for similar commands. However, we didn't realize that this overlaps with the build command in certain keyboard schemes and needs to be removed from those schemes.

    We are working on a fix that we will push out very soon. In the meantime, you can unblock yourself with the following workaround.

    1. Go to Tools->Options->Environment->Keyboard
    2. In "Show commands containing" type "ToggleRazorView"
    3. Select "EditorContextMenus.CodeWindow.ToggleRazorView"
    4. Next to "Shortcuts for selected command" click "Remove"
    thub.nodes.view.add-new-comment
    Add comment · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    0

    Solution by avatar image Blair Wang [MSFT] · Jun 19, 2018 at 01:19 AM

    This issue has been fixed and is now available in an updated release. You can download the latest update via the in-product notification or from here: https://www.visualstudio.com . Thanks to everyone who provided feedback and votes on this issue!

    thub.nodes.view.add-new-comment
    Add comment · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    Follow

    56 People are following this

    Related Problems

    Green squiggles and light bulb with "Macro in skipped region" message.
    7 Solution

    AXML file doesn't open !!!
    1 Solution

    WinForms View.ToggleDesigner does not work as it used to
    1 Solution

    toggle designer key binding lost
    2 Solution

    Press F7 key on form desn't work (designer mode)
    1 Solution

    F7 View code in windows forms design
    1 Solution

    Unexpected error while editing Python document
    1 Solution

    Provisioning a new SQL Server and new SQL DB in a different region than the App Service plan fails
    1 Solution

    Switching between Designer and Code views
    1 Solution

    F7 starts no new build
    2 Solution

    What's new

    • NEW Surface Pro 6
    • NEW Surface Laptop 2
    • NEW Surface Go
    • Xbox One X
    • Xbox One S
    • VR & mixed reality
    • Windows 10 apps
    • Office apps

    Store & Support

    • Account profile
    • Download Center
    • Sales & support
    • Returns
    • Order tracking
    • Store locations
    • Support
    • Buy online, pick up in store

    Education

    • Microsoft in education
    • Office for students
    • Office 365 for schools
    • Deals for students & parents
    • Microsoft Azure in education

    Enterprise

    • Microsoft Azure
    • Enterprise
    • Data platform
    • Find a solution provider
    • Microsoft partner resources
    • Microsoft AppSource
    • Manufacturing & resources
    • Financial services

    Developer

    • Microsoft Visual Studio
    • Windows Dev Center
    • Developer Network
    • TechNet
    • Microsoft developer program
    • Channel 9
    • Office Dev Center

    Company

    • Careers
    • About Microsoft
    • Company news
    • Privacy at Microsoft
    • Investors
    • Diversity and inclusion
    • Accessibility
    • Security
    English (United States)
    • Sitemap
    • Contact us
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2018
    • Anonymous
    • Sign in
    • Spaces
    • Visual Studio
    • Visual Studio for Mac
    • .NET
    • C++
    • Azure DevOps
    • TFS
    • Explore
    • Topics
    • Problems
    • Features
    • Users
    • Badges