eXpandFramework / eXpand

DevExpress XAF (eXpressApp) extension framework. 𝗹𝗶𝗻𝗸𝗲𝗱𝗶𝗻.𝗲𝘅𝗽𝗮𝗻𝗱𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸.𝗰𝗼𝗺, 𝘆𝗼𝘂𝘁𝘂𝗯𝗲.𝗲𝘅𝗽𝗮𝗻𝗱𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸.𝗰𝗼𝗺 and 𝘁𝘄𝗶𝘁𝘁𝗲𝗿 @𝗲𝘅𝗽𝗮𝗻𝗱𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸 and or simply 𝗦𝘁𝗮𝗿/𝘄𝗮𝘁𝗰𝗵 this repository and get notified from 𝗚𝗶𝘁𝗛𝘂𝗯
http://expand.expandframework.com
Microsoft Public License
222 stars 115 forks source link

VS ModelEditor: Xpand.XAF.Modules.Reactive.Extensions.CommonExtensions.ToUnit not found in 19.1.503.3 #518

Closed krombipils closed 5 years ago

krombipils commented 5 years ago

The VS ModelEditor does not work (again) after I updated to 19.1.503.3.

Exception occurs while initializing the 'Xpand.XAF.Modules.CloneMemberValue.CloneMemberValueModule' module: Methode nicht gefunden: "System.IObservable`1<System.Reactive.Unit> Xpand.XAF.Modules.Reactive.Extensions.CommonExtensions.ToUnit(System.IObservable`1<!!0>)

VS also added a Binding Redirect for Xpand.XAF.Modules.Reactive to fix issues between 1.2.46.4 and 1.2.46.1

apobekiaris commented 5 years ago

i cannot tell how to repro it? from which version u upgrade?

krombipils commented 5 years ago

I upgraded from 19.1.503.1. Could you please try to repro it with the modified XVideoRental project. I replaced some dll references with PackageReference to eXpand 19.1.503.3. When I try to open Model.DesignedDiffs.xafml of Module.Win, I get the MissingMethodException XVideoRental.zip

apobekiaris commented 5 years ago

I reproduced the issue and update the CI process with guard code to avoid it the same mistake in the future.

in addition I worked on the ModelMapper dependency issue. The problem actually is that VS gets confused on the location of the assemblies when design time as reflection is used to load them and not direct references. For this reason from next minor the Xpand.VSIX installation will be mandatory, the module will check and throw if not. The plugin will detect if ModelMapper is installed and will copy all files to a special directory which VS probes for assemblies.

expand commented 5 years ago

The DevExpress.XAF repository includes commits that relate to this task:

Please update the related Nuget packages and test if issues is addressed. These are nightly nuget packages available only from our NugetServer.

If you do not use the Xpand.XAF.Modules directly but through a module of the main eXpandFramework project, please wait for the bot to notify you again when integration is finished or update the related packages manually.

Thanks a lot for your contribution.

expand commented 5 years ago

eXpand.lab release 19.1.503.4 includes commit that relate to this task:

Please test if it addresses the problem. If you use nuget add our LAB NugetServer as a nuget package source in VS.

Thanks a lot for your contribution.

krombipils commented 5 years ago

ModelEditor seems to be working fine now. Thank you!