Current filter:
                                You should refresh the page.
                                  • I've created .Net Standard 2.0 library with custom XPO criteria functions (ICustomFunctionOperatorBrowsable). I need .Net Standard since I need to use the same functions in XPO-based Linux service and XAF solution. Otherwise I would need to duplicate code.
                                    Now, win XAF application works as expected. Model editor in XAF applications also works. What doesn't work is Model editor in Visual Studio. It says:
                                    Unable to create an instance of the "CustomApplication" type.
                                    Reason: "Could not load file or assembly 'netstandard, Version=, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. Не удается найти указанный файл."
                                    Where should I put .netstandard library?

                                1 Solution

                                Creation Date Importance Sort by

                                Hi Nikita,

                                We tested our design-time features only under the .NET Framework. We can't guarantee that they will work with .NET Standard. However, I tested this scenario on my side, but I can't reproduce this issue with the attached projects. Assemblies are loaded for the GAC at design-time. So, try to put the "netstandard" assembly to the GAC.

                                If this is not helpful, please modify my project to reproduce the issue and provide me with the exception call stack. You can obtain it as described in the How to obtain a design-time exception call stack article.

                                • Nikita Grigoryev 07.31.2019

                                  Yes it works on my machine, but doesn't work on machine of another developer. It seems key to solution lies in .NET Standard in GAC

                                • Gosha (DevExpress Support) 07.31.2019

                                  I attached another Visual Studio instance to Visual Studio with my XAF project to see from where the netstandard assembly is loaded. In my case, it's loaded from the C:\Windows\Microsoft.NET\assembly\GAC_MSIL\netstandard\v4.0_2.0.0.0__cc7b13ffcd2ddd51\ folder. So, this assembly should be in the GAC.