Skip to content

Upgrade From CFE

Maud Chiva-Rampazzo edited this page Apr 24, 2020 · 1 revision

In Visual Studio 2017/2019 with SoftFluent CodeModeler extension installed AND CodeFluent Entities installed and activated, goto Options

  • Select SoftFluent CodeModeler / General
  • Change None to Enabled for Legacy Conversion Options -- image.png
  • OK

Once done, Step1 : change project level settings

  • copy the CodeFluent Entities folder with its *.cfxproj project file and the *.cfp parts to a working folder
  • in this working folder rename the *.cfxproj file with the *.sfcmproj new extension
  • open the *.sfcmproj file in Visual Studio (Open Project/Solution)
  • in the new solution add a .Net Standard project for BOM generation
  • change the BOM Producer settings from old value to target the newer .Standard project instead of the older .Net Framework project
  • do the same for additional projects as required : empty .Net or database project for persistence etc..
  • Edit each file part property to ensure the model is using Normalized XML and not implicit format for the Save Options image.png -Build to check there is no issue at this step

Step2: trigger the change of namespace prefix in the parts.

  • using the surface editing only : add a temporary entity TestUpgrade
  • Build
  • check that the entities definitions now us cm:xx prefixes and namespace and no more CFE namespaces

Step3 : remove CFE references

  • unload the CodeModeler project from the solution (Unload project) -in the projet folder change the extension of all parts from .cfp to .sfcm extension
  • edit the project file (XML): -- rename the extension of all parts .cfp to .sfcm for all referenced parts -- remove the old CFE target import image.png
  • save the file
  • close and reopen the solution -in case the project can not load the default.surface.sfcm, add a new Surface with name Default, it will reopen the correct one. -rebuild -Close solution

Step4 : once all projects/solutions are migrated to new version

  • change Legacy Conversion Options back to None in Visual Studio options -close VStudio
  • uninstall all versions of CodeFluent Entities with Add/Remove Programs
  • reopen your solutions

image.png

Clone this wiki locally