Bukimedia / PrestaSharp

CSharp .Net client library for the PrestaShop API via web service
GNU General Public License v3.0
154 stars 152 forks source link

Visual studio Project errors #475

Open sanctusmob opened 1 month ago

sanctusmob commented 1 month ago

I have sync master branch (and i also download the project as zip) and when i open the project i am getting 3 errors.

1) Severity Code Description Project File Line Suppression State Error System.Runtime.CompilerServices.Unsafe doesn't support netcoreapp2.1. Consider updating your TargetFramework to netcoreapp3.1 or later. PrestaSharp.IntegrationTests C:\Users\efialtis.nuget\packages\system.runtime.compilerservices.unsafe\6.0.0\buildTransitive\netcoreapp2.0\System.Runtime.CompilerServices.Unsafe.targets 4

2) Severity Code Description Project File Line Suppression State Error NU1201 Project PrestaSharp is not compatible with net452 (.NETFramework,Version=v4.5.2). Project PrestaSharp supports: netstandard2.0 (.NETStandard,Version=v2.0) PrestaSharp.IntegrationTests C:\Users\User\Downloads\PrestaSharp-master\PrestaSharp.IntegrationTests\PrestaSharp.IntegrationTests.csproj 1

3) Severity Code Description Project File Line Suppression State Error Project '..\PrestaSharp\PrestaSharp.csproj' targets 'netstandard2.0'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.5.2'. PrestaSharp.IntegrationTests C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 1867

sanctusmob commented 1 month ago

I solve the problem by changing the target framework for PrestaSharp to net472 PrestaSharp.IntergrationTests to net472 PrestaSharpTests to .net 8.0 and now i see updated restsharp :)