ODataConnectedService icon indicating copy to clipboard operation
ODataConnectedService copied to clipboard

Project attempts to install Microsoft.VisualStudio.Threading Version=17.11.0.0

Open ohQQ opened this issue 1 year ago • 7 comments

Describe the bug

For Visual Studio Pro 2022 (64 bit) - LTSC 17.10, attempting to use the extension wizard to generate results in the extension installing a version of Microsoft.VisualStudio.Threading Version 17.11.00. This version is not an official release, nor accessible from nuget.

Version of the Project affected

ODataConnectedService v1.1.1 VisualStudio Version v17.10 Microsoft.Odata.Client v8.2.2

To Reproduce

Steps to reproduce the behavior:

  1. Install the latest (as of writing) version of OData Connected Service 2022+
  2. Use the wizard to connect to a service (using all defaults, but also fails on T4 templates)
  3. Watch dependency installation step fail at retrieving Nuget package Microsoft.VisualStudio.Threading Version=17.11.0.0 Culture=neutral

Expected behavior

Install dependencies with no problem

Actual behavior

Half generated scaffolding with an error

Additional context

Explicitly installing version 1.0.0 does not have the same issue.

ohQQ avatar Nov 25 '24 19:11 ohQQ

@ohQQ I am using ODataConnectedService v1.1.1 but I can't reproduce the same issue when connect to services.odata.org/TripPinRESTierService/(S(4dte2qgkqy1lkpudzkpnk4om))/$metadata service

Please try connecting to services.odata.org/TripPinRESTierService/(S(4dte2qgkqy1lkpudzkpnk4om))/$metadata service and let us know if you are still facing the same.

Kindly also share your CSDL to help us repro this isse.

WanjohiSammy avatar Nov 26 '24 11:11 WanjohiSammy

It would be on a clean install without dependencies, regardless of the CSDL or endpoint image001

ohQQ avatar Nov 26 '24 14:11 ohQQ

Same problem here trying to connect to Business Central OData Endpoint

thehe avatar Dec 12 '24 07:12 thehe

@thehe , @ohQQ Kindly provide the version of Visual Studio that you are currently using.

I'm using Microsoft Visual Studio 2022 (64-bit) - Version 17.13.0 Preview 1.0.

I have uninstalled and reinstalled ODataConnectedService 2022 but still could not repro the issue.

Just a quick question: When connecting to your service, are you using ODataConnectedService default settings or what else are you configuring that might cause the issue? image

WanjohiSammy avatar Dec 12 '24 18:12 WanjohiSammy

All default, no advanced. Did you uninstall any of the dependencies that the wizard installs? VisualStudio.Threading > 17.0 and see if it can be reproduced.

ohQQ avatar Dec 12 '24 18:12 ohQQ

same problem here after update of ODataConnectedService, my project now have same error about threading package when trying to generate client for endpoint:

Adding Nuget Packages... Nuget Package "Microsoft.OData.Client" for OData client already installed. Nuget Package "Microsoft.OData.Core" for OData client already installed. Nuget Package "Microsoft.OData.Edm" for OData client already installed. Nuget Package "Microsoft.Spatial" for OData client already installed. Nuget Package "System.Text.Json" for OData client already installed. Nuget Package "System.ComponentModel.Annotations" for OData client already installed. Nuget Packages were installed. Generating Client Proxy for OData V4... Error:Adding OData Connected Service to the project failed: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=17.11.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

tried unistalling and reainstalling Odata service extensions, creating blank new project and pulling from my usual Business Central OData Endpoint, also tried from [services.odata.org/TripPinRESTierService/(S(4dte2qgkqy1lkpudzkpnk4om))/$metadata] same result

Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.8.5 Odata Connected Service 2022 - 1.1.1

going back to 1.1.0 solves problem :)

domibu avatar Feb 07 '25 13:02 domibu

Confirming I had the same issue as @domibu. The generator fails because it can't find Microsoft.VisualStudio.Threading, Version=17.11.0.0.

Downgrading the "OData Connected Service 2022" extension to 1.1.0 fixed it.

I used this method to download the specific older version: https://stackoverflow.com/a/74663047/15621747

hyggenygge avatar Jun 23 '25 10:06 hyggenygge