downtify-premium icon indicating copy to clipboard operation
downtify-premium copied to clipboard

CS0012 error when compiling the sln file

Open ghost opened this issue 5 years ago • 2 comments

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?

ghost avatar Dec 20 '20 14:12 ghost

Doesn't compile for me either.

LeeThompson avatar Feb 11 '22 00:02 LeeThompson

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

lovemonkeyz avatar Feb 11 '22 16:02 lovemonkeyz