Working with legacy Handles
No edit summary
No edit summary
Line 5: Line 5:
The handles show up in the toolbox for relevant designers like WinForms-form designer and EcoSpace designer:
The handles show up in the toolbox for relevant designers like WinForms-form designer and EcoSpace designer:
[[File:2022-08-02 08h51 12.png|none|thumb]]
[[File:2022-08-02 08h51 12.png|none|thumb]]
When you try to use them or set up an expression in one of them, you may experience an issue like this:
When you try to use them or set up an expression in one of them, you may experience an issue like this:<blockquote>"You have version x of the MDrivenFramework installed, but version y on the assemblies in the solution"</blockquote>[[File:2022-08-02 08h46 10.png|none|thumb|396x396px]]
 
"You have version x of the MDrivenFramework installed, but version y on the assemblies in the solution"
[[File:2022-08-02 08h46 10.png|none|thumb|396x396px]]
To fix this, you should have the same version of the MDriven VS2022-vsx installed as you use in the Nuget packages in your solution.
To fix this, you should have the same version of the MDriven VS2022-vsx installed as you use in the Nuget packages in your solution.


Line 21: Line 18:
The GAC (Global assembly cache of .net) was used by MDrivenFramework for VS2019 and earlier.
The GAC (Global assembly cache of .net) was used by MDrivenFramework for VS2019 and earlier.


To remove the GAC assemblies, you can simply uninstall VS2019. You may also need to clear the GAC manually - you can do this by opening this folder as admin: C:\windows\Microsoft.NET\assembly\GAC_MSIL
To remove the GAC assemblies, simply uninstall VS2019. You may also need to clear the GAC manually - do this by opening this folder as admin: C:\windows\Microsoft.NET\assembly\GAC_MSIL
 
* Delete folders in here named: Eco.* and MDriven.* and WECPOFLogic
Delete folders in here named: Eco.* and MDriven.* and WECPOFLogic
[[Category:MDriven Framework]]
[[Category:MDriven Framework]]

Revision as of 06:06, 20 July 2023

Before the invention of declarative ViewModels, you got data into views with different types of handles.

These are still available today in VS2022, but we do not recommend using these for new stuff since the ViewModels are superior in many ways (maintenance, efficient fetch, type checking, element usage tracking, etc.).

The handles show up in the toolbox for relevant designers like WinForms-form designer and EcoSpace designer:

2022-08-02 08h51 12.png

When you try to use them or set up an expression in one of them, you may experience an issue like this:

"You have version x of the MDrivenFramework installed, but version y on the assemblies in the solution"

2022-08-02 08h46 10.png

To fix this, you should have the same version of the MDriven VS2022-vsx installed as you use in the Nuget packages in your solution.

The best way to get on track:

  1. Install the latest MDrivenFramework
  2. Update the ECO/MDriven Nuget packages in the solution to use the same version number
  3. Recompile the solution

Troubleshooting

If you have gone through the steps above but still get the same experience, this problem is probably related to old GACced versions on MDriven Assemblies.

The GAC (Global assembly cache of .net) was used by MDrivenFramework for VS2019 and earlier.

To remove the GAC assemblies, simply uninstall VS2019. You may also need to clear the GAC manually - do this by opening this folder as admin: C:\windows\Microsoft.NET\assembly\GAC_MSIL

  • Delete folders in here named: Eco.* and MDriven.* and WECPOFLogic
This page was edited 99 days ago on 02/10/2024. What links here