Bug 55856 - roslyn acceptance tests fail to run: issue with ResolveNuGetPackageAssets task
Summary: roslyn acceptance tests fail to run: issue with ResolveNuGetPackageAssets task
Status: RESOLVED INVALID
Alias: None
Product: Tools
Classification: Mono
Component: msbuild ()
Version: 4.8.0 (C9)
Hardware: PC Other
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2017-05-01 14:23 UTC by David Naylor
Modified: 2017-09-07 18:19 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description David Naylor 2017-05-01 14:23:41 UTC
When running check-roslyn from acceptance-tests I get the following error:

mono --debug=mdb-optimizations --attach=disable /home/dbn/.nuget/packages/Microsoft.Build.Mono.Debug/14.1.0-prerelease/lib/MSBuild.exe /v:m /p:SignAssembly=false /p:DebugSymbols=false src/Compilers/CSharp/CscCore/CscCore.csproj /p:Configuration=Debug
Microsoft (R) Build Engine version 14.1.0.0
Copyright (C) Microsoft Corporation. All rights reserved.

/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061: The "ResolveNuGetPackageAssets" task could not be instantiated from "/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.Build.Tasks.dll".  [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Compilers/Core/Portable/CodeAnalysis.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061: System.TypeLoadException: Could not resolve type with token 01000139 [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Compilers/Core/Portable/CodeAnalysis.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061:   at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Compilers/Core/Portable/CodeAnalysis.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061:   at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:661  [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Compilers/Core/Portable/CodeAnalysis.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4060: The "ResolveNuGetPackageAssets" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name. [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Compilers/Core/Portable/CodeAnalysis.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061: The "ResolveNuGetPackageAssets" task could not be instantiated from "/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.Build.Tasks.dll".  [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpSyntaxGenerator/CSharpSyntaxGenerator.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061: System.TypeLoadException: Could not resolve type with token 01000139 [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpSyntaxGenerator/CSharpSyntaxGenerator.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061:   at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpSyntaxGenerator/CSharpSyntaxGenerator.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061:   at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:661  [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpSyntaxGenerator/CSharpSyntaxGenerator.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4060: The "ResolveNuGetPackageAssets" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name. [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpSyntaxGenerator/CSharpSyntaxGenerator.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061: The "ResolveNuGetPackageAssets" task could not be instantiated from "/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.Build.Tasks.dll".  [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/BoundTreeGenerator/CompilersBoundTreeGenerator.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061: System.TypeLoadException: Could not resolve type with token 01000139 [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/BoundTreeGenerator/CompilersBoundTreeGenerator.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061:   at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/BoundTreeGenerator/CompilersBoundTreeGenerator.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061:   at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:661  [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/BoundTreeGenerator/CompilersBoundTreeGenerator.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4060: The "ResolveNuGetPackageAssets" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name. [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/BoundTreeGenerator/CompilersBoundTreeGenerator.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061: The "ResolveNuGetPackageAssets" task could not be instantiated from "/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.Build.Tasks.dll".  [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpErrorFactsGenerator/CSharpErrorFactsGenerator.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061: System.TypeLoadException: Could not resolve type with token 01000139 [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpErrorFactsGenerator/CSharpErrorFactsGenerator.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061:   at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpErrorFactsGenerator/CSharpErrorFactsGenerator.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4061:   at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:661  [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpErrorFactsGenerator/CSharpErrorFactsGenerator.csproj]
/home/dbn/ports/ports/lang/mono/work/stage/usr/local/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.targets(140,5): error MSB4060: The "ResolveNuGetPackageAssets" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name. [/home/dbn/ports/ports/lang/mono/work/mono-mono-4.8.1.0/acceptance-tests/external/roslyn/src/Tools/Source/CompilerGeneratorTools/Source/CSharpErrorFactsGenerator/CSharpErrorFactsGenerator.csproj]

Am I doing something wrong in running the roslyn tests?  Benchmarker passes after a very long time and coreclr lists a few failures.
Comment 1 Ankit Jain 2017-05-03 12:15:08 UTC
Marek, are these supposed to be run like this? Is this expected to work?

It is using `/home/dbn/.nuget/packages/Microsoft.Build.Mono.Debug/14.1.0-prerelease/lib/MSBuild.exe` - I don't think this packages mono's msbuild. And it is pretty old.
Comment 2 Marek Safar 2017-09-04 22:23:16 UTC
closing
Comment 3 David Naylor 2017-09-07 18:19:18 UTC
Marek, are the roslyn checks supposed to pass?  It appears that there hasn't been any change in github regarding these tests?