This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
Cannot reference Sensor SDK from .NET Class Library #894
Labels
Bug
Something isn't working
CSharp
This issue affects only the C# Wrapper
Triage Approved
The Issue has been approved by an Azure Kinect team member.
Describe the bug
Create a new .NET Standard Class Library, and you'll be prevented from referencing the SDK due to the class library being AnyCPU.
This limitation should not be put on libraries but only on applications.
To Reproduce
Expected behavior
Check should only be done on applications, not libraries.
Suggested fix
Change the targets file to also check on output type:
Side note
Since such a class library would transitively bring in the kinect sensor package, you should also add the same build files in the nuget package to /buildTransitive/ to ensure the .targets file are run on applications not directly referencing that nuget package.
Screenshots
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: