Compiling cs

Posts   
 
    
tvoss avatar
tvoss
User
Posts: 192
Joined: 07-Dec-2003
# Posted on: 16-Jun-2005 19:43:49   

I'm compiling my first csharp project, and am having problems with the following compile statement:

cd "C:\Documents and Settings\Tester1\My Documents\LLBLGen Pro Projects\mlc"

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\csc /out:mlcdal.dll /t:library /recurse:*.cs /o /r:"C:\Program Files\Solutions Design\LLBLGen Pro\RuntimeLibraries\DotNet11\SD.LLBLGen.Pro.ORMSupportClasses.NET11.dll","C:\Program Files\Solutions Design\LLBLGen Pro\RuntimeLibraries\DotNet11\SD.LLBLGen.Pro.DQE.SqlServer.NET11.dll"

The errors are all of the type: can't find aggregate function, are you missing a reference?

Help! (I'll compile with project until I can get the statement fixed)

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 16-Jun-2005 20:40:20   

change:


C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\csc /out:mlcdal.dll /t:library /recurse:*.cs /o /r:"C:\Program Files\Solutions Design\LLBLGen Pro\RuntimeLibraries\DotNet11\SD.LLBLGen.Pro.ORMSupportClasses.NET11.dll","C:\Program Files\Solutions Design\LLBLGen Pro\RuntimeLibraries\DotNet11\SD.LLBLGen.Pro.DQE.SqlServer.NET11.dll"

into:


C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\csc /out:mlcdal.dll /t:library /o /r:"C:\Program Files\Solutions Design\LLBLGen Pro\RuntimeLibraries\DotNet11\SD.LLBLGen.Pro.ORMSupportClasses.NET11.dll","C:\Program Files\Solutions Design\LLBLGen Pro\RuntimeLibraries\DotNet11\SD.LLBLGen.Pro.DQE.SqlServer.NET11.dll /recurse:*.cs"

Files have to be the last parameter. At least that was the case in .net 1.x

Frans Bouma | Lead developer LLBLGen Pro
tvoss avatar
tvoss
User
Posts: 192
Joined: 07-Dec-2003
# Posted on: 16-Jun-2005 21:31:03   

Otis,

With this code, using your inputs: cd "C:\Documents and Settings\Tester1\My Documents\LLBLGen Pro Projects\mlc"

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\csc /out:mlcdal.dll /t:library /o /r:"C:\Program Files\Solutions Design\LLBLGen Pro\RuntimeLibraries\DotNet11\SD.LLBLGen.Pro.ORMSupportClasses.NET11.dll","C:\Program Files\Solutions Design\LLBLGen Pro\RuntimeLibraries\DotNet11\SD.LLBLGen.Pro.DQE.SqlServer.NET11.dll /recurse:*.cs"

I get: No inputs supplied! return to dos prompt

Any ideas?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 16-Jun-2005 22:45:56   

I decided to look at my commandline build tests, and I use this:


csc /out:c:\temp\BuildTest\Assemblies\SqlServer.SelfServicing.General.CS.dll /t:library /recurse:*.cs /o /r:"C:\Myprojects\VS.NET Projects\LLBLGen Pro\RuntimeLibraries 1.0.2004.2\DotNet11\SD.LLBLGen.Pro.ORMSupportClasses.NET11.dll","C:\Myprojects\VS.NET Projects\LLBLGen Pro\RuntimeLibraries 1.0.2004.2\DotNet11\SD.LLBLGen.Pro.DQE.SqlServer.NET11.dll"

which is similar to what you're using in your start posting. disappointed The aggregate functions are in teh ormsupportclasses, the only silly thing I can think of is that you reference old versions.

(edit) I'll try on beta2 tomorrow (no beta 2 partition available at the moment)

Frans Bouma | Lead developer LLBLGen Pro
tvoss avatar
tvoss
User
Posts: 192
Joined: 07-Dec-2003
# Posted on: 16-Jun-2005 23:00:49   

Okay, I appreciate it.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 17-Jun-2005 11:48:31   

I've generated new code using the latest installer on .NET 2.0, compiled it with csc for beta 2 and used your original statement, and it compiled fine. (I generated selfservicing code, 2 class scenario, for 2005).

Also after I open the project in vs.net 2005, it still works. Strange you get these errors then...

Frans Bouma | Lead developer LLBLGen Pro
tvoss avatar
tvoss
User
Posts: 192
Joined: 07-Dec-2003
# Posted on: 17-Jun-2005 21:04:37   

It was a version problem.

Sorry I didn't catch it sooner.

Did you also notice that the csc.exe of version2 was much faster at compiling the same info?

Thanks,

Terry

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 17-Jun-2005 21:45:51   

tvoss wrote:

It was a version problem.

Sorry I didn't catch it sooner.

it was the only possible cause simple_smile

Did you also notice that the csc.exe of version2 was much faster at compiling the same info? Terry

Yes, quite amazing simple_smile The .NET 1.1 compiler was already much faster than the 1.0 version, but the 2.0 version is a really nice piece of work simple_smile

Frans Bouma | Lead developer LLBLGen Pro