Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

Problem with Universal Windows Platform when minimal version is set to 10.0.16299

Hi,

At first, sorry for my poor english! ;)

I have a problem when i try to take advantage to NetStandard2.0 compatibility (for more info, see https://blogs.msdn.microsoft.com/dotnet/2017/10/10/announcing-uwp-support-for-net-standard-2-0/).

My configuration :
Windows 10 version 1709 (16299.15)
Visual Studio 2017 15.4.1
Unity 2017.2.0f3

I create a new blank project in Unity

Player settings
Scripting runtime version : .Net 4.6
Scripting backend : .Net

Build settings
Universal Windows Platform
Target device : HoloLens
Build Type : D3D
SDK : 10.0.16299.0
Build and Run on : Local Machine
Unity C# Projects : checked

After building Visual Studio C# projet, i made 2 changes :

  • Update Microsoft.NETCore.UniversalWindowsPlatform Nuget package to 6.0.1 version
  • Change in csproj properties Targeting minimal version to 10.0.16299

In this case, i have an error on AssemblyConverter.exe call during build :
Copying unprocessed assemblies...
Running AssemblyConverter...
System.InvalidOperationException: La séquence contient plusieurs éléments correspondants.
à System.Linq.Enumerable.Single[TSource](IEnumerable1 source, Func2 predicate)
à Unity.ModuleContext.GetCorLibMethod(TypeReference type, Func`2 predicate)
à Unity.ModuleContext.GetCorLibMethod(String typeFullName, String methodName)
à Unity.AddMethodUtilityClassStep.WSA_AddInvokeDefaultConstructorMethod(TypeDefinition type)
à Unity.AddMethodUtilityClassStep.ProcessModule()
à Unity.ModuleStep.Execute()
à Unity.Step.Execute(OperationContext operationContext, IStepContext previousStepContext)
à Unity.Operation.Execute()
à Unity.Program.Main(String[] args)

Any idea to solve my problem?

Thanks

Answers

  • Options
    james_ashleyjames_ashley ✭✭✭✭
    edited October 2017

    Hi @oleb,

    First, your English is great.

    Second, the HoloLens runs version 10.0.14393, which is the anniversary edition of Windows. There's no use in targeting a higher version. -- Not sure if that makes a difference in your build, but it might if you are setting your minimal build higher than what the OS actually supports.

    James Ashley
    VS 2017 v5.3.3, Unity 2017.3.0f3, MRTK 2017.1.2, W10 17063
    Microsoft MVP, Freelance HoloLens/MR Developer
    www.imaginativeuniversal.com

  • Options

    You need to reference the version of the package that doesn't have dependencies on your version 10.0.14393. That would be 5.4.2.

Sign In or Register to comment.