Closed AxNut1 closed 11 months ago
we all need to keep followiong the trend of our community (.net) which dictates the SDK format for csproj and PackageReferences. It will make your dev life much easier doing. Note SDK format for WebForm projects is possible but a bit tricky so u can go only for packagereference.
about the problem u mentioned I do not recall an exact fix as it may depends on your project but u may consult our Test Web project for directions
i guess u try to convert from within VS with the context menu, which it may fail, but going manual and simply remove the all References and replace them with packagereference should work fine as in the Test project above
Thanks for the advice. In the end followed the approach and for now added the references manually to the application project. All seems good and building without errors. However only issue now is the XAF Model Designer reboots Visual Studio and does not open. No errors.
I suggest u try VS as admin and use the Xpand.ModelEditor from Xpand.VSIX plugin
Thanks for the advice. In the end followed the approach and for now added the references manually to the application project. All seems good and building without errors. However only issue now is the XAF Model Designer reboots Visual Studio and does not open. No errors.
Just as an update to the issue mentioned above in terms of the XAF Model Designer rebooting VS and not working at all even after a reboot, I've discovered that this is related to/being caused by the Email Module. Removing this from the project (even under the current release) resolves to problem.
Which Email module cause there are two, the Xpand.ExpressApp.Email and the Xpand.XAF.Modules.Email. The first one is .net461 only and is out of support as the related external dependecies e.g. RazorEngine are out of support as well.
rebooting VS and not working
Probably VS needs to be run elevated as Admin, note also part of that the patching call is removed in the next minor version as XAF now supports it natively. In any case please use eXpandFramework GitHub issues in the future if you can.
Also to save your self of designer related problems I suggest the Xpand Model Editor that comes with XVSIX. Note that there is an older version distributed from VSIX but is only for the full .NetFramework, For .NET5 and newer see https://github.com/eXpandFramework/Reactive.XAF/tree/master/tools/Xpand.XAF.ModelEditor
Hi Thanks for the update. The project is using the older Xpand.ExpressApp.Email. I'll look at sorting this out. In terms of other updates:
Thanks for the help. I'll let you know how it goes given the customer and XAF solution concerned is significant and has been successfully operational with ongoing functional updates for around 9 years now.
check with the next rx repo minor packages release, the patch code is now removed so it won't throw there. But this kind of exception probably means version conflict, possibly .net version
Thanks for that. I'll investigate further. A key challenge at the moment is given the longevity and success of this solution - 9 years and still going strong it may be time to pivot and do a complete overhaul. One dilemma is whether that should be to a XAF-based Blazor solution yet. Thanks for the help. Much appreciated.
MS plans are clear, we already overstay with WebForms, the web does not have much resources on this old technology anymore. Blazor is super fast however still missing some UI components you may have previosly but eventually they will be there
The pre-release 4.212.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).
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.
Closing issue for age. Feel free to reopen it at any time.
.Thank you for your contribution.
I’m needing to upgrade a project from XAF 19.2 to the latest v21.1.4 framework along with the latest eXpand. Following the ‘NuGet’ approach for upgrading, I’ve noted from other articles that we should be using “the packagereference format instead of the packages.config”. This requires each set of the Project ‘Module’ references to be converted to the ‘packagerefrence’ format. This works great as does the subsequent ‘NuGet’ upgrade process. However this is not the case when trying to convert references held under the ‘Web Application’ package. There error returned indicates that converting ‘ASP.Net’ web applications to the packagereference format is not supported. What is the recommended approach for overcoming this constraint? Thanks in advance for any help in this regard.
Regards Andrew
Originally posted by @apobekiaris in https://github.com/eXpandFramework/eXpand/issues/873#issuecomment-857383718