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

Model Editor Error #1051

Open DannyRawlings opened 5 months ago

DannyRawlings commented 5 months ago

Hi ya,

I have been unable to open the model editor since rebuilding my Windows OS

I have found this error in the Model Editor log file under the path "AppData\Local\Xpand\Xpand.XAF.ModelEditor.Win\4.232.2.0"

**Xpand.XAF.ModelEditor.Win Error: 0 : 22.03.24 15:31:37.175 ================================================================================ The error occurred:

Type:       InvalidProjectFileException
Message:    The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.**

Is there anything you can recommend to resolve this?

Cheers

Dan

apobekiaris commented 5 months ago

given that u have 6,7,8 sdk installed and at least a system restart

the only thing I find it strange is the path mine is on

AppData\Roaming\Xpand.XAF.ModelEditor.Win\WinDesktop\net8.0\4.232.2.0\

DannyRawlings commented 5 months ago

I will try and reinstall it as my Roaming folder path looks different to yours

image

DannyRawlings commented 5 months ago

Still no luck after a reinstall - The version being installed via Visual Studio is older than the release on GitHub. I have also tried to install via the VSIX file but that fails

image

image

DannyRawlings commented 5 months ago

Update - I have now tried a different user on my machine and the error is the same. I have also reinstall both .net 7 & 8 sdks

DannyRawlings commented 5 months ago

So - When I first run the editor I see it pop up, the 'Parsing Projects' appears followed by nothing on my screen.

This is the full error I see in the log

Type: InvalidProjectFileException Message: The SDK 'Microsoft.NET.Sdk' specified could not be found. C:\Users\i007106\source\repos\DXApplication2\DXApplication2.Module\DXApplication2.Module.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.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) InnerException is null

DannyRawlings commented 5 months ago

ok, I have finally figured out how to get it to work. I download the Model zip files and extracted it to the 'Roaming\Xpand.XAF.ModelEditor.Win\WinDesktop\net7.0\4.232.4.0' after that it seems to be happy. The issue was that it was not creating the WinDesktop folder

apobekiaris commented 5 months ago

C:\Users\i007106\source\repos\DXApplication2\DXApplication2.Module\DXApplication2.Module.csproj

looks like u testing it with a distributable sample can u share it?

DannyRawlings commented 5 months ago

That was just a sample project I created using the Wizard - I wanted a project that had nothing in it to make sure that my project wasn't causing the issue

apobekiaris commented 5 months ago

if u still have it post it here please

DannyRawlings commented 5 months ago

No probs - see attached DXApplication2.zip

expand commented 4 months ago

i have pushed a new version for both IDE and tested your solution while first clean the Roaming ME folder and worked fine.

Note, that you should have a folder with the solution targetframework

for me is

C:\Users\Tolis\AppData\Roaming\Xpand.XAF.ModelEditor.Win\WinDesktop\net7.0\4.232.4.0\

expand commented 4 months ago

the files are downloaded in the C:\Users\Tolis\AppData\Roaming\Xpand.XAF.ModelEditor.Win

previosuly i mentioned that AppData\Local\Xpand\Xpand.XAF.ModelEditor.Win\4.232.2.0 looks different, my bad that is also correct is the location of the log. The ME is in C:\Users\Tolis\AppData\Roaming\Xpand.XAF.ModelEditor.Win