1

Closed

4.5.0-rc2 - import Project="..\packages\OpenRiaservices.Client.CodeGen.."

description

After upgrading my solution to 4.5.0-rc2 (from 4.4.1), I could not open my Silverlight client anymore, complaining I could only reference other Silverlight projects.

I noticed these lines were added to my Silverlight .proj:
  <Import Project="..\packages\OpenRiaServices.Client.CodeGen.4.5.0-rc2\build\OpenRiaServices.Client.CodeGen.targets" Condition="Exists('..\packages\OpenRiaServices.Client.CodeGen.4.5.0-rc2\build\OpenRiaServices.Client.CodeGen.targets')" />
  <Import Project="..\packages\OpenRiaServices.Silverlight.CodeGen.4.5.0-rc2\build\OpenRiaServices.Silverlight.CodeGen.targets" Condition="Exists('..\packages\OpenRiaServices.Silverlight.CodeGen.4.5.0-rc2\build\OpenRiaServices.Silverlight.CodeGen.targets')" />
deleting the first import allowed the project to open.

file attachments

Closed Jun 14 at 12:53 PM by danneesset

comments

danneesset wrote Feb 3 at 7:14 PM

This is an unfortunate side effect from having two different CodeGen nuget packages.

The original intention was to migrate from Silverlight to the Client for all project types, but the later codegen does not work with Silverlight so for Silverlight project it is recommended to have only OpenRiaServices.Silverlight.CodeGen package installed while OpenRiaServices.Client.CodeGen should be used for all other targets.

I recommend you to uninstall the OpenRiaServices.Client.CodeGen package completely

danneesset wrote Feb 3 at 7:16 PM

Ideas of how to make the upgrade experience smoother or a good wording for the release page to warn for this issue would be apprechiated

rkone wrote Feb 3 at 8:35 PM

I can't remove ORS.Client.CodeGen - ORS.Client lists it as a dependency!?

danneesset wrote Feb 8 at 7:50 PM

rkone can you upload you packages.config (or at leasts its contents) for the client project.

I was hoping that the latest ORS.Client should include OpenRiaServices.Silverlight.CodeGen for Silverlight projects and OpenRiaServices.Client.CodeGen for all other projects types. Maybe there is some other package or mismatch in versions which cause this?

rkone wrote Feb 9 at 6:32 PM

I had to revert back to 4.4 - the next problem after my fix was that I was missing OpenRiaServices.Client.Web Version=4.0.0.0 and couldn't run the solution.
Also worrying was I couldn't just revert the packages, the project no longer recognized any references(?). I had to use a backup.

FWIW, I've attached my 4.4 client packages.config. It's pretty basic I think.