Build Failed

Posts   
 
    
tinathelen
User
Posts: 5
Joined: 08-Dec-2016
# Posted on: 08-Dec-2016 16:45:34   

I generated a csproj based on the LLBL wiki and when I go into the Atlas 6.1 DB Designer to generate assemblies based on the csproj I get errors. I don't know what is missing or where to fix it.

Done Building Project "C:\Users\TTHELEN\Documents\LLBLGen Pro\v5.0\Projects\GlobeSoftware.Atlas6.GeneratedCode.DBDBSpecific.csproj" (build target(s)) -- FAILED. Build FAILED. "C:\Users\TTHELEN\Documents\LLBLGen Pro\v5.0\Projects\GlobeSoftware.Atlas6.GeneratedCode.DBDBSpecific.csproj" (build target) (1) -> (GetReferenceAssemblyPaths target) -> C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.6.1" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [C:\Users\TTHELEN\Documents\LLBLGen Pro\v5.0\Projects\GlobeSoftware.Atlas6.GeneratedCode.DBDBSpecific.csproj] "C:\Users\TTHELEN\Documents\LLBLGen Pro\v5.0\Projects\GlobeSoftware.Atlas6.GeneratedCode.DBDBSpecific.csproj" (build target) (1) -> (ResolveAssemblyReferences target) -> C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "SD.LLBLGen.Pro.DQE.SqlServer, Version=4.2.0.0, Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\Users\TTHELEN\Documents\LLBLGen Pro\v5.0\Projects\GlobeSoftware.Atlas6.GeneratedCode.DBDBSpecific.csproj] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. [C:\Users\TTHELEN\Documents\LLBLGen Pro\v5.0\Projects\GlobeSoftware.Atlas6.GeneratedCode.DBDBSpecific.csproj] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "System.Data", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. [C:\Users\TTHELEN\Documents\LLBLGen Pro\v5.0\Projects\GlobeSoftware.Atlas6.GeneratedCode.DBDBSpecific.csproj] "C:\Users\TTHELEN\Documents\LLBLGen Pro\v5.0\Projects\GlobeSoftware.Atlas6.GeneratedCode.DBDBSpecific.csproj" (build target) (1) -> (CoreCompile target) -> DatabaseSpecific\DataAccessAdapter.cs(16,22): error CS0234: The type or namespace name 'DQE' does not exist in the namespace 'SD.LLBLGen.Pro' (are you missing an assembly reference?) [C:\Users\TTHELEN\Documents\LLBLGen Pro\v5.0\Projects\GlobeSoftware.Atlas6.GeneratedCode.DBDBSpecific.csproj] 4 Warning(s) 1 Error(s) Time Elapsed 00:00:00.73

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 08-Dec-2016 19:18:07   

it's in the error:

The reference assemblies for framework ".NETFramework,Version=v4.6.1" were not found.

So you generated code for .NET v4.6.1 but you don't have .NET 4.6.1 installed.

Frans Bouma | Lead developer LLBLGen Pro
tinathelen
User
Posts: 5
Joined: 08-Dec-2016
# Posted on: 08-Dec-2016 20:43:46   

Yes it is installed.

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 09-Dec-2016 08:43:58   

I believe this is an MSBUILD issue.

What's the operating system of your build server? You might need to use FrameworkPathOverride to point to the .NET assemblies.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 09-Dec-2016 10:42:37   

If it's installed, it shouldn't say it can't find it, but there's another thing wrong: the code wants to reference our v4.2 runtime but you generate with v5.0?

btw, we're not affiliated with Atlas, they use our system but problems with their software and their wiki is something they control, we don't have any influence over that nor do we know anything about their software. Not sure if this is related to Atlas specific settings.

Frans Bouma | Lead developer LLBLGen Pro
tinathelen
User
Posts: 5
Joined: 08-Dec-2016
# Posted on: 13-Dec-2016 14:08:36   

When I build my LLBLGen project these are the settings.

Platform .NET 4.6.1 Output language: C# Framework: LLBLGe Pro Runtime Framework Peset: SD.Presets.Adapter.General Root namespace: GlobeSoftware.Atlas6.GeneratedCode.DB Destination folder: .\

Where do I refernece the correct runtime?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 13-Dec-2016 15:41:47   

tinathelen wrote:

When I build my LLBLGen project these are the settings.

Platform .NET 4.6.1 Output language: C# Framework: LLBLGe Pro Runtime Framework Peset: SD.Presets.Adapter.General Root namespace: GlobeSoftware.Atlas6.GeneratedCode.DB Destination folder: .\

Where do I refernece the correct runtime?

We generate standard C# csproj projects, which compile in visual studio. I don't know how you build your stuff with atlas, as I said, we are not affiliated with them. It might be a question for Atlas. Did you ask them about this?

Frans Bouma | Lead developer LLBLGen Pro
tinathelen
User
Posts: 5
Joined: 08-Dec-2016
# Posted on: 13-Dec-2016 19:36:12   

They said to contact LLBLGen.

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 14-Dec-2016 02:36:51   

They didn't specify what we should look at?! As our generated code builds fine without heir build server, it's either their issue or they need to be specific as to what is missing.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 14-Dec-2016 10:48:08   

tinathelen wrote:

They said to contact LLBLGen.

Tell them they should pick up this problem or they will have a problem.

If you generate code from the designer, it will generate 1 (if using selfservicing) or 2 (if using adapter) visual studio projects. Opening these in visual studio will compile file. I have no idea what atlas does nor what it needs. Generating code and compiling it from our designer works fine. So this is an atlas related issue and they will have to pick this up.

Anyway, as atlas is apparently a company who doesn't care about their customers, and in the process makes us look bad, I'll try to help you, even though I have no idea what atlas does.

Your error also suggests you need to reference the runtime libraries. This page in our manual: http://www.llblgen.com/Documentation/5.0/LLBLGen%20Pro%20RTF/Using%20the%20generated%20code/gencode_compiling.htm will explain you how. But again, that is other wise automatic, so I don't know what Atlas is doing but something isn't right in their software.

(edit) I've mailed Globe Software's ceo that this is unacceptable and that they have to pick up this issue.

Frans Bouma | Lead developer LLBLGen Pro