TestProject Forum
Powered by leading experts in the test automation community

Get error installing the TestProject SDK for C#

I am trying to install the TestProject SDK using the following nuget command in Visual Studio 2017:

Install-Package TestProject.SDK -Version 0.50.0

I receive the following error:

Install-Package : Could not install package ‘TestProject.SDK 0.50.0’. You are trying to install this package into a project that targets ‘.NETFramework,Version=v4.6.1’, but the package does not
contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1

  • Install-Package TestProject.SDK -Version 0.50.0
  •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

I have tried using .NET framework 4.5.2 and 4.6.1

I’ve also installed the following .NET software per the gitub site:


Also I’ve installed the dependencies listed in the nuget page.

For another approach, I’ve downloaded the C# SDK solution on Github called TestProject.SDK.Examples.IOS.Test.

I’ve tried to build it but get the following error:

Package TestProject.SDK 0.50.0 is not compatible with netcoreapp1.1

In Project Properties, Target Framework, I can’t select .NET Core 2.1 even though I’ve installed it.
From searching stackoverflow.com, this seems to be an issue with VS 2017.

[list]Hi aden_collector,

We do not support .NET Framework, but we do support .NET Core 2.1

Here some links to guides and tutorials that might help you:

[li].NET Core Test Automation in Selenium Using Page Object & Page Factory - https://blog.testproject.io/2018/12/18/net-core-test-automation-selenium-page-object-page-factory/[/li]
[li]YouTube tutorial part 1- https://www.youtube.com/watch?v=lk0EYGn9Ano[/li]
[li]YouTube tutorial part 2 - https://www.youtube.com/watch?v=KoIpgnXZ_K0&t=308s[/li][/list]

Please let me know if you will need any further assistance.
We can even schedule an online session :slight_smile:

Kind regards,