Untappd.Net icon indicating copy to clipboard operation
Untappd.Net copied to clipboard

Error adding reference to Untappd.Net.dll

Open rickengle opened this issue 8 years ago • 2 comments

Hi, do you have a simple sample app that utilizes Untappd.Net? I compiled your wrapper fine but when trying to add a reference to Untappd.Net.dll I get the error:

Microsoft Visual Studio

A reference to 'bin\Debug\Untappd.Net.dll' could not be added. The project targets '.NETCore' while the file reference targets '.NETFramework'. This is not a supported scenario.

Is that because I am targeting a UWP project when I should instead be using a WinForm/.NetFramework project? I am using Visual Studio 2017.

Thanks, Rick

rickengle avatar Jul 09 '17 00:07 rickengle

Hi rick,

in dotnet people typically do not download source code, but instead import packages from nuget

This project only targets the full framework, so as of now you could not use this in a UWP, or net core project. This project was made years before .net core, and really UWP was a consideration for developers.

I could port this project to .NET Standard, which would let you import it, but you would probably have to wait a few days. If you feel confident enough in dotnet, you could submit a PR porting the library, however you would have to port the code that currently uses restsharp to use HttpClient as restsharp does not support .net core as of now.

TerribleDev avatar Jul 09 '17 02:07 TerribleDev

You would also have to re-write the builds to support core as well...

TerribleDev avatar Jul 09 '17 02:07 TerribleDev