Edit and continue feature stopped working in Visual Studio 2010

后端 未结 22 1789
南旧
南旧 2020-12-05 06:43

The Visual Studio Edit and Continue feature stopped on Visual Studio 2010, and I don\'t know what has caused the problem.

I am working on a Windows application progr

相关标签:
22条回答
  • 2020-12-05 07:01

    I tried all the above solutions none of them worked for me. However, when I deleted the bin and object folders in visual studio and run again, it start to work.

    0 讨论(0)
  • 2020-12-05 07:02

    I had to uncheck "Enable Native Edit and Continue" in Tools -> Options -> Debugging -> General:

    0 讨论(0)
  • 2020-12-05 07:03

    For me this was caused by Nuget failing to download a package (built for Net Framework) to a Net Standard project that was being referenced. Nuget entered an infinite loop (look in the output window).

    The solution was to turn off the 'automatic package restore' setting see: https://developercommunity.visualstudio.com/content/problem/26638/nuget-infinite-loop.html

    to access this setting Tools > Options > NuGet Package Manager > General

    0 讨论(0)
  • 2020-12-05 07:03

    What worked for me was similar but not exactly like the accepted answer. I had an anonymous type created as a result of a LINQ query; i.e.

    var thingy = (from thing in things select new { thing.Property1, thing.Property2 }).First();
    

    When I changed the anonymous type to a tuple, the problem went away:

    var (thing1, thing2) = (from thing in things select (thing.Property1, thing.Property2)).First();
    
    0 讨论(0)
  • 2020-12-05 07:03

    In VS 2015 this error was caused by a nuGet package I had recently installed. By uninstalling this package and reinstalling, the bug was fixed.

    0 讨论(0)
  • 2020-12-05 07:05

    working with VS2017 community I had this aggravating problem: if you port an existing project the tag EmbedInteropTypes may not be in the .csproj file yet, a search is futile. If that's the case, add the tag at the end to the property group Debug|x86 (or whichever you use) to the .csproj with a text editor:

    before:

      <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
        <DebugSymbols>true</DebugSymbols>
        <OutputPath>bin\x86\Debug\</OutputPath>
        <DefineConstants>DEBUG;TRACE</DefineConstants>
        <DocumentationFile>bin\Debug\MyProject.XML</DocumentationFile>
        <DebugType>full</DebugType>
        <PlatformTarget>x86</PlatformTarget>
        <ErrorReport>prompt</ErrorReport>
        <Prefer32Bit>false</Prefer32Bit>
      </PropertyGroup>
    

    after:

      <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
        <DebugSymbols>true</DebugSymbols>
        <OutputPath>bin\x86\Debug\</OutputPath>
        <DefineConstants>DEBUG;TRACE</DefineConstants>
        <DocumentationFile>bin\Debug\MyProject.XML</DocumentationFile>
        <DebugType>full</DebugType>
        <PlatformTarget>x86</PlatformTarget>
        <ErrorReport>prompt</ErrorReport>
        <Prefer32Bit>false</Prefer32Bit>
        <EmbedInteropTypes>false</EmbedInteropTypes>
      </PropertyGroup>
    

    This must be done with all projects that belong to the solution!

    0 讨论(0)
提交回复
热议问题