librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Build error of C# Wrapper: project.assets.json doesn't have a target for '.NETFramework,Version=v3.5'.

Open bastiankayser opened this issue 8 years ago • 4 comments

Required Info
Camera Model D435
Firmware Version 05.08.15.00
Operating System & Version Win 10
Platform PC
SDK Version source commit 2f6a26aa784cc140f12b9144fdc2fb2171d410fa
VS2017 Version 15.6.3

Issue Description

The C# Wrapper build of Intel.RealSense.SDK.sln in VS2017 fails with the following error:

Assets file 'D:\Repos\librealsense\wrappers\csharp\Intel.RealSense\obj\project.assets.json' doesn't have a target for '.NETFramework,Version=v3.5'. Ensure that restore has run and that you have included 'net35' in the TargetFrameworks for your project. Intel.RealSense C:\Program Files\dotnet\sdk\2.1.102\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets 167

I resolved this by changing netstandard2.0;net35;net461 in Intel.RealSense.csproj to net461 also netstandard2.0 and net35 seem to work. Example programs compile and run. The problem therefore seem to be the multiple values in the tag. Anyone else had that problem? Is this a problem with my enviroment or something general?

bastiankayser avatar Apr 11 '18 18:04 bastiankayser

[Realsense Customer Engineering Team Comment] @bastiankayser Does the solution provided by dorodnic solve you problem?

No since I don't see how it relates to this problem. I haven't checked if the problem still exists in newer versions of the SDK.

bky581 avatar May 14 '18 12:05 bky581

[Realsense Customer Engineering Team Comment] @bky581 Sorry, the comment from dorodnic is false post from internal system. Please have a try on the latest SDK, I try to build and didn't see your issue.

[Realsense Customer Engineering Team Comment] @bky581 Have you tried the new version SDK? Does it fix your problem?