Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual studio extension OpenRiaServicesLibrary project template fails in VS 2017 #227

Open
andrewhenry3 opened this issue May 9, 2020 · 9 comments

Comments

@andrewhenry3
Copy link

The Open Ria Services extension in the Visual Studio Marketplace (Version 0.0.9.3) fails to create a project from the OpenRiaServicesLibrary template.

Installed 0.0.9.3 into VS 2017, created a new Open Ria Services C# OpenRiaServicesLibrary project. Got error "Package Installation Error" - Count not add all required packages to the project. The following packages failed to install from 'C:\Users\Ahenry\appdata\local\microsoft\visualstudio\15.0_A19BC0B1\EXTENSIONS\IHTCLTH3.FZU\Packages': OpenRiaServices.Client.4.6.3 : Unable to find version '4.6.3' of package 'OpenRiaServices.Client'.
Only minimal projects with no OpenRia references or link were created.

Tested with VS 15.9.20 and 15.9.11

@andrewhenry3
Copy link
Author

Here's the contents of the extension folder from that install

InstalledExtensionFolder.zip

@Daniel-Svensson
Copy link
Member

Thank you for reporting the issue I will se if I can understand why it happens.

In the mean time I recommend a workaround

  1. create 2 project manually (client and server project)
  2. In client project install "OpenRiaServices.Client" (or "OpenRiaServices.Client.Core" and "OpenRiaServices.Client.CodeGen")
  3. In server project install "OpenRiaServices.Server"
  4. Right click client project and choose "Manage Open RIA Services Project Link"
    image
  5. In the dropdown select the server project and then choose if you want to generate the webContext class (true if you only have a single project with code generation enabled)

@Daniel-Svensson Daniel-Svensson added the Workaround-Confirmed A working woraround exists label May 11, 2020
@Daniel-Svensson
Copy link
Member

When we release the tooling for OpenRiaServices v5 I think it would be a good idea to change the wizards so that it searches for the latest release on nuget and installs that version instead of trying to use the built in extension nuget support.

@andrewhenry3
Copy link
Author

The workaround mostly did the job but some of the required references aren't added with the Client nuget install. I needed System.ComponentModel.DataAnnotations, System.Runtime.Serialization, and System.ServiceModel .

@Daniel-Svensson
Copy link
Member

Thanks for the feedback.
What Target framework you use for the client and did you use the newer "sdk" style project or the classic version?

@andrewhenry3
Copy link
Author

Classic style, 4.6.2

@Daniel-Svensson
Copy link
Member

@andrewhenry3 is this still a problem, with the latest plugin?

@andrewhenry3
Copy link
Author

andrewhenry3 commented Oct 20, 2021

The original error still comes up for me when creating a project from the template, just the version numbers that it complains about have updated to 5.0.0. Tested in VS 2017 and 2019. I haven't tried manually creating new projects in 5.0 yet.

@Daniel-Svensson
Copy link
Member

Thank you for trying it out again, I will not be able to look inte this in the near future but feel free to give it a try if you are interested.

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

No branches or pull requests

2 participants