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:
- Created 6 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Cool. 15.3 is rolling now. Early next week everywhere
just to inform if anyone hits here, it has been rolled and VSTS is working just fine… 😎