Build without addin fails

Thread is closed for posting
4 posts, 0 answers
  1. Seb Doe
    Seb Doe avatar
    3 posts
    Member since:
    May 2010

    Posted 30 Aug 2011 Link to this post

    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" />
        <UserProperties OpenAccess_UseMSBuild="True" OpenAccess_ConfigFile="App.config" OpenAccess_ConnectionId="DefaultConnection" OpenAccess_Enhancing="True" OpenAccess_UpdateDatabase="True" OpenAccess_EnhancementOutputLevel="1" />
    <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.
  2. Serge
    Serge avatar
    375 posts

    Posted 02 Sep 2011 Link to this post

    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,
    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 >>

  3. Vesa
    Vesa avatar
    3 posts
    Member since:
    Jan 2011

    Posted 28 Jan 2014 in reply to Serge Link to this post

    The link SDK Browser is not working.
  4. Viktor Zhivkov
    Viktor Zhivkov avatar
    324 posts

    Posted 28 Jan 2014 Link to this post

    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.

    Viktor Zhivkov
    Telerik has recently updated some of its product names. You can check out the Telerik Product Map here ( OpenAccess ORM is now renamed to Telerik Data Access.
Back to Top