urig
urig

Reputation: 16841

Why is Orleans not recognized in 'Orleans Grains Class Collection' project?

I'm trying to write a simple Orleans demo solution:

  1. I've installed Orleans v1.0.0 via the .msi from github.
  2. I've created a new Visual Studio 2013 solution.
  3. I've created a new Orleans Grains Interface Collection type project.
  4. I've created a new Orleans Grains Class Collection type project

In the interface collection project, I can type Orleans and VS2013 Intellisense recognizes the namespace and its contents:

enter image description here

In the class collection project I can't:

enter image description here

Why is this happening and how can I fix it?

Upvotes: 0

Views: 1029

Answers (2)

urig
urig

Reputation: 16841

I've been able to resolve my issue with generous help from Sergey Bikov from the Microsoft Orleans team.

What I did was:

  1. I add the missing reference from my grain project to my interface project, and added using MyGrainInterfaces1; to Grain1.cs. (Just so my solution would build without errors)

  2. I removed the references to the Orleans.dll from both my projects and then re-added them manually. (Path to Orleans.dll for me is C:\Microsoft Project Orleans SDK v1.0\SDK\Binaries\OrleansClient\Orleans.dll

Now the Orleans namespace is recognized in both projects correctly.

Side note: Not sure why this did not work for me when I tried it several days ago.

Upvotes: 2

lmagyar
lmagyar

Reputation: 992

  1. Add reference from grain project to interface project, add using MyGrainInterfaces1; to Grain1.cs and build.
  2. Unload/reload grain project. - This seems to be an IntelliSense "feature".

Upvotes: 1

Related Questions