This is a migrated thread and some comments may be shown as answers.

Build without addin fails

3 Answers 117 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Seb Doe
Top achievements
Rank 1
Seb Doe asked on 30 Aug 2011, 12:35 PM
Hello, I'm experiencing some trouble to using MSbuild tasks. I am trying to build my solution without the visual studio add-in but there are some troubles about that.
I followed this topic and I got this error:

C:\Program Files (x86)\Telerik\OpenAccess ORM\sdk\OpenAccess.targets(83,3): error MSB4036: The "OpenAccessDeploy" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "c:\Windows\Microsoft.NET\Framework\v4.0.30319" directory.

My csproj file looks like this:
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 
<ProjectExtensions>
  <VisualStudio>
    <UserProperties OpenAccess_UseMSBuild="True" OpenAccess_ConfigFile="App.config" OpenAccess_ConnectionId="DefaultConnection" OpenAccess_Enhancing="True" OpenAccess_UpdateDatabase="True" OpenAccess_EnhancementOutputLevel="1" />
  </VisualStudio>
</ProjectExtensions>
 
<Import Project="C:\Program Files (x86)\Telerik\OpenAccess ORM\sdk\OpenAccess.targets" />

I have no more ideas to work around so I looking for any clues about this.
Thanks for advance.

3 Answers, 1 is accepted

Sort by
0
Serge
Telerik team
answered on 02 Sep 2011, 10:11 AM
Hello Seb Doe,

 First of all are you using the new visual designer or are you using the old wizards approach that we now refer to as OpenAccess Classic. If it is the new designer, then adding the enhancer step should be as easy as only adding the include to the targets file and not including the project extensions. 

In order to see it working you can download our SDK Browser application. It is basically a browser of comprehensive examples that show how OpenAccess can be used in different situations and with various technologies. The important thing though is that the SDK is completely standalone, which means that the examples shipped with it can be build using Visual Studio and have been configured to used the enhancer that is shipped with it, which means you can run/build them even if OpenAccess is not installed.

Basically you get a cache folder where all examples are copied, and a dependencies folder, where the OpenAccess assemblies, enhancer and targets file are deployed, the project files only have the correct include statement included. 

I will advice you to open the SDK, go to Samples select the first one and select Open In Visual Studio, then open up the project definition file of the DAL project and look at the import statement. This should be enough to get you started. 

Do let us know if you need further assistance. I am looking forward to resolving this issue with you. 

Kind regards,
Serge
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's SQL Server Community Awards. We are competing in TWO categories and every vote counts! VOTE for Telerik NOW >>

0
Vesa
Top achievements
Rank 1
answered on 28 Jan 2014, 08:25 AM
The link SDK Browser is not working.
0
Viktor Zhivkov
Telerik team
answered on 28 Jan 2014, 03:24 PM
Hello Vesa,

Thank you for reporting this broken link.
You can download the brand new Data Access Samples Kit SP2 (formerly known as OpenAccess Samples Kit) by clicking the download button on this page.

Regards,
Viktor Zhivkov
Telerik
Telerik has recently updated some of its product names. You can check out the Telerik Product Map here (www.telerik.com/name-mapping). OpenAccess ORM is now renamed to Telerik Data Access.
Tags
General Discussions
Asked by
Seb Doe
Top achievements
Rank 1
Answers by
Serge
Telerik team
Vesa
Top achievements
Rank 1
Viktor Zhivkov
Telerik team
Share this question
or