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.

.NET Core 1.0 no longer supported by Microsoft.NET.Test.Sdk?

See original GitHub issue

Description

Microsoft.NET.Test.Sdk 16.3.0 claims it supports netcoreapp1.0, but it depends on Microsoft.TestPlatform.TestHost 16.3.0, which only supports netcoreapp2.1.

Steps to reproduce

  • In a test project targeting netcoreapp1.0, upgrade to the latest version (16.3.0) of Microsoft.NET.Test.Sdk.
  • restore packages

Expected behavior

Restore should succeed, as it did with 16.2.0

Actual behavior

Restore fails:

...\MyProject.csproj : warning NU1701: Package 'Microsoft.TestPlatform.TestHost 16.3.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
...\MyProject.csproj : error NU1202: Package Microsoft.TestPlatform.TestHost 16.3.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.TestPlatform.TestHost 16.3.0 supports:
...\MyProject.csproj : error NU1202:   - net45 (.NETFramework,Version=v4.5)
...\MyProject.csproj : error NU1202:   - netcoreapp2.1 (.NETCoreApp,Version=v2.1)
...\MyProject.csproj : error NU1202:   - uap10.0 (UAP,Version=v10.0)

Diagnostic logs

N/A

Environment

Windows 10, .NET Core SDK 3.0.100

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
thomaslevesquecommented, Jan 2, 2020

@singhsarab thanks, but the problem is not really solved… The package is still lying about which framework it supports. It says that it supports netcoreapp1.0, but it’s not true.

0reactions
singhsarabcommented, Jan 2, 2020

Here is the official support page for reference https://dotnet.microsoft.com/platform/support/policy/dotnet-core

And the recommendation is to bump up the target framework, or to have a reference to older version of the Microsoft.NET.Test.Sdk

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft.NET.Test.Sdk needs the correct .net core version ...
I had this problem while running from VS2019 v16.4.3. I only have the 3.1.1 Microsoft.NETCore.App SDK installed. That SDK should be able to...
Read more >
.NET and .NET Core official support policy - Dot.net
NET Support Policy page. Every Microsoft product has a lifecycle. The lifecycle begins when a product is released and ends when it's no...
Read more >
Remove the .NET runtime and SDK
This article describes how to uninstall .NET. You'll need to determine which versions of the .NET Runtime and SDK are currently installed, ...
Read more >
NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >
NETSDK1138: The target framework is out of support
NETSDK1138 indicates that your project targets a version of the framework that is out of support. The full error message is similar to...
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