Skip to content

The type 'Application' is defined in an assembly that is not referenced. You must add a reference to assembly 'Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null' #19066

Answered by jeromelaban
Mike-E-angelo asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks. The issue here is that the projects tree from this point, only has one net9.0 target framework which is used by uno to refer to skia/webassembly compatible targets.

To fix this, you an either specify a list of TargetFrameworks in all the projects referenced by your head that matches at least your top-level project (if you want to use Uno API in those projects), or you can replace the Sdk="uno.sdk" line by Sdk="Microsoft.Net.Sdk" at the top of the child projects (if you only want to use plain .NET BCL APIs).

The Uno Platform Library template contains the TargetFrameworks that need to be present, if you need an example.

Note also that it is generally not a good idea to set the Targe…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@Mike-E-angelo
Comment options

@jeromelaban
Comment options

Answer selected by Mike-E-angelo
@Mike-E-angelo
Comment options

Comment options

You must be logged in to vote
2 replies
@Mike-E-angelo
Comment options

@DevTKSS
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants