Skip to content

How can i use CommunityToolkit.mvvm as direct dll reference? #897

Closed Answered by muratkarabag
muratkarabag asked this question in Q&A
Discussion options

You must be logged in to vote

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.

  <ItemGroup>
    <Analyzer Include="..\..\bin\CommunityToolkit.Mvvm.CodeFixers.dll" />
    <Analyzer Include="..\..\bin\CommunityToolkit.Mvvm.SourceGenerators.dll" />
  </ItemGroup>

Otherwise it cannot compile the project. you can find these analyzers for your target in nuget package.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by muratkarabag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant