NuGet / Home

Repo for NuGet Client issues
Other
1.49k stars 250 forks source link

Xamarin.Forms NuGet package not installed in Xamarin UWP project #5317

Open GanesanRengasamy opened 7 years ago

GanesanRengasamy commented 7 years ago

I am using the Xamarin.Forms NuGet package as dependent with version 2.3.3.180 for my custom package. I have created the new Xamarin project. By default the Xamarin.Forms package is available in the project with version 2.0.0.6482 image

Now I have tried to install my custom package in the project. While installing my custom NuGet package Xamarin.Forms package restored properly with the version 2.3.3.180 for all project except UWP project.

image

Because of this behavior I have faced the compilation issue in my project.

Could you please suggest the solution to resolve this issue?

GanesanRengasamy commented 7 years ago

Could you please check this and suggest the solution asap?

mishra14 commented 6 years ago

@GanesanRengasamy Can you please give us

  1. Logs from the output window
  2. Detailed repro steps that we can follow to repro this issue.
GanesanRengasamy commented 6 years ago

Hi @mishra14

Logs from the output window,

Attempting to gather dependency information for package 'Xamarin.SfDataGrid.15.4.0.17' with respect to project 'App2.Android', targeting 'MonoAndroid,Version=v7.1' Gathering dependency information took 8,63 sec Attempting to resolve dependencies for package 'Xamarin.SfDataGrid.15.4.0.17' with DependencyBehavior 'Lowest' Resolving dependency information took 0 ms Resolving actions to install package 'Xamarin.SfDataGrid.15.4.0.17' Resolved actions to install package 'Xamarin.SfDataGrid.15.4.0.17'

Attempting to gather dependency information for package 'Xamarin.SfDataGrid.15.4.0.17' with respect to project 'App2', targeting '.NETPortable,Version=v4.5,Profile=Profile111' Gathering dependency information took 2,62 sec Attempting to resolve dependencies for package 'Xamarin.SfDataGrid.15.4.0.17' with DependencyBehavior 'Lowest' Resolving dependency information took 0 ms Resolving actions to install package 'Xamarin.SfDataGrid.15.4.0.17' Resolved actions to install package 'Xamarin.SfDataGrid.15.4.0.17' Restoring packages for C:\Users\Syncfusion\source\repos\App2\App2\App2.UWP\project.json... Detected package downgrade: Xamarin.Forms from 2.4.0.280 to 2.3.3.180. Reference the package directly from the project to select a different version. App2.UWP -> Xamarin.SfDataGrid 15.4.0.17 -> Xamarin.Forms (>= 2.4.0.280) App2.UWP -> Xamarin.Forms (>= 2.3.3.180)

Attempting to gather dependency information for package 'Xamarin.SfDataGrid.15.4.0.17' with respect to project 'App2.Android', targeting 'MonoAndroid,Version=v7.1' Gathering dependency information took 8,63 sec Attempting to resolve dependencies for package 'Xamarin.SfDataGrid.15.4.0.17' with DependencyBehavior 'Lowest' Resolving dependency information took 0 ms Resolving actions to install package 'Xamarin.SfDataGrid.15.4.0.17' Resolved actions to install package 'Xamarin.SfDataGrid.15.4.0.17'

Attempting to gather dependency information for package 'Xamarin.SfDataGrid.15.4.0.17' with respect to project 'App2', targeting '.NETPortable,Version=v4.5,Profile=Profile111' Gathering dependency information took 2,62 sec Attempting to resolve dependencies for package 'Xamarin.SfDataGrid.15.4.0.17' with DependencyBehavior 'Lowest' Resolving dependency information took 0 ms Resolving actions to install package 'Xamarin.SfDataGrid.15.4.0.17' Resolved actions to install package 'Xamarin.SfDataGrid.15.4.0.17' Restoring packages for C:\Users\User\source\repos\App2\App2\App2.UWP\project.json... Detected package downgrade: Xamarin.Forms from 2.4.0.280 to 2.3.3.180. Reference the package directly from the project to select a different version. App2.UWP -> Xamarin.SfDataGrid 15.4.0.17 -> Xamarin.Forms (>= 2.4.0.280) App2.UWP -> Xamarin.Forms (>= 2.3.3.180)

Attempting to gather dependency information for package 'Xamarin.SfDataGrid.15.4.0.17' with respect to project 'App2.iOS', targeting 'Xamarin.iOS,Version=v1.0' Gathering dependency information took 3,44 sec Attempting to resolve dependencies for package 'Xamarin.SfDataGrid.15.4.0.17' with DependencyBehavior 'Lowest' Resolving dependency information took 0 ms Resolving actions to install package 'Xamarin.SfDataGrid.15.4.0.17' Resolved actions to install package 'Xamarin.SfDataGrid.15.4.0.17' Retrieving package 'Xamarin.Forms 2.4.0.280' from 'nuget.org'. Retrieving package 'Xamarin.SfDataGrid 15.4.0.17' from 'Package source'. Removed package 'Xamarin.Forms.2.3.3.180' from 'packages.config' Successfully uninstalled 'Xamarin.Forms.2.3.3.180' from App2.Android Adding package 'Xamarin.Forms.2.4.0.280' to folder 'C:\Users\User\source\repos\App2\packages' Added package 'Xamarin.Forms.2.4.0.280' to folder 'C:\Users\User\source\repos\App2\packages' Added package 'Xamarin.Forms.2.4.0.280' to 'packages.config' Successfully installed 'Xamarin.Forms 2.4.0.280' to App2.Android Adding package 'Xamarin.SfDataGrid.15.4.0.17' to folder 'C:\Users\User\source\repos\App2\packages' Added package 'Xamarin.SfDataGrid.15.4.0.17' to folder 'C:\Users\User\source\repos\App2\packages' Added package 'Xamarin.SfDataGrid.15.4.0.17' to 'packages.config' Successfully installed 'Xamarin.SfDataGrid 15.4.0.17' to App2.Android Executing nuget actions took 32,91 sec Found package 'Xamarin.Forms 2.4.0.280' in 'C:\Users\User\source\repos\App2\packages'. Found package 'Xamarin.SfDataGrid 15.4.0.17' in 'C:\Users\User\source\repos\App2\packages'. Removed package 'Xamarin.Forms.2.3.3.180' from 'packages.config' Successfully uninstalled 'Xamarin.Forms.2.3.3.180' from App2 Package 'Xamarin.Forms.2.4.0.280' already exists in folder 'C:\Users\User\source\repos\App2\packages' Added package 'Xamarin.Forms.2.4.0.280' to 'packages.config' Successfully installed 'Xamarin.Forms 2.4.0.280' to App2 Package 'Xamarin.SfDataGrid.15.4.0.17' already exists in folder 'C:\Users\User\source\repos\App2\packages' Added package 'Xamarin.SfDataGrid.15.4.0.17' to 'packages.config' Successfully installed 'Xamarin.SfDataGrid 15.4.0.17' to App2 Executing nuget actions took 3,72 sec Committing restore... Writing lock file to disk. Path: C:\Users\User\source\repos\App2\App2\App2.UWP\project.lock.json Restore completed in 859,63 ms for C:\Users\User\source\repos\App2\App2\App2.UWP\App2.UWP.csproj. Successfully installed 'Xamarin.SfDataGrid 15.4.0.17' to App2.UWP Executing nuget actions took 1,91 sec Found package 'Xamarin.Forms 2.4.0.280' in 'C:\Users\User\source\repos\App2\packages'. Found package 'Xamarin.SfDataGrid 15.4.0.17' in 'C:\Users\User\source\repos\App2\packages'. Removed package 'Xamarin.Forms.2.3.3.180' from 'packages.config' Successfully uninstalled 'Xamarin.Forms.2.3.3.180' from App2.iOS Package 'Xamarin.Forms.2.4.0.280' already exists in folder 'C:\Users\User\source\repos\App2\packages' Added package 'Xamarin.Forms.2.4.0.280' to 'packages.config' Successfully installed 'Xamarin.Forms 2.4.0.280' to App2.iOS Package 'Xamarin.SfDataGrid.15.4.0.17' already exists in folder 'C:\Users\User\source\repos\App2\packages' Added package 'Xamarin.SfDataGrid.15.4.0.17' to 'packages.config' Successfully installed 'Xamarin.SfDataGrid 15.4.0.17' to App2.iOS Executing nuget actions took 4,91 sec Time Elapsed: 00:00:59.1968322 ========== Finished ==========

Detailed repro steps that we can follow to repro this issue.

  1. I have created the PCL project with the Androd,iOS,UWP project
  2. I have checked the Xamarin.Forms NuGet packages version initially before install my custom NuGet package. The version for the Xamarin.Forms NuGet package is 2.3.3.180
  3. I have configure the NuGet feed which have my custom NuGet package. NuGet feeed: [https://www.myget.org/F/sample-feed-edge1/api/v2] (https://www.myget.org/F/sample-feed-edge1/api/v2)
  4. I have installed my NuGet package which have Xamarin.Form NuGet package as dependent with the version 2.4.0.280

sshot-1

  1. Then I have checked the version for the Xamarin.Forms NuGet packages in the UWP project. The Xamarin.Forms NuGet package is does not updated to the 2.4.0.280 version. But in Android, iOS project it has been updated.

image

Please suggest the solution to resolve this issue.

Thanks, Ganesan R.

Syncfusion-JavaScript commented 6 years ago

Hi @mishra14

Any update on this?