How add Community Toolkit.Mvvm to Jeremy's template?

How add Community Toolkit.Mvvm to Jeremy's template?

reylorente1
Collaborator Collaborator
517 Views
3 Replies
Message 1 of 4

How add Community Toolkit.Mvvm to Jeremy's template?

reylorente1
Collaborator
Collaborator

Greetings Jeremy and for those who use Jeremy's template:

 

Utilizo su plantilla,para elaborar mis complemento,incluso adicionando WPF.He leido que si adiciono CommunityToolkit.Mvvm,puedo realizar complemento MVVm(valga la redundacia),entonces adicione este paquete, y ya abriendo un proyecto,y me da el la siguiente alerta.(I use your template to create my plugins, even adding WPF. I have read that if I add CommunityToolkit.Mvvm, I can create an MVVm plugin (...), so I added this package, and already opening a project, and it gives me the following Warnning)

Warnning:

The MVVM Toolkit source generators might not be loaded correctly, as the current project is using the packages.config setup to restore NuGet packages. Source generators require PackageReference to be used (either in a legacy-style or SDK-style .csproj project, both are supported as long as PackageReference is used).

 

Entonces me di la tarea de revisar csproj,y al parecer estas correcto:(So I took the task of checking csproj, and apparently you are correct:)

<ItemGroup>
    <Reference Include="CommunityToolkit.Mvvm, Version=8.2.0.0, Culture=neutral, PublicKeyToken=4aff67a105548ee2, processorArchitecture=MSIL">
      <HintPath>..\packages\CommunityToolkit.Mvvm.8.2.2\lib\netstandard2.0\CommunityToolkit.Mvvm.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
      <HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.7.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
    </Reference>
....
</ItemGroup>
Could you give an alternative solution or some suggestion on how I can solve it.
 
 

 

 

0 Likes
518 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni

Maybe you would be better off using one of the alternatives:

  

  

Most of them are much more advanced than my primitive minimalistic template.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 4

reylorente1
Collaborator
Collaborator

Gracias Jeremy, actualicé su plantilla a Revit 2024, pero me siguió dando la misma advertencia, entonces, lo que hice fue instalar CommunityToolkit.Mvvm 8.2.0 en vez de del 8.2.2 y no me da la advertencia

 

Thanks Jeremy, I updated your template to Revit 2024, but it kept giving me the same warning, so what I did was install CommunityToolkit.Mvvm 8.2.0 instead of 8.2.2 and it doesn't give me the warning.

0 Likes
Message 4 of 4

jeremy_tammik
Alumni
Alumni

Glad to hear you found a solution. Congratulations!

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open