How can i use CommunityToolkit.mvvm as direct dll reference? #897
-
Hi! I want to use CommunityToolkit.mvvm as direct dll reference because i need offline development environment. But when i add as a dll reference it couldnt work because it can not generate observable objects i think. How can i solve that issue? My last option is offline nuget server but i dont want it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found a solution. CommunityToolkit.Mvvm.dll needs analyzers like SourceCodeGenerator and CodeFixers. It can be solved by adding like below manually into .csproj file.
Otherwise it cannot compile the project. you can find these analyzers for your target in nuget package. |
Beta Was this translation helpful? Give feedback.
I found a solution. CommunityToolkit.Mvvm.dll needs analyzers like SourceCodeGenerator and CodeFixers. It can be solved by adding like below manually into .csproj file.
Otherwise it cannot compile the project. you can find these analyzers for your target in nuget package.