eviabs / downtify-premium

Downtify is an open source Spofity downloader which makes it possible to download all your favourite songs and/or playlists directly from spotify. A Spotify Premium account is required.
GNU General Public License v3.0
367 stars 37 forks source link

CS0012 error when compiling the sln file #25

Open ghost opened 3 years ago

ghost commented 3 years ago

I'm aiming to compile this into an exe via msbuild tool and when i had run it with 'msbuild "C:\Users\User\Documents\My Project\My Project.sln" /t:Rebuild /p:Configuration=Release /p:Platform="Any CPU"' similar command ( as explained here: https://superuser.com/questions/604953/how-can-i-compile-a-net-project-without-having-visual-studio-installed ), but..

When i checked the results, nothing and when i checked deeper, cmd showed the following error:

'SpotifyDownloader.cs(46,15): error CS0012: Type 'System.Object' is defined in an assembly that is not used as a reference. Add a reference to the assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2dd d51'. [H:[Arquivos]\Aplicativos\Downtify Premium\Downtify\Downtify.csproj]'

How do i solve this and be able to compiled this program into exe and run it?

LeeThompson commented 2 years ago

Doesn't compile for me either.

lovemonkeyz commented 2 years ago

I have no issues compiling in Visual Studio.

I'd recommend just grabbing the VS Community edition (free to use) to compile it.

Reasoning behind MSBuild failing: https://stackoverflow.com/questions/24458379/visual-studio-build-successful-msbuild-fails