Build error of C# Wrapper: project.assets.json doesn't have a target for '.NETFramework,Version=v3.5'.
| 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
[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.
[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?