asp.net - Building Core2.0 project in Visual Studio Team Services fails with numerous assembly import errors -
i have build definition
- .net core restore
- .net core build
- .net core test
- .net core publish
- publish artefact
while using core1.1 worked without issue. after upgrading project core2.0 fails multiple errors
error cs1703: multiple assemblies equivalent identity have been imported: 'c:\users\buildguest\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\system.threading.tasks.parallel.dll' , 'c:\users\buildguest\.nuget\packages\system.threading.tasks.parallel\4.3.0\ref\netstandard1.1\system.threading.tasks.parallel.dll'
error cs0433: type 'targetframeworkattribute' exists in both 'system.runtime, version=4.2.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' , 'system.runtime, version=4.1.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a'
error cs0518: predefined type 'system.string' not defined or imported
solution building locally. tried add task use .net core runtime 2.0.0
in beginning without success.
you should add .net core tool installer task @ beginning of build steps. install sdk not runtime. save build definition , queue again.
Comments
Post a Comment