How to create Shared Project in Visual Studio?

It’s looks like a stupid question.
I already read http://docs.elementscompiler.com/Projects/SharedProjects/
But I still don’t know how to do it (English is not my native language).

I right click solution > Add > New Project… > RemObjects Silver
I can see WPF, Mac, iOS, and Android, but no Shared Project.
I look under .NET and Java but still no Shared Project.

Hmm, you should see Shared Project under templates form each of the three languages (even though the team plates is language agonistic, since it doesn’t contain any code from the get). Unfortunately i’m traveling today and don’t have access to a Windows machine or VM to check or take a screenshot, right now, but i will double-check tomorrow. Shared project should be on the top level of each language, not in a specific subfolder (such as WPF or the like).

I don’t see any shared project-types either. Visual Studio 2013 update 4 on Windows 7 with Elements 8.1.85.1801.

Do shared projects work without the Windows Phone 8.1 SDK installed (which I don’t think works on Windows 7)?

It does appear in Visual Studio 2015 Pro on Windows 10. Same version of Elements.

Can you upload the empty project created by shared project?
Thanks

Hm, it’s weird, this project template is installed for each language and doesn’t require anything addintional. I have it for VS2013 and VS2015 here. Please, if check C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ProjectTemplates\Oxygene\Other\1033\SharedProject.zip exists.
Here’s empty project: SharedProject1.zip (1.9 KB)

I found the zip you mentioned.
But I can not see it in VS2013 Community Edition template list (no Other folder).

Ah, I see the reason, template itself has restriction and require Windows 8.1, but I think it’s not warranted. We will fix it for the next beta.
As a workaround you can enable this template manually.
To do this:

  1. Unzip C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ProjectTemplates\Oxygene\Other\1033\SharedProject.zip somewhere.
  2. Open Shared.vstemplate file
  3. Remove
    <RequiredPlatformVersion>6.3.0</RequiredPlatformVersion>
    line. Save.
  4. Zip files again and put back to Program Files.
  5. Open VS command prompt and execute “devenv /installvstemplates” command, restart Visual Studio - template should be in the dialog.
1 Like