Page Index Toggle Pages: [1] 2  Send TopicPrint
Very Hot Topic (More than 25 Replies) what is mindfusion.common.wpf is use for? (Read 7385 times)
David Chiang
Junior Member
**
Offline


I Love MindFusion!

Posts: 75
Joined: Apr 15th, 2020
what is mindfusion.common.wpf is use for?
Oct 8th, 2021 at 4:38am
Print Post  
Hello,

I try to use CustomTemplate project in my project and it need mindfusion.common.wpf.dll. Once put it in the reference then VS2019 seems not able most of the control. How can it be resolve?

Thanks

David Chiang
  

2021-10-08_123602.png ( 118 KB | 97 Downloads )
2021-10-08_123602.png
Back to top
 
IP Logged
 
David Chiang
Junior Member
**
Offline


I Love MindFusion!

Posts: 75
Joined: Apr 15th, 2020
Re: what is mindfusion.common.wpf is use for?
Reply #1 - Oct 8th, 2021 at 4:57am
Print Post  
Before add
  

2021-10-08_125607.png ( 17 KB | 102 Downloads )
2021-10-08_125607.png
Back to top
 
IP Logged
 
David Chiang
Junior Member
**
Offline


I Love MindFusion!

Posts: 75
Joined: Apr 15th, 2020
Re: what is mindfusion.common.wpf is use for?
Reply #2 - Oct 8th, 2021 at 4:58am
Print Post  
Here is most of my reference
  

2021-10-08_125800.png ( 70 KB | 97 Downloads )
2021-10-08_125800.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: what is mindfusion.common.wpf is use for?
Reply #3 - Oct 8th, 2021 at 5:37am
Print Post  
Hi,

Check if you are adding common.wpf.dll for same .NET runtime as the other mindfusion assemblies.

CS0103 error means the compiler cannot find definition for some identifier, make sure you aren't getting that from other code you've copied along with CustomTemplates one, which could be unrelated to the common assembly. E.g. the compiler might first be showing error about missing reference, and only after you resolve it continue finding other errors in the code.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
David Chiang
Junior Member
**
Offline


I Love MindFusion!

Posts: 75
Joined: Apr 15th, 2020
Re: what is mindfusion.common.wpf is use for?
Reply #4 - Oct 8th, 2021 at 6:41am
Print Post  
Hello, thanks for quick reply. After add common.wpf.dll, the             InitializeComponent() is not able to executed and not recognize most of the control. I think maybe the meterialdesign conflict with  common.wpf.dll? 
  

2021-10-08_144102.png ( 49 KB | 93 Downloads )
2021-10-08_144102.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: what is mindfusion.common.wpf is use for?
Reply #5 - Oct 8th, 2021 at 7:09am
Print Post  
What .NET version does your project target, and does the CustomTemplates example itself compile on your side?

InitializeComponent is created by Xaml compiler (in the automatically generated part of partial window class), so Xaml compilation fails apparently. That will probably happen if the compiler cannot load assemblies due to version mismatch.

I guess you should check if your common.wpf and diagramming.wpf are from same WpfDiagram version and for same .NET version. Instead of using the locally installed assemblies, you could try removing the references and adding them through the MindFusion.Pack.Wpf package from nuget.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
David Chiang
Junior Member
**
Offline


I Love MindFusion!

Posts: 75
Joined: Apr 15th, 2020
Re: what is mindfusion.common.wpf is use for?
Reply #6 - Oct 8th, 2021 at 8:23am
Print Post  
I can run your sample program with same framework version. 4.72

Thanks
  

2021-10-08_162217.png ( 26 KB | 97 Downloads )
2021-10-08_162217.png
Back to top
 
IP Logged
 
David Chiang
Junior Member
**
Offline


I Love MindFusion!

Posts: 75
Joined: Apr 15th, 2020
Re: what is mindfusion.common.wpf is use for?
Reply #7 - Oct 8th, 2021 at 8:25am
Print Post  
Ok, Let me try to get the component form the nuget, thanks
  
Back to top
 
IP Logged
 
David Chiang
Junior Member
**
Offline


I Love MindFusion!

Posts: 75
Joined: Apr 15th, 2020
Re: what is mindfusion.common.wpf is use for?
Reply #8 - Oct 8th, 2021 at 8:30am
Print Post  
case close. thanks a lot NuGet works. Cheesy Cheesy Cheesy
  
Back to top
 
IP Logged
 
David Chiang
Junior Member
**
Offline


I Love MindFusion!

Posts: 75
Joined: Apr 15th, 2020
Re: what is mindfusion.common.wpf is use for?
Reply #9 - Oct 13th, 2021 at 8:33am
Print Post  
I use Nuget to get mindfusion.pack.wpf and I have licence key which I got last year. I still get the trail version warning. Should I get last year pack? and where I can get it?
Thanks
  

2021-10-13_163112.png ( 118 KB | 93 Downloads )
2021-10-13_163112.png
Back to top
 
IP Logged
 
David Chiang
Junior Member
**
Offline


I Love MindFusion!

Posts: 75
Joined: Apr 15th, 2020
Re: what is mindfusion.common.wpf is use for?
Reply #10 - Oct 13th, 2021 at 8:35am
Print Post  
And I try for another project got the other error. How can I solve it? Thanks
  

2021-10-13_163403.png ( 69 KB | 95 Downloads )
2021-10-13_163403.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: what is mindfusion.common.wpf is use for?
Reply #11 - Oct 13th, 2021 at 9:31am
Print Post  
You should be able to select your older version from nuget package manager's Version drop-down.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
David Chiang
Junior Member
**
Offline


I Love MindFusion!

Posts: 75
Joined: Apr 15th, 2020
Re: what is mindfusion.common.wpf is use for?
Reply #12 - Oct 13th, 2021 at 9:52am
Print Post  
Ok, I got the 2020.1.0 version. Compiler go though but when I run it I got following message.

System.IO.FileLoadException: 'Could not load file or assembly 'MindFusion.Licensing, Version=1.0.6.400, Culture=neutral, PublicKeyToken=9d02e21d957ddaef' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'

How can I fix it? Thanks
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: what is mindfusion.common.wpf is use for?
Reply #13 - Oct 13th, 2021 at 10:29am
Print Post  
It works on my end as in screenshot. Please let me know what .NET version are you using. Also check if there aren't any local references left in the solution to mindfusion assemblies that could conflict with ones from nuget package. E.g. in some helper / user control project and not only in main one.

Anyway your original problem probably happens from conflicting assembly versions too, for example if you reference diagramming assembly from .NET 4.0 distribution and spreadsheet assembly from .NET 4.5 distribution.

Regards,
Slavcho
  

Untitled_022.png ( 132 KB | 99 Downloads )
Untitled_022.png
Back to top
 
IP Logged
 
David Chiang
Junior Member
**
Offline


I Love MindFusion!

Posts: 75
Joined: Apr 15th, 2020
Re: what is mindfusion.common.wpf is use for?
Reply #14 - Oct 13th, 2021 at 11:50am
Print Post  
I am using 4.7.2. I've tested from the sample program and works fine. And put the local build reference dll into the sample program and works fine. The rest of the references are from nuget. Please advise how to do next. Much appreciated..

David Chiang
  

2021-10-13_195341.png ( 566 KB | 94 Downloads )
2021-10-13_195341.png
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint