Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

ccrewrite incorrect pdb files, Causes problem in Open RIA Services Client Code generation (Code Contracts 1.7.11202.10) #35

Open
niklas-holma opened this issue Apr 28, 2015 · 0 comments

Comments

@niklas-holma
Copy link

We are using OpenRIA Services to generate silverlight client code from a server application.

When enabling Runtime Contract Checing : Full, the client code is not generated properly. There are a lot of missing entity properties in the generated code.

When debugging the OpenRiaServices.DomainServices.Tools project (during client code generation) it seems that when ccrewrite has done its job, the web-projects .pdb-file refers to the wrong .cs files.

This is the code used by OpenRiaServices to read the pdb. http://openriaservices.codeplex.com/SourceControl/latest#OpenRiaServices.DomainServices.Tools/Framework/Pdb/PdbSourceFileProviderFactory.cs

By checking the Read/Writes from MSBuild it seems that it reads the correct pdb atleast, but since the wrong files are refered from the pdb the properties for each entity is not found.

It seems like we are not the first to stumble upon this/similar problem : https://social.msdn.microsoft.com/Forums/en-US/e7a48a93-fe1d-4678-a150-6d025331388a/ria-services-client-code-generation-broken-after-installing-code-contracts-146031712?forum=codecontracts

This only happens when we enable Code Contracts. The pdb file refers to the correct files when Code Contracts is not enabled, and the client code is generated correctly.

(Also, i have tried to reinstall Code Contracts but same problem exists.)

(link to same issue on msdn : https://social.msdn.microsoft.com/Forums/en-US/1742d91f-a33e-41c9-b20f-5df5196267bc/ccrewrite-incorrect-pdb-files-causes-problem-in-open-ria-services-client-code-generation-code?forum=codecontracts)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant