Open CWolffIF opened 1 month ago
The ME works only for the debug release so make sure u have build the project first in debug. Additionally try to delete all ME files from the roaming path.
Let me know if my suggestions did not work
Hi,
I deleted everything, but the same error.
do u recall anything that change in your enviroment since your last successfull run?
Yes, I deinstalled VS2019. After that I made a repair VS2022.
I try to Deinstal Net.SDK from VS2022 and than reinstall. May it helps......
have u restarted?
Yes. I´ve reinstalled everthing and restarted, emptied the ME Pathes and started in Debug. Same error.
I wonder about MSBuildExtensions.cs:line 25
Type: InvalidProjectFileException Message: The SDK 'Microsoft.NET.Sdk' specified could not be found. C:\DevProjects\iXISnetJH\iXISXRM.Module\iXISXRM.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.Evaluator
4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List
1& projects, SdkResult& sdkResult, Boolean throwOnFileNotExistsError) at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement, SdkResult& sdkResult) at Microsoft.Build.Evaluation.Evaluator
4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator
4.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, IDictionary
2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary`2 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.b__1(ProjectInSolution projectInSolution) in C:\Work\Reactive.XAF\tools\Xpand.XAF.ModelEditor\IDE\ModelEditor.Win\Xpand.XAF.ModelEditor.Module.Win\MSBuildExtensions.cs:line 25
I cannot follow that is a native call with the Microsoft.Build.Evaluation
lib and it worked b4 your sdk reinstallation. In addition also it works on my side and nobody else reported issues. Do you have specific concerns? My impression is that your system config is suffering.
Did you also tried it in a different machine? the msg is clear the SDK is not found meaning paths problem e.g.
I tried everything from that link. But everything seems to be OK. The SDK is found and the SDK check says
PS C:\devprojects\ixisnetjh> dotnet --list-sdks 8.0.303 [C:\Program Files\dotnet\sdk]
8.0.303 Auf dem neuesten Stand.
Testen Sie die neuesten .NET SDK-Features mit .NET 9.0.100-preview.6.24328.19.
Microsoft.NETCore.App 6.0.12 Die Unterstützung von .NET 6.0 läuft in Kürze aus. Microsoft.AspNetCore.App 6.0.32 Die Unterstützung von .NET 6.0 läuft in Kürze aus. Microsoft.NETCore.App 6.0.32 Die Unterstützung von .NET 6.0 läuft in Kürze aus. Microsoft.WindowsDesktop.App 6.0.32 Die Unterstützung von .NET 6.0 läuft in Kürze aus. Microsoft.AspNetCore.App 7.0.20 .NET 7.0 wird nicht mehr unterstützt. Microsoft.NETCore.App 7.0.20 .NET 7.0 wird nicht mehr unterstützt. Microsoft.WindowsDesktop.App 7.0.20 .NET 7.0 wird nicht mehr unterstützt. Microsoft.AspNetCore.App 8.0.7 Auf dem neuesten Stand. Microsoft.NETCore.App 8.0.7 Auf dem neuesten Stand. Microsoft.WindowsDesktop.App 8.0.7 Auf dem neuesten Stand.
I understand your frustration but really looks enviromental in your side nothing I can do.
Did you also tried it in a different machine
if it works at least will know to blame your enviroment else we discuss it further
Hi, I´ve got the solution. I had only the SDK for .net 8. The ME needs the SDK for .net 6. I installed SDK .net 6 and it works.
great!
note: ME works as well for other sdk, meaning your project apparently target .net6, but when u upgrade .net ME will download different libs in different dirs in your roaming folder. This is info only no action should required from your side
let me clarify this a bit further, so ME does not require .net6 if your project tagrets .net8, a different version will be downloaded transparent to u looking at the targetframework of each project
Mhmm, thats crazy. Cause the whole project is set to .net8
what is the location of the ME process? after u run it. Get it from right click the process Open File Location
on the task manager
The Background Process Xpand.XAF.ModelEditor.Win is running in C:\Users\CWolff\AppData\Roaming\Xpand.XAF.ModelEditor.Win\Xpand.XAF.ModelEditor.Win
If you open the Modeleditor Xpand.XAF.ModelEditor C:\Users\CWolff\AppData\Roaming\Xpand.XAF.ModelEditor.Win\WinDesktop\net8.0-windows10.0.22621.0\4.241.1.0
Here is a Screenshot of the System (Roaming):
The Xpand\Xpand.XAF.ModelEditor.Win\4.21.1.0: is empty The Xpand.XAF.ModelEditor.Win\Xpand.XAF.ModelEditor.Win: the Background Task is working The Xpand.XAF.ModelEditor.Win\WinDesktop: the ME is in foreground working
I think my error was, that the Backgroundtask could not create the Foregroundtask. With .net6 SDK it is possible and it is created as .net8 Version (\net8.0-windows10.0.22621.0\4.241.1.0) like my Project.
thnks I will research this case when I have time for now everything is functional and this a design time feature so is not urgent. In any case please leave the ticket open
Hi,
I get the error with the ModelEditor:![image](https://github.com/user-attachments/assets/b6aaaad3-3327-4a58-acd8-898127d58be4)
eXpressAppFramework.log
In the Project the first lines are `