eBay / ebay-oauth-csharp-client

eBay OAuth C# Client Library
Apache License 2.0
57 stars 42 forks source link

.NETFramework Version v4.8 issue #10

Open rubberfashion opened 4 years ago

rubberfashion commented 4 years ago

Hello,

i can not install the package. The following error Code i got:

Install-Package : Could not install package 'eBay.OAuth.Client 1.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.8', 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.

Thank for your help.

arpetris commented 4 years ago

I managed to install the latest stable build from nuget, version 1.0.1, into both a Visual Studio desktop and a web app targeting .Net Framework 4.8. I also installed 1.0.0 into the web app without any problems.

Can you give more details to reproduce this issue?

rubberfashion commented 4 years ago

Hi, i am no expert in that, sorry. Only got this message again and agin and can not install.

What details you need? I create this with VS 2013. And i use desktop App.

Thank you for your support!

arpetris commented 4 years ago

I'm using Visual Studio 2019 Community Edition and installing using the nuget package manager. You might want to try installing via the nuget package manager and see if that works.

I don't have 2013 installed so I'm using the web for the UI options. If you right click on the "references", you should see an item "Manage NuGet Packages ...". Choose the option "Online" on the left and search for eBay OAuth. You should find eBay.OAuth.Client. For me it shows up second on the list. If you click on it, you'll see the option to install. The newest version is 1.0.1 and should be selected automatically.

If that doesn't work, all I can suggest is downloaded the code and building the library yourself. It should be compatible 4.8 since I managed to install it without issue.

rubberfashion commented 4 years ago

Hi,

i created a new project in VS 2013 and used different frameworks. Also used NugetManager. I always get same error, no matter what framework i choose. Maybe i can send you error log or something like this if you tell me how. Also when i download and open your project i got the following error:

Maybe because is use VS 2013?

...\ebay-oauth-csharp-client-master\ebay-oauth-csharp-client-master\Tests\ebay-oauth-csharp-client-tests.csproj : error : The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. ...\ebay-oauth-csharp-client-master\ebay-oauth-csharp-client-master\Tests\ebay-oauth-csharp-client-tests.csproj

arpetris commented 4 years ago

The compile error you are getting may be due to using VS 2013. There is a discussion on stack overflow here:

https://stackoverflow.com/questions/42509313/the-default-xml-namespace-of-the-project-must-be-the-msbuild-xml-namespace

There is a suggestion in the thread to try VS Code instead and some hints on using the command line to work around the problem.