-
Notifications
You must be signed in to change notification settings - Fork 89
Description
Microsoft.Web.LibraryManager.Build 2.0.76
VS 2017 15.9.11
ASP.NET Web Form project using 4.6.1
On some machine in our office using VS 2017, we can't build our ASP.NET project that has the "auto restore" enabled for LibMan.
Some machines with VS 2017 using the same project build fine.
What seems to be odd is that our ASP.NET project references "System.Net.Http Version 4.0.0.0" yet the LibraryManager is referencing "System.Net.Http Version 4.2.0.0".
I think this is either a bad reference pointing to a file not installed on users machines or not using the GAC version of System.Net.Http.
We get the following:
1>...\packages\Microsoft.Web.LibraryManager.Build.2.0.76\build\Microsoft.Web.LibraryManager.Build.targets(35,9): error MSB4018: The "Microsoft.Web.LibraryManager.Build.RestoreTask" task failed unexpectedly.
1>...\packages\Microsoft.Web.LibraryManager.Build.2.0.76\build\Microsoft.Web.LibraryManager.Build.targets(35,9): error MSB4018: System.TypeInitializationException: The type initializer for 'Microsoft.Web.LibraryManager.WebRequestHandler' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
1>...\packages\Microsoft.Web.LibraryManager.Build.2.0.76\build\Microsoft.Web.LibraryManager.Build.targets(35,9): error MSB4018: at Microsoft.Web.LibraryManager.WebRequestHandler..ctor(ProxySettings proxySettings)
1>...\packages\Microsoft.Web.LibraryManager.Build.2.0.76\build\Microsoft.Web.LibraryManager.Build.targets(35,9): error MSB4018: at Microsoft.Web.LibraryManager.WebRequestHandler..cctor()
1>...\packages\Microsoft.Web.LibraryManager.Build.2.0.76\build\Microsoft.Web.LibraryManager.Build.targets(35,9): error MSB4018: --- End of inner exception stack trace ---
1>...\packages\Microsoft.Web.LibraryManager.Build.2.0.76\build\Microsoft.Web.LibraryManager.Build.targets(35,9): error MSB4018: at Microsoft.Web.LibraryManager.WebRequestHandler.get_Instance()
1>...\packages\Microsoft.Web.LibraryManager.Build.2.0.76\build\Microsoft.Web.LibraryManager.Build.targets(35,9): error MSB4018: at Microsoft.Web.LibraryManager.Providers.Unpkg.UnpkgProvider..ctor(IHostInteraction hostInteraction)
1>...\packages\Microsoft.Web.LibraryManager.Build.2.0.76\build\Microsoft.Web.LibraryManager.Build.targets(35,9): error MSB4018: at Microsoft.Web.LibraryManager.Providers.Unpkg.UnpkgProviderFactory.CreateProvider(IHostInteraction hostInteraction)
1>...\packages\Microsoft.Web.LibraryManager.Build.2.0.76\build\Microsoft.Web.LibraryManager.Build.targets(35,9): error MSB4018: at Microsoft.Web.LibraryManager.Build.Dependencies.Initialize()
1>...\packages\Microsoft.Web.LibraryManager.Build.2.0.76\build\Microsoft.Web.LibraryManager.Build.targets(35,9): error MSB4018: at Microsoft.Web.LibraryManager.Build.Dependencies..ctor(IHostInteraction hostInteraction, IEnumerable`1 assemblyPaths)
1>...\packages\Microsoft.Web.LibraryManager.Build.2.0.76\build\Microsoft.Web.LibraryManager.Build.targets(35,9): error MSB4018: at Microsoft.Web.LibraryManager.Build.RestoreTask.Execute()
1>...\packages\Microsoft.Web.LibraryManager.Build.2.0.76\build\Microsoft.Web.LibraryManager.Build.targets(35,9): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1>...\packages\Microsoft.Web.LibraryManager.Build.2.0.76\build\Microsoft.Web.LibraryManager.Build.targets(35,9): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()