DO 4.3 RC4. 1. Open VS 2. Create new project (and new solution) from DO Model template (goes with Person class sample) 3. Add new standard console application project to the solution 4. Add model project (2) reference to console application (3) 5. Add "new Person();" line into Main() of console project 6. Build.

Observation (or may be bug?): VS complains for type Person. We must be missing the reference. VS didn't copy model project output assembly to console project bin.

  1. Select console project in solution explorer.
  2. VS -> Tools -> DataObjects.NET - Update Project
  3. Tick everything but "PostSharp..." meaning miximum level of instrumentation.
  4. Build.

Bug (!?): VS still complains for the Person.

Manual says "upgrade project" can do whatever is needed to make it working. Does it? If we created console project from DO template it would reference model projects with ease.

Updated at 04.07.2010 11:51:11

I've found the cause of problem. It's because VS2010 creates console projects with client profile. I guess your udater should warn user that project cannot be instrumented because it uses client profile.

This thread was imported from our support forum. The original discussion may contain more detailed answer. Original topic by marmon.

asked Jul 02 '10 at 23:02

Editor's gravatar image


Can you publish its .csproj file here? I'll say what's wrong.

Most likely, DataObjects.Net assemblies + its .targets file aren't referenced. If there is a result of bug in upgrade tool, we'll fix this.

(Jul 02 '10 at 23:02) Alex Yakunin Alex%20Yakunin's gravatar image

One Answer:

Ups, yes. Actually, this will be fixed soon: currently Xtensive.Storage references System.Web (because of Xtensive.Storage.Web.SessionManager), which isn't a part of .NET 4 Client Profile. But quite soon it will be moved to optional Xtensive.Practices.Web. We just should finish up with the current release (4.3).

answered Jul 05 '10 at 02:38

Alex%20Yakunin's gravatar image

Alex Yakunin

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA