Errors on Build

A place for developers to discuss development of OSA
Message
Author
mstamler
Posts: 20
Joined: Sat Jun 08, 2013 9:44 am

Errors on Build

#1 Post by mstamler » Sat Jun 22, 2013 9:08 am

Hi. I am new to this project and want to get started ASAP. I downloaded the GIT today but get quite a lot of errors. What am I doing wrong here:

C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\OSAEScreenControl\OSAEScreenControlManager.cs(6,11): error CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\OSAEObjectType\OSAEObjectTypeManager.cs(5,11): error CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\OSAEMethod\OSAEMethodManager.cs(4,11): error CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\OSAEObjectProperty\OSAEObjectPopertyManager.cs(6,11): error CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\OSAEObject\OSAEObjectManager.cs(6,11): error CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\OSAESchedule.cs\OSAEScheduleManager.cs(8,11): error CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\OSAEMethod\OSAEMethod.cs(3,11): error CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\OSAEObjectState\OSAEObjectStateManager.cs(5,11): error CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\OSAEImage\OSAEImageManager.cs(6,11): error CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\WCF\WCFService.cs(7,11): error CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\OSAEScript\OSAEScriptManager.cs(4,11): error CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\General\Common.cs(9,11): error CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\General\Logging.cs(6,11): error CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\General\OSAESql.cs(4,11): error CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\Plugin\PluginManager.cs(5,11): error CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\OSAE.API\General\OSAESql.cs(13,40): error CS0246: The type or namespace name 'MySqlCommand' could not be found (are you missing a using directive or an assembly reference?)

Compile complete -- 16 errors, 0 warnings
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "MySql.Data". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
------ Build started: Project: PluginDescriptionEditor, Configuration: Debug Any CPU ------
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\UI\PluginDescriptionEditor\EditorForm.cs(11,7): error CS0246: The type or namespace name 'ICSharpCode' could not be found (are you missing a using directive or an assembly reference?)

Compile complete -- 1 errors, 0 warnings
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "ICSharpCode.SharpZipLib". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
------ Build started: Project: Speech, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\output\OSAE.API.dll' could not be found

Compile complete -- 1 errors, 0 warnings
------ Build started: Project: VR2, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\output\OSAE.API.dll' could not be found

Compile complete -- 1 errors, 0 warnings
------ Build started: Project: ClientService, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\output\OSAE.API.dll' could not be found

Compile complete -- 1 errors, 0 warnings
------ Build started: Project: OSAE.ScriptProcessor, Configuration: Debug Any CPU ------
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.VisualBasic.targets(154,9): error MSB3104: The referenced assembly "C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\output\OSAE.API.dll" was not found. If this assembly is produced by another one of your projects, please make sure to build that project before building this one.
------ Build started: Project: OSAE.NetworkMonitor, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\output\OSAE.API.dll' could not be found

Compile complete -- 1 errors, 0 warnings
------ Build started: Project: OSAE.Email, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\output\OSAE.API.dll' could not be found

Compile complete -- 1 errors, 0 warnings
------ Build started: Project: OSAE.Bluetooth, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\output\OSAE.API.dll' could not be found

Compile complete -- 1 errors, 0 warnings
------ Build started: Project: OSAE.Service, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\output\OSAE.API.dll' could not be found

Compile complete -- 1 errors, 0 warnings
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "MySql.Data". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
------ Build started: Project: OSAE.WebServer, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\output\OSAE.API.dll' could not be found

Compile complete -- 1 errors, 0 warnings
------ Build started: Project: OSAE.Jabber, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\output\OSAE.API.dll' could not be found

Compile complete -- 1 errors, 0 warnings
------ Build started: Project: OSAE.UI.Controls, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\output\OSAE.API.dll' could not be found

Compile complete -- 1 errors, 0 warnings
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "MjpegProcessor". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "MySql.Data". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
------ Build started: Project: OSAE.Rest, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\output\OSAE.API.dll' could not be found

Compile complete -- 1 errors, 0 warnings
------ Build started: Project: OSAE.WUnderground, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\output\OSAE.API.dll' could not be found

Compile complete -- 1 errors, 0 warnings
------ Build started: Project: OSAE.PowerShell, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\output\OSAE.API.dll' could not be found

Compile complete -- 1 errors, 0 warnings
------ Build started: Project: Manager, Configuration: Debug Any CPU ------
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "ICSharpCode.SharpZipLib". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "MySql.Data". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\UI\Manager\LogWindow.xaml(6,10): error MC3074: The tag 'Logs' does not exist in XML namespace 'clr-namespace:OSAE.UI.Controls;assembly=OSAE.UI.Controls'. Line 6 Position 10.
------ Build started: Project: Screens, Configuration: Debug Any CPU ------
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "MySql.Data". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\UI\Screens\ChangeScreen.xaml(7,10): error MC3074: The tag 'ctrlChangeScreen' does not exist in XML namespace 'clr-namespace:OSAE.UI.Controls;assembly=OSAE.UI.Controls'. Line 7 Position 10.
C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\UI\Screens\CreateScreen.xaml(7,10): error MC3074: The tag 'CreateScreen' does not exist in XML namespace 'clr-namespace:OSAE.UI.Controls;assembly=OSAE.UI.Controls'. Line 7 Position 10.
========== Build: 0 succeeded or up-to-date, 18 failed, 0 skipped ==========

Automate
Posts: 1691
Joined: Sat Dec 11, 2010 1:44 pm
Location: US

Re: Errors on Build

#2 Post by Automate » Sat Jun 22, 2013 10:10 am

The compiler can't find your assemblies (DLL) . You can see a list of them here http://github.com/opensourceautomation/ ... Assemblies

In VS open the projects and fix where it is looking for the "References" to these DLLs.

mstamler
Posts: 20
Joined: Sat Jun 08, 2013 9:44 am

Re: Errors on Build

#3 Post by mstamler » Sat Jun 22, 2013 10:42 am

Super. thanks

mstamler
Posts: 20
Joined: Sat Jun 08, 2013 9:44 am

Re: Errors on Build

#4 Post by mstamler » Sat Jun 22, 2013 10:52 am

I downloaded the assemblies and tried to add them. Here is the error I got

A reference to ICSharpCode.SharpZipLib.dll could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.

I did download this file from the ICSharpCode site directly and it did install OK. But from your GitHub it did not. Also, I got the same message for the other DLL assemblies.


:|

Automate
Posts: 1691
Joined: Sat Dec 11, 2010 1:44 pm
Location: US

Re: Errors on Build

#5 Post by Automate » Sat Jun 22, 2013 11:05 am

If you are trying to download the files from Git manually, you have to click on the RAW button. Otherwise you just get a text file with the DLL name.

mstamler
Posts: 20
Joined: Sat Jun 08, 2013 9:44 am

Re: Errors on Build

#6 Post by mstamler » Sat Jun 22, 2013 8:49 pm

OK. I installed all of the assemblies. Now I have a problem with the following error:
error CS1504: Source file 'C:\xicore\HomeAutomation\OSA\Code\Open-Source-Automation\Plugins\OSAE.PowerShellProcessor\Properties\Settings.Designer.cs' could not be opened ('Unspecified error ')

This file does not exist in the GIT tree at all. What should I do?

Thanks

User avatar
Mat
Posts: 501
Joined: Thu Aug 09, 2012 2:35 pm
Location: UK

Re: Errors on Build

#7 Post by Mat » Sun Jun 23, 2013 2:32 pm

That is a file I have failed to check in that I am still working on. I checked in a number of components to allow Brian and I to do some components for 0.4.3. I know you have had a number of responses, however you are receiving a large number of errors yet they are all stemming from a small issue which is usually the case with VS. The problem looks to be that the default built project is not one that causes the required components to build to the output folder. Your best bet is to build the API. Additionally if depending on whether you are using VS Full or Express you will receive errors as the solution has components built in different languages e.g. VB & C# and Express will only allow you to open one language type. To overcome the power shell issue just exclude the project.

For clarity what exactly is it your after doing? are you wanting to write a plugin, contribute to the core infrastructure?

mstamler
Posts: 20
Joined: Sat Jun 08, 2013 9:44 am

Re: Errors on Build

#8 Post by mstamler » Mon Jun 24, 2013 1:48 am

Hi,

We are very interested in working with your code base to develop a family of home automation products. Instead of starting from scratch I found your open source and I am delighted. So, yes, I am definitely interested in using this GIT and contributing back to it.

To do this I need to be able to recreate the binaries from the source files and to study the existing code base. This is what I am doing now.

It seems to me that there should always be a working GIT version. The whole idea of GIT is to have a working branch and then continue developing on the master. This way we won't get broken versions as we have now because of this missing file.

How can I get this file to complete my build? Best to just put it back and create some branch that has some stability to it.

BR
Michael Stamler

User avatar
Mat
Posts: 501
Joined: Thu Aug 09, 2012 2:35 pm
Location: UK

Re: Errors on Build

#9 Post by Mat » Mon Jun 24, 2013 3:23 am

I'm intrigued as to the "family of home automation products". You are right there should always be a working code base, but as with anything people do make mistakes... The references being taken from the output folder is a historical thing and can in some circumstances cause issues such as what you are experiencing. They should likley be taken directly from the Reference folder. Part of your issue stems from the fact that as part of 0.4.3 MySQL is being moved to a later version and some systems are still referencing an older version, where a developer has the dll installed in the GAC as part of the MySQL installation the resolution will happen without issue as the hierachy of dll loading will resolve to the GAC in the event local folders fail. In a large system such as OSA that are a vast number of projects that need to be maintained and kept in Sync.

I personally would reccommend building specific projects based on what you are wanting to work with rather than trying to build the entire solution as it will reduce build times.

Automate
Posts: 1691
Joined: Sat Dec 11, 2010 1:44 pm
Location: US

Re: Errors on Build

#10 Post by Automate » Mon Jun 24, 2013 6:48 am

mstamler wrote:We are very interested in working with your code base to develop a family of home automation products.
Mind posting a link to your company's web site?
Thanks,

Post Reply