locked
Remaining Issues with Visual Studio 2012 Support (1.4.51019.0) RRS feed

  • Question

  • The following paragraph is noted under Visual Studio 2012 support:

    "Other areas in which we know we had some issues were in having the static checker run in the background (you can tell by the messages in the Output window), squigglies showing up, and suggestions not appearing in the Error list, but only in the Output window.

    If you have any problems in these features (or any others), please let us know!"

    I am still having ALL of these issues with build 1.4.51019.0.  This build number is emitted on the project properties code contracts tab, so I know the correct version is installed.

    1. Static Checker does not run in background - Error "CodeContracts: Task manager is unavailable (unable to run in background)." is emitted in output.
    2. Squigglies do not appear anywhere in any code file
    3. Suggestions only appear in the output window - not in error list. No line numbers / code-file names are included in output, which renders them useless.

    DMM

    Thursday, November 8, 2012 9:18 PM

All replies

  • Also having same issues.
    Sunday, December 2, 2012 1:25 PM
  • Same here,

     Might it be the VS2012 Update 1 or the VS2012 Web Tools Update RC that is causing this? Has anyone a bare VS2012 w/o the updated components that can compare?

     --larsw


    Lars Wilhelmsen | Senior Consultant | Miles, Norway | Integration MVP | http://larswilhelmsen.com/



    • Edited by _larsw Wednesday, December 19, 2012 8:25 AM
    Tuesday, December 18, 2012 1:29 PM
  • I have try a bare VS2012 and then VS2012 Update 1 on a developer desktop and also TFS2012 buildcontroller with bare VS2012 with codecontracts (1.4.51019.0).

    follwing issues appears:
    1. Static Checker does not run in background - Error "CodeContracts: Task manager is unavailable (unable to run in background)." is emitted in output.
    2. Squigglies do not appear anywhere in any code file   

    but:
    Suggestions correct appear in the output window of VS2012.

    Any feedbacks from the CC Team?

    Matthias

    Friday, February 8, 2013 1:42 PM
  • Can you post the output of running the following:

    "c:\program files (x86)\Microsoft\Contracts\Bin\CodeToolsUpdate.exe" /list /verbose

    Thanks,

    -MaF


    Cheers, -MaF (Manuel Fahndrich)

    Friday, February 22, 2013 5:40 PM
  • We think we are closing in on the problem. Are these problems showing up on machines that do not have VS2010 installed?

    -MaF


    Cheers, -MaF (Manuel Fahndrich)

    Saturday, February 23, 2013 12:48 AM
  • Sorry for the delay. I'am actualy run CodeContracts 1.4.60301.15 (still the same problem with the background task). Formerly there was VS2010 installed.

    Here is the output you need:

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    CodeToolsUpdate Version 1.0.0.31365.
    Listing for visual studio 10.0.
    Codetools: Found version 10 from: Software\Microsoft\VisualStudio\10.0
    Codetools: Found version 10 from: Software\Microsoft\VisualStudio\10.0
    Codetools: Property pane found: HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\10.0\CodeTools\CodeContracts\PropertyPages\{6962FC39-92C8-4e9b-9E3E-4A52D08D1D83}
    Codetools: Found version 10 from: Software\Microsoft\VisualStudio\10.0
    Codetools: Property pane found: HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\10.0\CodeTools\$Installed\CodeContracts\PropertyPages\{6962fc39-92c8-4e9b-9e3e-4a52d08d1d83}
    CodeContracts: Microsoft Code Contracts: active version.
    Listing for visual studio 11.0.
    Codetools: Found version 11 from: Software\Microsoft\VisualStudio\11.0
    Codetools: Found version 11 from: Software\Microsoft\VisualStudio\11.0
    Codetools: Property pane found: HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\11.0\CodeTools\CodeContracts\PropertyPages\{6962FC39-92C8-4e9b-9E3E-4A52D08D1D83}
    Codetools: Found version 11 from: Software\Microsoft\VisualStudio\11.0
    Codetools: Property pane found: HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\11.0\CodeTools\$Installed\CodeContracts\PropertyPages\{6962fc39-92c8-4e9b-9e3e-4a52d08d1d83}
    CodeContracts: Microsoft Code Contracts: active version.
    Listing for visual studio 9.0.
    Codetools: Found version 9 from: Software\Microsoft\VisualStudio\9.0
    Codetools: Found version 9 from: Software\Microsoft\VisualStudio\9.0
    Codetools: Property pane found: HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\9.0\CodeTools\CodeContracts\PropertyPages\{6962FC39-92C8-4e9b-9E3E-4A52D08D1D83}
    Codetools: Found version 9 from: Software\Microsoft\VisualStudio\9.0
    Codetools: Property pane found: HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\9.0\CodeTools\$Installed\CodeContracts\PropertyPages\{6962fc39-92c8-4e9b-9e3e-4a52d08d1d83}
    CodeContracts: Microsoft Code Contracts: active version.
    Done.

    ------------------------------------------------------------------------------------------

    Thanks Matthias

    Thursday, March 7, 2013 4:16 PM
  • Thanks. We are investigating what components our tool relies on that is not installed with VS2012. Once we figure out how to solve this we'll release a version that will work.

    The only workaround right now is to install some version of VS2010.


    Cheers, -MaF (Manuel Fahndrich)

    Thursday, March 7, 2013 5:01 PM
  • We think we found the problem.

    Our msbuild task references the VS shell for VS2008 and earlier. If we update this to VS2010, it works for VS2010 and VS2012, but no longer for VS2008/2005.

    If you want to try this out, copy the file from here https://skydrive.live.com/redir?resid=78CA02196AA02BFC!30118&authkey=!AEgbomn-m0AIT_I

    to your \program files (x86)\Microsoft\Contracts\bin directory (you need to have all msbuild.exe processes dead in order for the copy to succeed, quitting VS may not be enough).

    If one of you having this problem could see if it is solved by this, let me know. If it isn't solved, also let me know.


    Cheers, -MaF (Manuel Fahndrich)

    Thursday, March 7, 2013 7:11 PM
  • Thank you for the dll !
    But Sorry - it seams not to be the solution. We have download your dll -> Restart the maschine -> copy it to the path

    The output from VS 2012 is the same:

    ...
    17>  CodeContracts: Task manager is unavailable (unable to run in background).
    17>  CodeContracts: Common.ApplicationLayer.Components.Impl: Run static contract analysis.
    ...

    Before msbuild is running the next project it is still waiting for complete the codecontract analysis.

    If we can do anything for you to find the problem tell us!

    Matthias

    Friday, March 8, 2013 8:57 AM
  • Thanks for the feedback. I will need to delve deeper then.


    Cheers, -MaF (Manuel Fahndrich)

    Monday, March 11, 2013 12:57 AM
  • Actually this seemed to work for me.
    Tuesday, March 12, 2013 8:52 PM
  • Hi RandyRidge and KrampDotNet,

    this is interesting. if the fix works for some but not others, I'd love to hear more about your configuration.

    - OS

    - VS Versions

    - Any VS SDKs installed?

    Thanks.


    Cheers, -MaF (Manuel Fahndrich)

    Wednesday, March 13, 2013 6:19 AM
  • I replied with details via email.
    Wednesday, March 13, 2013 4:04 PM
  • Hi,

    OS: 
    - Win7 Professionell with SP1

    SDK's:
    - F# (not used in our projects only for private interests)
    - Sync FrameWork
    - RIA Services
    - Silverligth (used in some of our projects)
    - Windows 7.0A, 7.1A, 8.0, 8.0A

    An here the AboutBox from VS:
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Microsoft Visual Studio Premium 2012
    Version 11.0.51106.01 Update 1
    Microsoft .NET Framework
    Version 4.5.50709

    Installed Version: Premium

    LightSwitch for Visual Studio 2012   04941-004-0043007-02183
    Microsoft LightSwitch for Visual Studio 2012

    Office Developer Tools   04941-004-0043007-02183
    Microsoft Office Developer Tools

    Team Explorer for Visual Studio 2012   04941-004-0043007-02183
    Microsoft Team Explorer for Visual Studio 2012

    Visual Basic 2012   04941-004-0043007-02183
    Microsoft Visual Basic 2012

    Visual C# 2012   04941-004-0043007-02183
    Microsoft Visual C# 2012

    Visual C++ 2012   04941-004-0043007-02183
    Microsoft Visual C++ 2012

    Visual F# 2012   04941-004-0043007-02183
    Microsoft Visual F# 2012

    Visual Studio 2012 Code Analysis Spell Checker   04941-004-0043007-02183
    Microsoft® Visual Studio® 2012 Code Analysis Spell Checker

    Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

    The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

    Visual Studio 2012 SharePoint Developer Tools   04941-004-0043007-02183
    Microsoft Visual Studio 2012 SharePoint Developer Tools

    JetBrains ReSharper 7.1.1   C# Edition build 7.1.1000.900 on 2012-12-13T14:22:48
    JetBrains ReSharper 7.1.1 package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper/. Copyright © 2003–2013 JetBrains, Inc.

    Microsoft Team Foundation Server 2012 Power Tools   3.0
    Power Tools that extend the Team Foundation Server integration with Visual Studio.

    Microsoft Visual Studio Process Editor   1.0
    Process Editor for Microsoft Visual Studio Team Foundation Server

    NuGet Package Manager   2.2.31210.9045
    NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

    PreEmptive Analytics Visualizer   1.0
    Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

    SQL Server Data Tools   11.1.20627.00
    Microsoft SQL Server Data Tools

    Team Foundation Sidekicks   3.0
    Team Foundation Sidekicks utilities

    Web Developer Tools   1.0.30710.0
    Microsoft Web Developer Tools contains the following components:
    Page Inspector: Tool that offers an efficient way to decompose Web Applications and diagnose front-end issues.
    Web Publishing: Extensions required for Web Publishing for both hosted servers as well as on premises.
    Web Form Templates: Includes the default templates for Web Form Applications.
    Editor Extensions: Includes HTML, CSS, and JS editor extensions that greatly enhance the development experience.

    Windows Installer XML Toolset 3.7  
    Windows Installer XML Toolset 3.7.1224.0
    Copyright © Outercurve Foundation. All rights reserved.
    -----------------------------------------------------------------------------------------------------------------------------------------------

    Matthias

    Wednesday, March 13, 2013 4:43 PM
  • Hi,

    second information from our buildcontroller machines (new machines with VS2012 - no previous installations of VS 2010):

    - OS: Windows 2012

    - TFS2012 + VS 2012 SP1

    Now I have change the "C:\Program Files (x86)\Microsoft\Contracts\Bin\MsBuildCodeContracts.dll" at our buildcontroller machines too.
    But it ist the same issue... :-(
    So I am curious about the difference between your environment RandyRidge and our environment.

    Additionally I have ckecked the difference between the dll version I have try - and i am shure it is the correct version i try out:

    OLD:
    // Assembly Reference Microsoft.VisualStudio.Shell
    Version: 2.0.0.0
    Name: Microsoft.VisualStudio.Shell, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

    NEW from skydrive:
    // Assembly Reference Microsoft.VisualStudio.Shell.10.0
    Version: 10.0.0.0
    Name: Microsoft.VisualStudio.Shell.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

    Bye for now
    Matthias


    • Edited by KrampDotNet Wednesday, March 13, 2013 10:12 PM
    Wednesday, March 13, 2013 10:01 PM
  • Offhand the only real differences are that I use:

    Windows 8, VS Ultimate 2012.2 CTP4, SQL Server 2012 (which has a number of VS2010 components if I recall and is likely what's making it work for me), and the Windows SDK.

    Thursday, March 14, 2013 11:35 AM
  • Looks like I finally nailed it. I have a version that works on a machine where I could previously repro it. We had a spurious reference VisualStudio.Shell.10.dll in the build task that I was able to work around.

    If all goes right, the next release should finally put this to rest.


    Cheers, -MaF (Manuel Fahndrich)

    Friday, March 15, 2013 6:32 PM
  • That's sounds good. If you want to give me beta release I will try it out for you.

    Matthias

    Friday, March 15, 2013 9:05 PM
  • Thanks, that would be awesome:

    If you want to try this out, copy the file from here https://skydrive.live.com/redir?resid=78CA02196AA02BFC!30118&authkey=!AEgbomn-m0AIT_I

    same place as before. Again, make sure to be admin and kill all your msbuild processes.


    Cheers, -MaF (Manuel Fahndrich)

    Friday, March 15, 2013 10:37 PM
  • Hi Manuel,

    yes you have nailed it! Thank you!

    - Without background analysis my small test solution runs a rebuild over 4:15min and every project waits for the contract analsysis.

    - Now I see in the output window that cc will run in background. I need only 2:45min than rebuild for all projects is completed.
      CC runs yet another 20s with background processes. So it saves time over all build processes and that is the important point.

    So its ready for release from my point.

    Matthias

    Sunday, March 17, 2013 9:13 PM
  • Thanks for testing that out Matthias. That's good news.

    We are trying to push out the release today.


    Cheers, -MaF (Manuel Fahndrich)

    • Proposed as answer by KrampDotNet Tuesday, December 1, 2015 10:59 PM
    • Unproposed as answer by KrampDotNet Tuesday, December 1, 2015 10:59 PM
    Sunday, March 17, 2013 9:22 PM