eXpandFramework / eXpand

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

Cannot open xpand modeleditor after project upgrade to 22.2.3 #970

Closed volokos closed 7 months ago

volokos commented 1 year ago

Cannot open xpand modeleditor after project upgrade to 22.2.3. I got error 'Multiple DevExpress versions found in \bin\debug' in rider

apobekiaris commented 1 year ago

delete all files from your bin and recompile

volokos commented 1 year ago

I deleted bin, obj folder, rebuild project and still have this problem. B.T.W. i see that in \Roaming\Xpand.XAF.ModelEditor.Win\Xpand.XAF.ModelEditor.Win folder all devexpress dll is 22.1 version. Is this ok?

apobekiaris commented 1 year ago

for some reason ME did not upgrade it self this is done automatically by checking the contants of your C:\Users\Tolis\AppData\Roaming\Xpand.XAF.ModelEditor.Win\ to match the version of your project. So you cna try remoing all contents of C:\Users\Tolis\AppData\Roaming\Xpand.XAF.ModelEditor.Win\

if it persistnt you can also try configure the download sources. When ME opens the list of models there is a configure button whiche will allow u to se the ME download source Application/ModelEditor.

Also make sure your project does not reference by mistake any older version. You can look the DX versions on the bin after compile with ME run, there should be no older version there

apobekiaris commented 1 year ago

or you can add the files from the the online repo manually delete the C:\Users\Tolis\AppData\Roaming\Xpand.XAF.ModelEditor.Win\ contents and add them from https://github.com/eXpandFramework/Reactive.XAF/releases/download/untagged-72017c7c694c6db0c95f/Xpand.XAF.ModelEditor.WinDesktop.zip

image

I use the lab versions locally but this shouldn't be the issues

volokos commented 1 year ago

So if i add content from https://github.com/eXpandFramework/Reactive.XAF/releases/download/4.222.1.1/Xpand.XAF.ModelEditor.WinDesktop.zip i'm getting error:

System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'C:\Users\aleksandrs\AppData\Roaming\Xpand.XAF.ModelEditor.Win\\Xpand.XAF.ModelEditor.Win\Xpand.XAF.ModelEditor.Win.exe' with working directory 'C:\Program Files\JetBrains\JetBrains Rider 2022.1.2\jbr\bin'. The system cannot find the file specified. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(String fileName) at ModelEditor.XpandModelEditor.StartMEAsync() in C:\Work\Reactive.XAF\tools\Xpand.XAF.ModelEditor\IDE\XpandModelEditor.cs:line 34 at ReSharperPlugin.Xpand.XpandModelEditorAction.Execute(IDataContext context, DelegateExecute nextExecute) in C:\Work\Reactive.XAF\tools\Xpand.XAF.ModelEditor\IDE\Rider\src\dotnet\ReSharperPlugin.Xpand\XpandModelEditorAction.cs:line 34

volokos commented 1 year ago

because there is Xpand.XAF.ModelEditor.WinDesktop.exe file

volokos commented 1 year ago

maybe i need update rider extension?

apobekiaris commented 1 year ago

hmm there is an issue on this

https://github.com/eXpandFramework/eXpand/issues/966

apobekiaris commented 1 year ago

ME works with Rider 22.2.4 currently and not the latest Rider

volokos commented 1 year ago

BTW why you suggest me to try Xpand.XAF.ModelEditor.WinDesktop.exe but rider try to load Xpand.XAF.ModelEditor.Win.exe?

apobekiaris commented 1 year ago

missuderstand sorry, there are two apps one acts as bootstrapper to load the second app. The first app the bootstrapper is XAF version agnostic and download the version dependent from the online repo.

volokos commented 1 year ago

In releases page of repo i see only platform dependent version of ModelEditor image

apobekiaris commented 1 year ago

the bootstrapper is embedded in the Rider plugin

apobekiaris commented 1 year ago

when plugin starts it extracts and saves locally if not exists.

apobekiaris commented 1 year ago

attaching all contents of my C:\Users\Tolis\AppData\Roaming\Xpand.XAF.ModelEditor.Win\ in case u wanna try them as is

https://e1.pcloud.link/publink/show?code=XZqafmZTO8xGsYMD2V3DiahJAmjxpbijHyy

there are many versions i just let them in

apobekiaris commented 1 year ago

let me know so I can remove the link once u got it

volokos commented 1 year ago

Thanks, i will try

volokos commented 1 year ago

So, i'm getting this error on me loading now: The SDK 'Microsoft.NET.Sdk' specified could not be found. C:\Projects\VolokosFramework\VolokosFramework.Win\VolokosFramework.Win.csproj

apobekiaris commented 1 year ago

do u use the new SDK format on your csproj file?

volokos commented 1 year ago

Project Sdk="Microsoft.NET.Sdk" in csproj and in global.json { "sdk": { "version": "6.0.0", "rollForward": "latestMajor", "allowPrerelease": true } }

apobekiaris commented 1 year ago

The SDK 'Microsoft.NET.Sdk' specified could not be found. C:\Projects\VolokosFramework\VolokosFramework.Win\VolokosFramework.Win.csproj

screenshot me how do u get this?

apobekiaris commented 1 year ago

can u also share the top 10 lines of your csproj?

volokos commented 1 year ago

`0.01.23 17:19:23.392 Window closing: 10.01.23 17:19:23.393 Window closed: Xpand.XAF.ModelEditor.Win Error: 0 : 10.01.23 17:19:23.418 ================================================================================ The error occurred:

Type:       InvalidProjectFileException
Message:    The SDK 'Microsoft.NET.Sdk' specified could not be found.  C:\Projects\VolokosFramework\VolokosFramework.Win\VolokosFramework.Win.csproj
Data:       0 entries
Stack trace:

at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args) at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List1& projects, SdkResult& sdkResult, Boolean throwOnFileNotExistsError) at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement, SdkResult& sdkResult) at Microsoft.Build.Evaluation.Evaluator4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator4.Evaluate() at Microsoft.Build.Evaluation.Evaluator4.Evaluate(IEvaluatorData4 data, ProjectRootElement root, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary1 environmentProperties, ILoggingService loggingService, IItemFactory2 itemFactory, IToolsetProvider toolsetProvider, ProjectRootElementCacheBase projectRootElementCache, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, Int32 submissionId, EvaluationContext evaluationContext, Boolean interactive) at Microsoft.Build.Evaluation.Project.ProjectImpl.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project.ProjectImpl.Initialize(IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary2 globalProperties, String toolsVersion) at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, String toolsVersion) at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName) at Xpand.XAF.ModelEditor.Module.Win.MSBuildExtensions.<>c__DisplayClass1_0.<Projects>b__1(ProjectInSolution projectInSolution) in C:\Work\Reactive.XAF\tools\Xpand.XAF.ModelEditor\IDE\ModelEditor.Win\Xpand.XAF.ModelEditor.Module.Win\MSBuildExtensions.cs:line 23 at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Reactive.Linq.ObservableImpl.SelectMany2.EnumerableSelector..OnNext(TSource value) in //Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:line 1361 InnerException is null `

volokos commented 1 year ago

`

WinExe net6.0-windows true ExpressApp.ico false 1.0.* 1.0.0.0 Debug;Release;EasyTest enable AnyCPU;x86 `
apobekiaris commented 1 year ago

looks like MSBuild framework has some issues and wondered if u used the unsupport non SDK format it looks fine. Can you try it in a non exe project also can u try it in a empty project as produced from the Xaf solution wizard

apobekiaris commented 1 year ago

check Xpand ME version >22.2.4 not out yet

apobekiaris commented 1 year ago

The pre-release 4.222.2.0 in the Reactive.XAF lab branch includes commits that relate to this task:

To minimize version conflicts we recommend that you use the Xpand.XAF.Core.All, Xpand.XAF.Win.All, Xpand.XAF.Web.All packages. Doing so, all packages will be at your disposal and .NET will add a dependecy only to those packages that you actually use and not to all (see the Modules installation-registrations youtube video).

Released packages: Xpand.Extensions v.4.222.2
Xpand.Extensions.Blazor v.4.222.2
Xpand.Extensions.Mono.Cecil v.4.222.2
Xpand.Extensions.Office.Cloud v.4.222.2
Xpand.Extensions.Office.Cloud.Google.Blazor v.4.222.2
Xpand.Extensions.Reactive v.4.222.2
Xpand.Extensions.XAF v.4.222.2
Xpand.Extensions.XAF.Xpo v.4.222.2
Xpand.TestsLib v.4.222.2
Xpand.TestsLib.Blazor v.4.222.2
Xpand.TestsLib.Common v.4.222.2
Xpand.TestsLib.EasyTest v.4.222.2
Xpand.VersionConverter v.4.222.2
Xpand.XAF.Core.All v.4.222.2
Xpand.XAF.Modules.AutoCommit v.4.222.2
Xpand.XAF.Modules.Blazor v.4.222.2
Xpand.XAF.Modules.BulkObjectUpdate v.4.222.2
Xpand.XAF.Modules.CloneMemberValue v.4.222.2
Xpand.XAF.Modules.CloneModelView v.4.222.2
Xpand.XAF.Modules.Email v.4.222.2
Xpand.XAF.Modules.GridListEditor v.4.222.2
Xpand.XAF.Modules.HideToolBar v.4.222.2
Xpand.XAF.Modules.JobScheduler.Hangfire v.4.222.2
Xpand.XAF.Modules.JobScheduler.Notification v.4.222.2
Xpand.XAF.Modules.MasterDetail v.4.222.2
Xpand.XAF.Modules.ModelMapper v.4.222.2
Xpand.XAF.Modules.ModelViewInheritance v.4.222.2
Xpand.XAF.Modules.Office.Cloud.Google v.4.222.2
Xpand.XAF.Modules.Office.Cloud.Google.Calendar v.4.222.2
Xpand.XAF.Modules.Office.Cloud.Google.Tasks v.4.222.2
Xpand.XAF.Modules.Office.DocumentStyleManager v.4.222.2
Xpand.XAF.Modules.OneView v.4.222.2
Xpand.XAF.Modules.PositionInListView v.4.222.2
Xpand.XAF.Modules.ProgressBarViewItem v.4.222.2
Xpand.XAF.Modules.RazorView v.4.222.2
Xpand.XAF.Modules.Reactive v.4.222.2
Xpand.XAF.Modules.Reactive.Logger v.4.222.2
Xpand.XAF.Modules.Reactive.Logger.Client.Win v.4.222.2
Xpand.XAF.Modules.Reactive.Logger.Hub v.4.222.2
Xpand.XAF.Modules.Reactive.Rest v.4.222.2
Xpand.XAF.Modules.RefreshView v.4.222.2
Xpand.XAF.Modules.SequenceGenerator v.4.222.2
Xpand.XAF.Modules.Speech v.4.222.2
Xpand.XAF.Modules.SpellChecker v.4.222.2
Xpand.XAF.Modules.StoreToDisk v.4.222.2
Xpand.XAF.Modules.SuppressConfirmation v.4.222.2
Xpand.XAF.Modules.TenantManager v.4.222.2
Xpand.XAF.Modules.ViewEditMode v.4.222.2
Xpand.XAF.Modules.ViewItemValue v.4.222.2
Xpand.XAF.Modules.ViewWizard v.4.222.2
Xpand.XAF.Modules.Windows v.4.222.2
Xpand.XAF.Web.All v.4.222.2
Xpand.XAF.Win.All v.4.222.2

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 these packages 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 7 months ago

Closing issue for age. Feel free to reopen it at any time.

.Thank you for your contribution.