I have been playing with SnapDevelop. I have a dll I wrote in C# .NET Framework Standard which fails to compile after opening the solution in SnapDevelop, even though it works just fine in Visual Studio 2017 and 2019. The error is gives is:
Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='AnyCPU'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. PBUtils Microsoft.Common.CurrentVersion.targets 780
Now I think the reason is because this has to be an x86 project, and SnapDevelop appears to only handle AnyCPU projects. Is this correct? I created a brand new project in SnapDevelop and it would only let me select a platform of AnyCPU.
I tired removing all platforms other than x86 from Visual Studio and then opening the solution in SnapDevelop, where it reports x86 as the Solution Platform, and the Platform Target in the project properties says x86, but I still get the same error on build.
I learnt some years ago that I had to use x86 for my dll as certain things, I've forgotten which, failed under AnyCPU. I do remember it took me quite a while to work othat out!
Any help welcome :)
Thanks!
Could you help to provide a sample project that can duplicate your issue? You can also report a bug in the Appeon Standard Support at https://www.appeon.com/standardsupport/.
BTW: please notice that SnapDevelop is designed for the .NET Core. And the .NET Framework project is not supported.
Regards,
Logan
So I just created a new .NET Core solution and project in SnapDevelop. I still don't have anything other than "Any CPU" in the toolbar menu dropdown, and the top dropdown in the Build properties,and as before I can change the Platform target to x86. I don't understand why I can't change this everywhere else like I do in Visual Studio but it does seem to build it as an x86 dll.
However it appear SnapDevelop does not work with nunit which is a problem, as I don't want to rewrite the thousands of test I've already written.
It seems SnapDevelop is not really a full C# package, for exampel, I can't seem to install the nunit test adapter, and PowerBuilder can only call very simple methods in dlls. It's all a little disppointing so far. The ability to debug C# code from PowerBuilder easily would have been great, but I guess it's not going to happen. I think I'm going to have to stick to building my dll as an Active/X control :(