reporting error of 'could not find library Microsoft.VisualBasic.dll' when building CodeContracts in VS 2015 RRS feed

  • Question

  • Hi,

    When I build CodeContracts in VS 2015, an error occurs as follows.

    26>  Built PresentationCore for .NETFramework\v4.0\, .NETFramework\v4.5\, .NETFramework\v4.6\
    23>vbc : error BC2017: could not find library 'Microsoft.VisualBasic.dll'


    In my computer, Microsoft.VisualBasic.dll is located in the directory 

    'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\'. It seems Microsoft.VisualBasic.dll has been registered in global assembly cache.

    Then, does anyone know how to work around this problem?

    Thanks a lot in advance.

    Leo Yin

    • Edited by LeoYin Friday, August 26, 2016 3:22 AM
    Friday, August 26, 2016 3:14 AM