Clarion 11, Unconditional Generation doesn't create new EXE/DLLs for unchanged APPs

I myself don’t really have enough knowledge to dig into the MSBuild process.
But I opened the sln file of my app and the DLLtutor in notepad and I couldn’t see any obvious reason why one works and the other doesn’t. There isn’t really much in the sln file. I did the same with a cwproj file from each and nothing jumped out at me there either. All the parts that are non-unique to the particular app seemed to be the same in both the sln and cwproj files.

It doesnt matter what change I made to the sln file in c11, it was always changed back. Another reason why I couldnt use c11 for programming apps.

But would something like this throw more light on the situation?

I’ve been emailing SV support about this for a while. Now that I was able to send them the Exception error, they sent this back to me. I haven’t had a chance to follow through with all their suggestions but wanted to get this on here for everyone else to check out…

From SV support:

the System.NullReferenceException error is clearly
indicating a missing item exists in the solution,

the missing item could be either an .APP file OR a .cwproj Project file, for example the error is reported and shows if an app was removed/renamed or deleted from the working folder but the Solution was not updated,

or another possibility is an invalid .cwproj Project dependency (a project that is listed in the solution as a dependency, but it is no longer physically in the working folder);


note that the batch build always has the same final step, and that is to “create the binary output (Exe or DLL)”.

If the Solution has any dependency that is missing then ‘De Facto’ the last step must, and will always fail, and no binary can/will be created


some options to attempt to resolve the issue are listed below as a,b,c:

a) manually inspect the Solution and identify the missing item in the solution (its physically missing from the working folder), then remove that item from the solution or if it still needed in the project, restore the missing item to the working folder

b) – Goto Tools->Options->Clarion->Applications (AppGen) and turn ON the radio button for
"Automatically add referenced Applications to the Solution

– working within your working folder temporarily remove the .sln and all .cwproj files

– restart the IDE and open the main .APP file for your system, this will process all .app files dependencies and create new .SLN and new .cwproj files for each app

c) open Tools->Options->IDE->Projects and Solutions
set the “Output Details” to ‘Diagnostic’, save and close Options dialog
and run the batch build of the solution and examine the Error pad and the Output pad for any clues on what file is missing

Well I think I resolved my issue. I created a new Solution/App and added all my existing Apps one by one, testing along the way. I made sure that all my existing Apps were ticked as dependencies for the new App that was created along with the new Solution. It now Generates and Builds all my DLL/EXEs as it should.

I think what had gone wrong is that the App that gets created with the Solution was not itself included in the Solution. I don’t know why. I looked at my old computer that has C11 and C10 on it, and the Solution in C11 did not have that App in it, whereas the Solution in C10 did. My assumption is that App needs to be present in the solution, even if it’s just a blank.

I don’t know how or why it got removed, if I did it invertedly or if it somehow happened when I went from C10 to C11. But everything seems to be working as it should now and I am quite relieved.

1 Like