Understand the FakeXrmEasy Upgrades v2 and v3

2024-10-20

All articles from this blog can ONLY be redistributed on an Attribution-NonCommercial-NoDerivs basis. Please credit the source, thank you.
Twitter:@kelvinshen
Blog:Kelvin Shen's Blog

If you are currently using FakeXrmEasy v1, you may have noticed that it will nag you to upgrade. However, there are two new versions available at the same time: v2 and v3. So, you may be wondering why there are two new versions available at the same time.

Server-side vs. Client-side Development

Before we can answer that question, we need to understand the difference between server-side and client-side development. Server-side development involves writing plugins and workflow activities that will be run as part of the D365 plugin execution pipeline. Client-side development, on the other hand, involves writing an external application that interacts with the Dataverse web API, such as an Azure App or console app.

Which Version Should You Upgrade to?

If your existing FakeXrmEasy v1 unit tests are for server-side development, you should upgrade to v2. There is not a fundamental change between v1 and v2, because the underlying Nuget packages, libraries, and .NET framework do not change. So, there will not be any significant functionality gain. However, v2 is refactored and has the same syntax as v3, which is actively maintained by the author.

If you are developing a new client-side app, you will need to use v3 to create unit tests. This is because v3 is based on .NET Core 3.1, which is a newer and more modern framework than .NET Framework.

Nuget Packages

FakeXrmEasy.v9 is the one you want to pick for the VS projects. image

Nuget Package Version Difference

image

image

image

Licensing and Cost Implications

It’s important to be aware of the licensing changes with FakeXrmEasy v2 and v3. While v1 was completely free to use, v2 and v3 introduce a dual licensing model. They remain free for open-source projects and non-commercial use, but commercial use in private repositories requires a paid license. This license grants access to ongoing support, updates, and new features. You can find detailed information about the licensing options and costs on the FakeXrmEasy website. Be sure to review this information to determine the best licensing option for your needs before upgrading.

In Conclusion

Only the FakeXrmEasy v3 is a real upgrade, and it is based on .NET Core 3.1 rather than .NET Framework. If Microsoft upgrades its server-side to be .NET Core based in the future, we can expect another major upgrade from FakeXrmEasy’s author.

References

Leave a Reply

comments powered by Disqus


Table of Content