Skip to content

CS0012 error when compiling the sln file #25

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions