Visual Studio 2015 CTP6 does not generate .pdb file

16 posts, 0 answers
  1. Maarten
    Maarten avatar
    13 posts
    Member since:
    Feb 2013

    Posted 06 Mar 2015 Link to this post

    Hi,

    I know Data Access has not been released yet for VS 2015, but I've noticed that if I build a project in Debug configuration that's using the current version of Data Access, the debug symbols (i.e. the .pdb file) are not generated.

    Does anybody know of a workaround?

    thanks, Maarten
  2. Kristian Nikolov
    Admin
    Kristian Nikolov avatar
    206 posts

    Posted 10 Mar 2015 Link to this post

    Hello Maarten,

    Thank you for contacting us.

    As you have noted Visual Studio 2015 is currently not supported by Telerik Data Access. Therefore unexpected behavior could occur when using it.

    That being said, generally, Telerik Data Access does not influence the build configuration output and it is unlikely to be the reason for the behavior you are experiencing. With this in mind we would recommend checking the build configuration of you projects and making sure that you have the correct setting for Debug Info in the Advanced Build Settings window of Visual Studio. When Debug Info is set to full or pdb-only, .pdb files should be generated.

    As Visual Studio 2015 has only a Preview release, another possible reason could be an issue with Visual Studio 2015 itself.

    I hope this helps. Do not hesitate to get back to us in case you have further questions.

    Regards,
    Kristian Nikolov
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
  3. DevCraft banner
  4. Maarten
    Maarten avatar
    13 posts
    Member since:
    Feb 2013

    Posted 10 Mar 2015 in reply to Kristian Nikolov Link to this post

    Did you even try it yourself? Telerik's first response always assumes the problem lies with the customer.

    Of course I've checked the debug settings. It can very easily be reproduced: create a console application in VS2015, build and the .pdb is generated. Then go to VS2013, add a domain model, build and and the .pdb is generated. Clean the project, got to VS2015, build and no .pdb is generated.

    Maarten
  5. Kristian Nikolov
    Admin
    Kristian Nikolov avatar
    206 posts

    Posted 12 Mar 2015 Link to this post

    Hello Maarten,

    Thank you for your feedback.

    We are sorry to have left you with such a negative impression.

    Based on the additional information you have provided, it appears that you are creating the project in Visual Studio 2015 and using Visual Studio 2013 to add a Domain Model to the same project which would then be used again in Visual Studio 2015. Since the visual tooling and Visual Studio add-in of Telerik Data Access are not integrated with Visual Studio 2015, such scenario is not supported. This is the likely reason for the behavior you are experiencing.

    As an alternative way to use Telerik Data Access with Visual Studio 2015 you can try using a Fluent Model with our NuGet packages. To get familiar with howFluent Models work, you can check out the Telerik.DataAccess.Fluent.Sample NuGet package and refer to this section of our documentation. While this approach should circumvent the incompatibility of the visual tooling and add-in, please be aware that the product is still not tested against Visual Studio 2015, and it is possible that there are issues we are not aware of.

    I hope this helps. Do get back to us in case you have further questions.

    Regards,
    Kristian Nikolov
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
  6. Maarten
    Maarten avatar
    13 posts
    Member since:
    Feb 2013

    Posted 16 Jun 2015 in reply to Kristian Nikolov Link to this post

    If anyone is interested, I found a workaround for this problem by including the following at the very end of the .csproj file:

    <Target Name="BeforeBuild" Condition="'$(Configuration)' == 'DEBUG'">
      <Delete Files="obj\debug\$(ProjectName).pdb.tmp" ContinueOnError="true"/>
    </Target>
    <Target Name="AfterClean" Condition="'$(Configuration)' == 'DEBUG'">
      <Delete Files="obj\debug\$(ProjectName).pdb.tmp" ContinueOnError="true"/>
      <Delete Files="bin\debug\$(ProjectName).pdb" ContinueOnError="true"/>
    </Target>
    <Target Name="AfterCompile" Condition="'$(Configuration)' == 'DEBUG'">
      <Copy SourceFiles="obj\debug\$(ProjectName).pdb" DestinationFiles="obj\debug\$(ProjectName).pdb.tmp" SkipUnchangedFiles="true" ContinueOnError="true"/>
    </Target>
    <Target Name="AfterBuild" Condition="'$(Configuration)' == 'DEBUG'">
      <Copy SourceFiles="obj\debug\$(ProjectName).pdb.tmp" DestinationFiles="bin\debug\$(ProjectName).pdb" SkipUnchangedFiles="true" ContinueOnError="true"/>
      <Delete Files="obj\debug\$(ProjectName).pdb.tmp" ContinueOnError="true"/>
    </Target>
     

    Regards, Maarten

  7. Maarten
    Maarten avatar
    13 posts
    Member since:
    Feb 2013

    Posted 16 Jun 2015 in reply to Maarten Link to this post

    I was happy too soon. The workaround I found, does indeed recover the .pdb file, but the .exe is still marked as being build without debug information and debugging still does not work.

    Maarten

  8. Kristian Nikolov
    Admin
    Kristian Nikolov avatar
    206 posts

    Posted 19 Jun 2015 Link to this post

    Hi Maarten,

    We have researched the issue and it appears to be a bug on our side. A fix is in the works and we hope to make it available with our upcoming Q2 release or soon after it. We will update this thread once the fix is available. Note that the fix will be distributed only with our NuGet packages.

    We are sorry for the caused inconvenience. Please find your Telerik Points updated for reporting this new issue.

    I hope this helps. If you have further questions feel free to get back to us.

    Regards,
    Kristian Nikolov
    Telerik
     
    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
  9. Maarten
    Maarten avatar
    13 posts
    Member since:
    Feb 2013

    Posted 26 Jun 2015 in reply to Kristian Nikolov Link to this post

    Hi Kristian,

    I can confirm that the Q2 2015 version of Data Access is now working with VS 2015RC.

    Thanks a lot, Maarten

  10. Kristian Nikolov
    Admin
    Kristian Nikolov avatar
    206 posts

    Posted 02 Jul 2015 Link to this post

    Hello Maarten,

    Indeed the issue has been addressed with our Q2 release. We are glad things are working out for you.

    Do get back to us in case you have any questions.

    Regards,
    Kristian Nikolov
    Telerik
     
    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
  11. Jonah
    Jonah avatar
    21 posts
    Member since:
    Oct 2012

    Posted 14 Aug 2015 Link to this post

    I am having a very similar issue, however installing the latest version didn't seem to change anything for me.

    My project had been created in VS2012 and now trying to open in  VS2015 no PDB file gets generated.... been messing with this for a few days until I stumbled on this post.

    Was there anything else that you had to do other than update your open access references?

  12. Jonah
    Jonah avatar
    21 posts
    Member since:
    Oct 2012

    Posted 17 Aug 2015 in reply to Jonah Link to this post

    I figured it out, I had to go install the Q2 version through NuGet package manager.
  13. Maarten
    Maarten avatar
    13 posts
    Member since:
    Feb 2013

    Posted 17 Aug 2015 Link to this post

    Hi Jonah,

    Sorry for the late reply, but that was exactly what I did: I migrated to the fluent model (it works, but I'm not happy that I cannot use the visual designer any longer) and installed the latest NuGet package.

    regards, Maarten

  14. Kristian Nikolov
    Admin
    Kristian Nikolov avatar
    206 posts

    Posted 19 Aug 2015 Link to this post

    Hello Jonah,

    Thank you for contacting us.

    We are glad you have resolved the situation. Indeed as mentioned by Maarten, the fix for the issue is available in our Q2 2015 release which is distributed via NuGet packages.

    If you have any more questions, feel free to post at our forums again.

    Regards,
    Kristian Nikolov
    Telerik
     
    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
  15. Mike
    Mike avatar
    7 posts
    Member since:
    Sep 2015

    Posted 15 Sep 2015 in reply to Maarten Link to this post

    Thanks Maarten - your post was extremely helpful. 
  16. Natalie
    Natalie avatar
    1 posts
    Member since:
    Dec 2015

    Posted 11 Dec 2015 Link to this post

    Thanks Maarten, this post solved our issue - much appreciated!

    Telerik: when will 2015 Q2 be available as an msi?

  17. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 16 Dec 2015 Link to this post

    Hello Natalie,

    Telerik Data Access Q2 2015 has an installer (available for download from your Telerik account). Once installed it distributes the following:
    - A shortcut to the Getting Started with Data Access tutorial,
    - Link to the Data Access online documentation,
    - A shortcut to the API Reference folder on your local storage,
    - A shortcut to Profiler and Tuning Advisor

    The runtime assemblies of Data Access Q2 2015 (and the versions after it) are distributed through the NuGet packages.

    I hope this helps. Let me know if you need further information.

    Regards,
    Doroteya
    Telerik
     
    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
Back to Top
DevCraft banner