question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VSTS build task fails on a .NetFramework4.6.1 project references .NetStandard2.0

See original GitHub issue
  • a .Net Framework 4.6.1 project that references .NetStandard2.0 (not preview) project
  • Visual Studio 2017 Update 3 (not preview, VisualStudio.15.Release/15.3.0+26730.3)

so far everything is working fine in LOCAL environment. When I run a build on Visual Studio Team Services it throws the error/s below

Error message

##[error]src\Ninja.Dojo\Fight.cs(18,19): Error CS0012: The type 'IServiceProvider' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

Please advise 🤗

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
bryanmacfarlanecommented, Aug 18, 2017

Cool. 15.3 is rolling now. Early next week everywhere

0reactions
cilerlercommented, Aug 21, 2017

just to inform if anyone hits here, it has been rolled and VSTS is working just fine… 😎

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSTS build task fails on a .NetFramework4.6.1 project references ...
a .Net Framework 4.6.1 project that references .NetStandard2.0 (not preview) project; Visual Studio 2017 Update 3 (not preview, VisualStudio.15.
Read more >
c# - VSTS build task fails on a .NetFramework4.6.1 project ...
No it is a common class project but there is a reference for System.Windows.Forms.dll. Nothing special in Program.cs few lines of simple code....
Read more >
Add a reference to assembly netstandard error with .NET ...
NET Framework 4.6.1 project which has a reference to a nuget package built with .netstandard2.0 is no more building. The following is the...
Read more >
How to Fix 'Your Project Does Not Reference .NETFramework ...
Should you get the same error, you can do these steps to fix the problem: Open the folder that contains the *.csproj file...
Read more >
Multi-targetting .Net Framework and .Net Core in a single project
And build again. 3. Discover what explicit references to framework dlls the netframework target requires. My next error is. error CS0012: The ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found