Working with legacy Handles
No edit summary
(Automatically adding template at the end of the page.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Prior to the invention of declarative ViewModels you got data into views with different types of handles.
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 to use these for new stuff since the ViewModels are superior in so many ways (maintenance, efficient fetch, type checking, element usage tracking etc).
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 in 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 try to 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]]
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.


"You have version x of the MDrivenFramework installed, but version y on the assemblies in the solution"
The best way to get on track:
[[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.
 
Best way to get on track:
# Install the latest MDrivenFramework
# Install the latest MDrivenFramework
# Update the ECO/MDriven nuget packages in the solution to use the same version number
# Update the ECO/MDriven Nuget packages in the solution to use the same version number
# Recompile the solution
# Recompile the solution


==== Troubleshooting ====
==== Troubleshooting ====
If you have gone through the steps above but still get experience this problem it is probably related to old GACced versions on MDriven Assemblies.
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 (Gllobal assembly cache of .net) was used by MDrivenFramework for VS2019 and earlier.


To remove the GAC assemblies you can simple uninstall VS2019 - but you may also need to clear the GAC manually - you do this by opening this folder as admin: C:\windows\Microsoft.NET\assembly\GAC_MSIL
The GAC (Global assembly cache of .net) was used by MDrivenFramework for VS2019 and earlier.


Delete folders in here named: Eco.* and MDriven.* and WECPOFLogic
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
[[Category:MDriven Framework]]
[[Category:MDriven Framework]]
{{Edited|July|12|2024}}

Latest revision as of 15:50, 10 February 2024

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