Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Unity (.NET 3.5) #260

Open
maxenceboucas opened this issue Jul 12, 2017 · 3 comments
Open

Support Unity (.NET 3.5) #260

maxenceboucas opened this issue Jul 12, 2017 · 3 comments

Comments

@maxenceboucas
Copy link

I've tried to install the Wrapper to get HoloLens Api vidéo stream into a Unity Project but I'can succeed to install it.

Can you help me ?

First try NuGet:

  • Install package
  • ERROR: .NetFramework v3.5 (too old)
  • Impossible to change into VS cause it's a unity project
  • Changing into Unity Framework target to 4.6 (in Edit>Project Settings>Player>Other Settings>Configuration)
  • Changing Nothing

Second Try DLL:

  • Compile into VS the dll
  • Add dll to assets
  • Impossible to add the reference to this ddl into VS
  • ERROR 1 : into DLL file on Unity " Plugin targets .NET 4.x ... incompatible with Editor
  • ERROR 2 :
    UnityException: Failed to run reference rewriter with command --target="Temp\StagingArea\WindowsDevicePortalWrapper.dll" --additionalreferences="Temp\StagingArea","Temp\StagingArea\Plugins\ARM" ...

Can you show me the way to add this library to my project ?

Thanks a lot

@hpsin
Copy link
Contributor

hpsin commented Jul 12, 2017

This is something that @davidkline-ms would like as well, as Unity interplay with WDPW would be very nice for HoloLens development. At this time I don't think there's a way to do this - it would require Unity to support .NET 4.5 or for us to shift the library to use .NET 3.5 which would break many of the new features we're using.

Leaving this open as it is a good thing to have. I'd suggest talking to Unity and asking them to support .NET 4.5.

@hpsin hpsin changed the title Unity HoloLens Project lnstall Impossible Support Unity (.NET 3.5) Jul 12, 2017
@david-c-kline
Copy link

As @hpsin mentions, adding support for .net 3.5 is not trivial as we are utilizing patterns that are not supported against that target.

I agree we should keep this open.

@Holo-Krzysztof
Copy link

Unity 2017.1 has an experimental .NET 4.6 compatible runtime, so it should theoretically work now. It won't be default for the time being, but it's a start after all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants