Search Unity

Cant build out from Visual Studio

Discussion in 'Windows' started by SkobbejakGames, May 15, 2017.

  1. SkobbejakGames

    SkobbejakGames

    Joined:
    Jun 3, 2016
    Posts:
    396
    Hi,

    I was able to build out my UWP project from Unity just fine the other day and get it in the right format in order to open and build out in Visual Studio.

    However, ever since I exited the project and re-opened it, everytime I try to build out, even though the build completes in Unity, the Build folder just stays empty and the files necessary to open and build out from Visual Studio is nowhere to be found.

    The only error that I am getting in Unity that seems to be possibly related is this one (I get it as soon as Unity is done building out):

    AssemblyResolutionException: Failed to resolve assembly: 'System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters)
    Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name)
    Mono.Cecil.DefaultAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name)
    UnityEditor.MonoAssemblyStripping+<CollectAssembliesRecursive>c__AnonStorey1.<>m__0 (Mono.Cecil.AssemblyNameReference a) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/MonoAssemblyStripping.cs:291)
    System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[Mono.Cecil.AssemblyNameReference,Mono.Cecil.AssemblyDefinition].MoveNext ()
    System.Linq.Enumerable+<CreateSelectManyIterator>c__Iterator12`2[Mono.Cecil.AssemblyDefinition,Mono.Cecil.AssemblyDefinition].MoveNext ()
    System.Collections.Generic.HashSet`1[Mono.Cecil.AssemblyDefinition].UnionWith (IEnumerable`1 other)
    UnityEditor.MonoAssemblyStripping.CollectAssembliesRecursive (IEnumerable`1 assemblies) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/MonoAssemblyStripping.cs:290)
    UnityEditor.MonoAssemblyStripping.GenerateLinkXmlToPreserveDerivedTypes (System.String stagingArea, System.String librariesFolder, UnityEditor.RuntimeClassRegistry usedClasses) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/MonoAssemblyStripping.cs:258)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (System.String stagingAreaData, IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:176)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:128)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:123)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean debugBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:32)
    PostProcessUAPIl2Cpp.RunIL2CPP () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessUAPIl2Cpp.cs:92)
    PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:135)
    UnityEditor.WSA.BuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:155)
    UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:186)
    UnityEditor.HostView:OnGUI()

    Im not sure what it means though and if it is related, how to go about fixing it.

    I am using the following guide to help with the basics:

    https://blogs.windows.com/buildinga...p-building-and-deploying/#fr772qTB6MJZetHJ.97

    Please any help on the matter would be immensely appreciated. Please let me know if I need to provide any other details.

    Thanks in advance for any help or advice on the matter, it would be greatly appreciated.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,675
    Hey which Unity version are you on? It seems that one of your DLLs in your project is referencing System.Runtime.dll from .NET 4.6, and your project is configured to target .NET 2.0. I could probably give you more info if you attached your editor.log. In order for it to work, you'll have to switch to .NET 4.6 API Compatibility level in the player settings.
     
  3. SkobbejakGames

    SkobbejakGames

    Joined:
    Jun 3, 2016
    Posts:
    396
    Thanks for the advice, I managed to fix it though, I just forgot that I switched the project to IL2CPP to do a test, When I switched back to .NET the build built out fine.

    However, I now seem to get the following errors in Visual Studio when I try to build the packaged build out:

    Severity Code Description Project File Line Suppression State
    Error The command ""F:\VerloreBackup\UWP\Mind\Build_Store\Unity\Tools\SerializationWeaver\SerializationWeaver.exe" "F:\VerloreBackup\UWP\Mind\Build_Store\GeneratedProjects\UWP\Assembly-CSharp\bin\x64\Master\Unprocessed\Assembly-CSharp.dll" -pdb -verbose -unity-engine="F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\Unprocessed\UnityEngine.dll" -unity-networking="F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\Unprocessed\UnityEngine.Networking.dll" -additionalAssemblyPath="F:\VerloreBackup\UWP\Mind\Build_Store\GeneratedProjects\UWP\Assembly-CSharp-firstpass\bin\x64\Master" "F:\VerloreBackup\UWP\Mind\Build_Store\GeneratedProjects\UWP\Assembly-CSharp\obj\x64\Master\x64\Master"" exited with code 1. Assembly-CSharp F:\VerloreBackup\UWP\Mind\Build_Store\GeneratedProjects\UWP\Assembly-CSharp\Assembly-CSharp.csproj 251

    Severity Code Description Project File Line Suppression State
    Error CS0006 Metadata file 'F:\VerloreBackup\UWP\Mind\Build_Store\GeneratedProjects\UWP\Assembly-CSharp\bin\x64\Master\Assembly-CSharp.dll' could not be found nVerloreVerstand F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\CSC 1 Active

    Im not sure why the Assembly-CSharp.dll file is missing or how to go about fixing the issue.

    Please, any help or advice on the matter would be immensely appreciated.
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,675
    Can you paste the contents of the "Output" window? The errors window isn't particularly useful.

    I suppose you actually want to use .NET rather than IL2CPP? Just wondering as that affects troubleshooting steps :).
     
  5. SkobbejakGames

    SkobbejakGames

    Joined:
    Jun 3, 2016
    Posts:
    396
    Hi, thanks for the fast reply.

    This is what Im getting from the Output Window:

    Code (CSharp):
    1. Failed to resolve all project references for 'nVerloreVerstand'. The package restore result for 'F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\nVerloreVerstand.csproj' may be incomplete.
    2. Restoring NuGet packages...
    3. To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
    4. 1>------ Build started: Project: Assembly-CSharp-firstpass, Configuration: Master x64 ------
    5. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Environment\Water\Water\Scripts\Water.cs(338,18,338,51): warning CS0618: 'SystemInfo.supportsRenderTextures' is obsolete: 'supportsRenderTextures always returns true, no need to call it'
    6. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Utility\ParticleSystemDestroyer.cs(28,43,28,63): warning CS0618: 'ParticleSystem.startLifetime' is obsolete: 'startLifetime property is deprecated. Use main.startLifetime or main.startLifetimeMultiplier instead.'
    7. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Effects\ImageEffects\Scripts\PostEffectsBase.cs(115,54,115,87): warning CS0618: 'SystemInfo.supportsRenderTextures' is obsolete: 'supportsRenderTextures always returns true, no need to call it'
    8. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Effects\ImageEffects\Scripts\MotionBlur.cs(24,18,24,51): warning CS0618: 'SystemInfo.supportsRenderTextures' is obsolete: 'supportsRenderTextures always returns true, no need to call it'
    9. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\CrossPlatformInput\Scripts\TouchPad.cs(37,11,37,26): warning CS0169: The field 'TouchPad.m_JoytickOutput' is never used
    10. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Utility\SmoothFollow.cs(19,17,19,32): warning CS0649: Field 'SmoothFollow.rotationDamping' is never assigned to, and will always have its default value 0
    11. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Utility\AutoMobileShaderSwitch.cs(12,50,12,67): warning CS0169: The field 'AutoMobileShaderSwitch.m_ReplacementList' is never used
    12. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(13,39,13,50): warning CS0649: Field 'FirstPersonController.m_IsWalking' is never assigned to, and will always have its default value false
    13. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\RigidbodyFirstPersonController.cs(88,23,88,34): warning CS0169: The field 'RigidbodyFirstPersonController.m_YRotation' is never used
    14. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\CrossPlatformInput\Scripts\TouchPad.cs(35,11,35,21): warning CS0169: The field 'TouchPad.m_StartPos' is never used
    15. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Utility\SmoothFollow.cs(21,17,21,30): warning CS0649: Field 'SmoothFollow.heightDamping' is never assigned to, and will always have its default value 0
    16. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(16,56,16,73): warning CS0649: Field 'FirstPersonController.m_RunstepLenghten' is never assigned to, and will always have its default value 0
    17. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(29,44,29,55): warning CS0649: Field 'FirstPersonController.m_LandSound' is never assigned to, and will always have its default value null
    18. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(26,40,26,54): warning CS0649: Field 'FirstPersonController.m_StepInterval' is never assigned to, and will always have its default value 0
    19. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\CrossPlatformInput\Scripts\TouchPad.cs(36,11,36,26): warning CS0169: The field 'TouchPad.m_PreviousDelta' is never used
    20. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(15,40,15,50): warning CS0649: Field 'FirstPersonController.m_RunSpeed' is never assigned to, and will always have its default value 0
    21. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Utility\SmoothFollow.cs(10,21,10,27): warning CS0649: Field 'SmoothFollow.target' is never assigned to, and will always have its default value null
    22. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(21,39,21,51): warning CS0649: Field 'FirstPersonController.m_UseFovKick' is never assigned to, and will always have its default value false
    23. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(28,44,28,55): warning CS0649: Field 'FirstPersonController.m_JumpSound' is never assigned to, and will always have its default value null
    24. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(14,40,14,51): warning CS0649: Field 'FirstPersonController.m_WalkSpeed' is never assigned to, and will always have its default value 0
    25. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Utility\WaypointProgressTracker.cs(14,50,14,57): warning CS0649: Field 'WaypointProgressTracker.circuit' is never assigned to, and will always have its default value null
    26. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Utility\PlatformSpecificContent.cs(24,39,24,61): warning CS0649: Field 'PlatformSpecificContent.m_ChildrenOfThisObject' is never assigned to, and will always have its default value false
    27. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(34,23,34,34): warning CS0169: The field 'FirstPersonController.m_YRotation' is never used
    28. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(20,44,20,55): warning CS0649: Field 'FirstPersonController.m_MouseLook' is never assigned to, and will always have its default value null
    29. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Utility\PlatformSpecificContent.cs(21,51,21,69): warning CS0649: Field 'PlatformSpecificContent.m_BuildTargetGroup' is never assigned to, and will always have its default value
    30. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(17,40,17,51): warning CS0649: Field 'FirstPersonController.m_JumpSpeed' is never assigned to, and will always have its default value 0
    31. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(19,40,19,59): warning CS0649: Field 'FirstPersonController.m_GravityMultiplier' is never assigned to, and will always have its default value 0
    32. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(27,46,27,62): warning CS0649: Field 'FirstPersonController.m_FootstepSounds' is never assigned to, and will always have its default value null
    33. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(18,40,18,60): warning CS0649: Field 'FirstPersonController.m_StickToGroundForce' is never assigned to, and will always have its default value 0
    34. 1>F:\VerloreBackup\UWP\Mind\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(23,39,23,51): warning CS0649: Field 'FirstPersonController.m_UseHeadBob''ParticleEmitter' is obsolete: 'This component is part of the legacy particle system, which is deprecated and will be removed in a future release. Use the ParticleSystem component instead.'
    35. 2>F:\VerloreBackup\UWP\Mind\Assets\UFPS\Base\Scripts\Gameplay\Player\vp_Weapon.cs(45,14,45,18): warning CS0108: 'vp_Weapon.Type' hides inherited member 'vp_Component.Type'. Use the new keyword if hiding was intended.
    36. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(18,22,18,68): warning CS0618: 'ParticleSystem.startSpeed' is obsolete: 'startSpeed property is deprecated. Use main.startSpeed or main.startSpeedMultiplier instead.'
    37. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(21,29,21,45): warning CS0618: 'ParticleSystem.EmissionModule.rate' is obsolete: 'rate property is deprecated. Use rateOverTime or rateOverDistance instead.'
    38. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(22,24,22,73): warning CS0618: 'ParticleSystem.startLifetime' is obsolete: 'startLifetime property is deprecated. Use main.startLifetime or main.startLifetimeMultiplier instead.'
    39. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(23,17,23,62): warning CS0618: 'ParticleSystem.startSize' is obsolete: 'startSize property is deprecated. Use main.startSize or main.startSizeMultiplier instead.'
    40. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(31,20,31,27): warning CS0618: 'ParticleSystem.EmissionModule.rate' is obsolete: 'rate property is deprecated. Use rateOverTime or rateOverDistance instead.'
    41. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(40,23,40,39): warning CS0618: 'ParticleSystem.EmissionModule.rate' is obsolete: 'rate property is deprecated. Use rateOverTime or rateOverDistance instead.'
    42. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(43,13,43,20): warning CS0618: 'ParticleSystem.EmissionModule.rate' is obsolete: 'rate property is deprecated. Use rateOverTime or rateOverDistance instead.'
    43. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(44,4,44,53): warning CS0618: 'ParticleSystem.startLifetime' is obsolete: 'startLifetime property is deprecated. Use main.startLifetime or main.startLifetimeMultiplier instead.'
    44. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(44,84,44,133): warning CS0618: 'ParticleSystem.startLifetime' is obsolete: 'startLifetime property is deprecated. Use main.startLifetime or main.startLifetimeMultiplier instead.'
    45. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(49,17,49,24): warning CS0618: 'ParticleSystem.EmissionModule.rate' is obsolete: 'rate property is deprecated. Use rateOverTime or rateOverDistance instead.'
    46. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(50,6,50,55): warning CS0618: 'ParticleSystem.startLifetime' is obsolete: 'startLifetime property is deprecated. Use main.startLifetime or main.startLifetimeMultiplier instead.'
    47. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(51,5,51,51): warning CS0618: 'ParticleSystem.startSpeed' is obsolete: 'startSpeed property is deprecated. Use main.startSpeed or main.startSpeedMultiplier instead.'
    48. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(52,6,52,51): warning CS0618: 'ParticleSystem.startSize' is obsolete: 'startSize property is deprecated. Use main.startSize or main.startSizeMultiplier instead.'
    49. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(57,27,57,43): warning CS0618: 'ParticleSystem.EmissionModule.rate' is obsolete: 'rate property is deprecated. Use rateOverTime or rateOverDistance instead.'
    50. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(60,13,60,20): warning CS0618: 'ParticleSystem.EmissionModule.rate' is obsolete: 'rate property is deprecated. Use rateOverTime or rateOverDistance instead.'
    51. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(61,4,61,53): warning CS0618: 'ParticleSystem.startLifetime' is obsolete: 'startLifetime property is deprecated. Use main.startLifetime or main.startLifetimeMultiplier instead.'
    52. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(61,73,61,122): warning CS0618: 'ParticleSystem.startLifetime' is obsolete: 'startLifetime property is deprecated. Use main.startLifetime or main.startLifetimeMultiplier instead.'
    53. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(62,4,62,50): warning CS0618: 'ParticleSystem.startSpeed' is obsolete: 'startSpeed property is deprecated. Use main.startSpeed or main.startSpeedMultiplier instead.'
    54. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(62,73,62,119): warning CS0618: 'ParticleSystem.startSpeed' is obsolete: 'startSpeed property is deprecated. Use main.startSpeed or main.startSpeedMultiplier instead.'
    55. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(63,4,63,49): warning CS0618: 'ParticleSystem.startSize' is obsolete: 'startSize property is deprecated. Use main.startSize or main.startSizeMultiplier instead.'
    56. 2>F:\VerloreBackup\UWP\Mind\Assets\Real fire_unity5\Scripts\fire_wiggle.cs(63,65,63,110): warning CS0618: 'ParticleSystem.startSize' is obsolete: 'startSize property is deprecated. Use main.startSize or main.startSizeMultiplier instead.'
    57. 2>F:\VerloreBackup\UWP\Mind\Assets\SWP_TimeControl\Scripts\SWP_TimedGameObject.cs(96,39,96,54): warning CS0618: 'ParticleEmitter' is obsolete: 'This component is part of the legacy particle system, which is deprecated and will be removed in a future release. Use the ParticleSystem component instead.'
    58. 2>F:\VerloreBackup\UWP\Mind\Assets\SWP_TimeControl\Scripts\SWP_TimedGameObject.cs(145,62,145,77): warning CS0618: 'ParticleEmitter' is obsolete: 'This component is part of the legacy particle system, which is deprecated and will be removed in a future release. Use the ParticleSystem component instead.'
    59. 2>F:\VerloreBackup\UWP\Mind\Assets\SWP_TimeControl\Scripts\SWP_TimedGameObject.cs(146,17,146,32): warning CS0618: 'ParticleEmitter' is obsolete: 'This component is part of the legacy particle system, which is deprecated and will be removed in a future release. Use the ParticleSystem component instead.'
    60. 2>F:\VerloreBackup\UWP\Mind\Assets\SWP_TimeControl\Scripts\SWP_TimedGameObject.cs(196,5,196,13): warning CS0618: 'Particle' is obsolete: 'This is part of the legacy particle system, which is deprecated and will be removed in a future release. Use the ParticleSystem component instead.'
    61. 2>F:\VerloreBackup\UWP\Mind\Assets\UFPS\Base\Scripts\Core\EventSystem\vp_TargetEvent.cs(254,9,254,39): warning CS0252: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'Object'
    62. 2>F:\VerloreBackup\UWP\Mind\Assets\UFPS\Base\Scripts\Core\EventSystem\vp_TargetEvent.cs(468,12,468,13): warning CS0219: The variable 's' is assigned but its value is never used
    63. 2>F:\VerloreBackup\UWP\Mind\Assets\UFPS\Base\Scripts\Core\EventSystem\vp_TargetEvent.cs(472,34,472,43): warning CS0168: The variable 'delegates' is declared but never used
    64. 2>F:\VerloreBackup\UWP\Mind\Assets\UFPS\Base\Scripts\Core\Utility\vp_Utility.cs(140,10,140,23): warning CS0219: The variable 'declaringType' is assigned but its value is never used
    65. 2>F:\VerloreBackup\UWP\Mind\Assets\UFPS\Base\Scripts\Gameplay\Combat\vp_Shooter.cs(330,3,330,14): warning CS0618: 'Random.seed' is obsolete: 'Deprecated. Use InitState() function or Random.state property instead.'
    66. 2>F:\VerloreBackup\UWP\Mind\Assets\Ultimate Game Tools\Fracturing\Scripts\Split.cs(59,13,59,24): warning CS0618: 'Random.seed' is obsolete: 'Deprecated. Use InitState() function or Random.state property instead.'
    67. 2>F:\VerloreBackup\UWP\Mind\Assets\PlayMaker\Actions\Animator\GetAnimatorDelta.cs(24,21,24,31): warning CS0169: The field 'GetAnimatorDelta._transform' is never used
    68. 2>F:\VerloreBackup\UWP\Mind\Assets\Rewired\Examples\ControlRemapping1\Scripts\ControlRemappingDemo1.cs(54,22,54,33): warning CS0169: The field 'ControlRemappingDemo1.isCompiling' is never used
    69. 2>F:\VerloreBackup\UWP\Mind\Assets\SWP_TimeControl\SWP_TimeControl (Example)\Scripts (Example)\SWP_TimeControlGUIExample.cs(13,43,13,62): warning CS0649: Field 'SWP_TimeControlGUIExample.TimeGroupController' is never assigned to, and will always have its default value null
    70. 2>F:\VerloreBackup\UWP\Mind\Assets\iTween\iTween.cs(74,15,74,24): warning CS0169: The field 'iTween.kinematic' is never used
    71. 2>F:\VerloreBackup\UWP\Mind\Assets\SWP_TimeControl\SWP_TimeControl (Example)\Scripts (Example)\SWP_TimeControlEventsExample.cs(18,28,18,37): warning CS0649: Field 'SWP_TimeControlEventsExample.matPaused' is never assigned to, and will always have its default value null
    72. 2>F:\VerloreBackup\UWP\Mind\Assets\Rewired\Extras\ControlMapper\Scripts\ControlMapper.cs(253,22,253,44): warning CS0169: The field 'ControlMapper.inputEventsInitialized' is never used
    73. 2>F:\VerloreBackup\UWP\Mind\Assets\PlayMaker\Actions\SetFsmVariable.cs(31,32,31,46): warning CS0169: The field 'SetFsmVariable.sourceVariable' is never used
    74. 2>F:\VerloreBackup\UWP\Mind\Assets\Rewired\Extras\ControlMapper\Scripts\Window.cs(37,34,37,45): warning CS0169: The field 'Window.selectables' is never used
    75. 2>F:\VerloreBackup\UWP\Mind\Assets\TurnTheGameOn\Timer\Scripts\STK_Timer.cs(32,19,32,33): warning CS0169: The field 'STK_Timer.systemDateTime' is never used
    76. 2>F:\VerloreBackup\UWP\Mind\Assets\Rewired\Examples\CustomControllersTouch\Scripts\TouchJoystickExample.cs(43,23,43,37): warning CS0169: The field 'TouchJoystickExample.firstDeltaTime' is never used
    77. 2>F:\VerloreBackup\UWP\Mind\Assets\PlayMaker\Actions\SceneManager\UnloadScene.cs(56,8,56,19): warning CS0169: The field 'UnloadScene._sceneFound' is never used
    78. 2>F:\VerloreBackup\UWP\Mind\Assets\PlayMaker\Actions\SceneManager\LoadScene.cs(39,9,39,15): warning CS0169: The field 'LoadScene._scene' is never used
    79. 2>F:\VerloreBackup\UWP\Mind\Assets\SWP_TimeControl\SWP_TimeControl (Example)\Scripts (Example)\SWP_TimeControlEventsExample.cs(17,28,17,40): warning CS0649: Field 'SWP_TimeControlEventsExample.matFastSpeed' is never assigned to, and will always have its default value null
    80. 2>F:\VerloreBackup\UWP\Mind\Assets\SWP_TimeControl\SWP_TimeControl (Example)\Scripts (Example)\SWP_TimeControlAudioExample.cs(15,43,15,62): warning CS0169: The field 'SWP_TimeControlAudioExample.TimeGroupController' is never used
    81. 2>F:\VerloreBackup\UWP\Mind\Assets\SWP_TimeControl\SWP_TimeControl (Example)\Scripts (Example)\SWP_TimeControlAudioExample.cs(16,29,16,43): warning CS0649: Field 'SWP_TimeControlAudioExample.RepeatingSound' is never assigned to, and will always have its default value null
    82. 2>F:\VerloreBackup\UWP\Mind\Assets\Rewired\Examples\CustomControllersTouch\Scripts\TouchButtonExample.cs(25,23,25,37): warning CS0169: The field 'TouchButtonExample.firstDeltaTime' is never used
    83. 2>F:\VerloreBackup\UWP\Mind\Assets\Rewired\Examples\CustomControllersTouch\Scripts\TouchButtonExample.cs(56,49,56,56): warning CS0169: The field 'TouchButtonExample.buttons' is never used
    84. 2>F:\VerloreBackup\UWP\Mind\Assets\PlayMaker ArrayMaker\Addons\Custom\GameObject\ArrayListGetGameObjectMaxFsmFloatIndex.cs(54,15,54,26): warning CS0169: The field 'ArrayListGetGameobjectMaxFsmFloatIndex.goLastFrame' is never used
    85. 2>F:\VerloreBackup\UWP\Mind\Assets\SWP_TimeControl\SWP_TimeControl (Example)\Scripts (Example)\SWP_TimeControlGUIExample.cs(14,44,14,64): warning CS0649: Field 'SWP_TimeControlGUIExample.TimeGlobalController' is never assigned to, and will always have its default value null
    86. 2>F:\VerloreBackup\UWP\Mind\Assets\Explosion_V2\Plugins\HTSpriteSheet.cs(168,16,168,28): warning CS0169: The field 'HTSpriteSheet.randomZAngle' is never used
    87. 2>F:\VerloreBackup\UWP\Mind\Assets\PlayMaker\Actions\SceneManager\UnloadScene.cs(55,9,55,15): warning CS0169: The field 'UnloadScene._scene' is never used
    88. 2>F:\VerloreBackup\UWP\Mind\Assets\SWP_TimeControl\SWP_TimeControl (Example)\Scripts (Example)\SWP_TimeControlTrailRendererExample.cs(15,43,15,62): warning CS0649: Field 'SWP_TimeControlTrailRendererExample.TimeGroupController' is never assigned to, and will always have its default value null
    89. 2>F:\VerloreBackup\UWP\Mind\Assets\SWP_TimeControl\SWP_TimeControl (Example)\Scripts (Example)\SWP_TimeControlEventsExample.cs(15,28,15,40): warning CS0649: Field 'SWP_TimeControlEventsExample.matFullSpeed' is never assigned to, and will always have its default value null
    90. 2>F:\VerloreBackup\UWP\Mind\Assets\PlayMaker\Actions\Animator\AnimatorCrossFade.cs(31,15,31,23): warning CS0169: The field 'AnimatorCrossFade._paramID' is never used
    91. 2>F:\VerloreBackup\UWP\Mind\Assets\SWP_TimeControl\SWP_TimeControl (Example)\Scripts (Example)\SWP_TimeControlEventsExample.cs(20,32,20,43): warning CS0649: Field 'SWP_TimeControlEventsExample.BannerPlane' is never assigned to, and will always have its default value null
    92. 2>F:\VerloreBackup\UWP\Mind\Assets\SWP_TimeControl\SWP_TimeControl (Example)\Scripts (Example)\SWP_TimeControlEventsExample.cs(14,43,14,62): warning CS0649: Field 'SWP_TimeControlEventsExample.TimeGroupController' is never assigned to, and will always have its default value null
    93. 2>F:\VerloreBackup\UWP\Mind\Assets\Rewired\Extras\ControlMapper\Scripts\CanvasScalerFitter.cs(25,31,25,48): warning CS0169: The field 'CanvasScalerFitter.ScreenSizeChanged' is never used
    94. 2>F:\VerloreBackup\UWP\Mind\Assets\PlayMaker\Actions\SceneManager\LoadScene.cs(40,8,40,19): warning CS0169: The field 'LoadScene._sceneFound' is never used
    95. 2>F:\VerloreBackup\UWP\Mind\Assets\SWP_TimeControl\SWP_TimeControl (Example)\Scripts (Example)\SWP_TimeControlEventsExample.cs(16,28,16,40): warning CS0649: Field 'SWP_TimeControlEventsExample.matSlowSpeed' is never assigned to, and will always have its default value null
    96. 2>F:\VerloreBackup\UWP\Mind\Assets\Scripts\TransparencyFlash.cs(8,21,8,39): warning CS0414: The field 'TransparencyFlash.increaseOpacityKey' is assigned but its value is never used
    97. 2>F:\VerloreBackup\UWP\Mind\Assets\Storage\XboxOneHelper.cs(291,10,291,29): warning CS0414: The field 'XboxOneHelper.haveRequestedSignIn' is assigned but its value is never used
    98. 2>F:\VerloreBackup\UWP\Mind\Assets\Storage\XboxOneHelper.cs(326,18,326,40): warning CS0414: The field 'XboxOneHelper.s_pendingDeviceRefresh' is assigned but its value is never used
    99. 2>F:\VerloreBackup\UWP\Mind\Assets\Scripts\TransparencyFlash.cs(10,21,10,41): warning CS0414: The field 'TransparencyFlash.increaseFrequencyKey' is assigned but its value is never used
    100. 2>F:\VerloreBackup\UWP\Mind\Assets\Scripts\TransparencyFlash.cs(21,19,21,39): warning CS0414: The field 'TransparencyFlash.frequencyUpdateDelay' is assigned but its value is never used
    101. 2>F:\VerloreBackup\UWP\Mind\Assets\UFPS\Base\Scripts\Core\ComponentSystem\vp_ComponentPreset.cs(30,22,30,28): warning CS0414: The field 'vp_ComponentPreset.m_Type' is assigned but its value is never used
    102. 2>F:\VerloreBackup\UWP\Mind\Assets\Scripts\TransparencyFlash.cs(9,21,9,39): warning CS0414: The field 'TransparencyFlash.decreaseOpacityKey' is assigned but its value is never used
    103. 2>F:\VerloreBackup\UWP\Mind\Assets\Scripts\TransparencyFlash.cs(11,21,11,41): warning CS0414: The field 'TransparencyFlash.decreaseFrequencyKey' is assigned but its value is never used
    104. 2>F:\VerloreBackup\UWP\Mind\Assets\Scripts\ExampleVideoPlaybackPInvoke.cs(21,15,21,25): warning CS0414: The field 'ExampleVideoPlaybackPInvoke.m_isPaused''System.Reflection.TypeExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    105. 2>     at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
    106. 2>     at Mono.Cecil.DefaultAssemblyResolver.Resolve(AssemblyNameReference name)
    107. 2>     at Mono.Cecil.MetadataResolver.Resolve(TypeReference type)
    108. 2>     at Mono.Cecil.TypeReference.Resolve()
    109. 2>     at Mono.Cecil.Mixin.CheckedResolve(TypeReference self)
    110. 2>     at Mono.Cecil.MetadataBuilder.GetConstantType(TypeReference constant_type, Object constant)
    111. 2>     at Mono.Cecil.MetadataBuilder.AddConstant(IConstantProvider owner, TypeReference type)
    112. 2>     at Mono.Cecil.MetadataBuilder.AddParameter(UInt16 sequence, ParameterDefinition parameter, ParamTable table)
    113. 2>     at Mono.Cecil.MetadataBuilder.AddParameters(MethodDefinition method)
    114. 2>     at Mono.Cecil.MetadataBuilder.AddMethod(MethodDefinition method)
    115. 2>     at Mono.Cecil.MetadataBuilder.AddMethods(TypeDefinition type)
    116. 2>     at Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type)
    117. 2>     at Mono.Cecil.MetadataBuilder.AddTypeDefs()
    118. 2>     at Mono.Cecil.MetadataBuilder.BuildTypes()
    119. 2>     at Mono.Cecil.MetadataBuilder.BuildModule()
    120. 2>     at Mono.Cecil.ModuleWriter.<BuildMetadata>b__0(MetadataBuilder builder, MetadataReader _)
    121. 2>     at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func`3 read)
    122. 2>     at Mono.Cecil.ModuleWriter.WriteModuleTo(ModuleDefinition module, Stream stream, WriterParameters parameters)
    123. 2>     at Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters)
    124. 2>     at usw.Weaver.WeaveAssembly(String assemblyPath, AssemblyDefinition unityEngineAssemblyDefinition, ReaderParameters readerParameters)
    125. 2>     at usw.Weaver.Weave()
    126. 2>     at usw.Program.RunProgram(ConversionOptions options)
    127. 2>     at usw.Program.Main(String[] args)
    128. 2>F:\VerloreBackup\UWP\Mind\Build_Store\GeneratedProjects\UWP\Assembly-CSharp\Assembly-CSharp.csproj(251,5): error MSB3073: The command ""F:\VerloreBackup\UWP\Mind\Build_Store\Unity\Tools\SerializationWeaver\SerializationWeaver.exe" "F:\VerloreBackup\UWP\Mind\Build_Store\GeneratedProjects\UWP\Assembly-CSharp\bin\x64\Master\Unprocessed\Assembly-CSharp.dll" -pdb -verbose -unity-engine="F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\Unprocessed\UnityEngine.dll" -unity-networking="F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\Unprocessed\UnityEngine.Networking.dll" -additionalAssemblyPath="F:\VerloreBackup\UWP\Mind\Build_Store\GeneratedProjects\UWP\Assembly-CSharp-firstpass\bin\x64\Master" "F:\VerloreBackup\UWP\Mind\Build_Store\GeneratedProjects\UWP\Assembly-CSharp\obj\x64\Master\x64\Master"" exited with code 1.
    129. 3>------ Build started: Project: nVerloreVerstand, Configuration: Master x64 ------
    130. 3>CSC : error CS0006: Metadata file 'F:\VerloreBackup\UWP\Mind\Build_Store\GeneratedProjects\UWP\Assembly-CSharp\bin\x64\Master\Assembly-CSharp.dll' could not be found
    131. ========== Build: 1 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
    132.  
    The project was built on .NET but I heard that IL2CPP is apparently a better choice for Windows Store, so I just did a test to see what happens with IL2CPP, but I think .NET might be a bit easier, Ive never done an IL2CPP project before.
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,675
    SkobbejakGames likes this.
  7. SkobbejakGames

    SkobbejakGames

    Joined:
    Jun 3, 2016
    Posts:
    396
    Aah, that explains it then. Im still on Unity 5.5.2f1. I will upgrade to a newer version and see if the problem still persists. Thanks so much for the advice.
     
  8. SkobbejakGames

    SkobbejakGames

    Joined:
    Jun 3, 2016
    Posts:
    396
    Ok, I upgraded to the latest build of Unity (5.6.1p1) and it seems to go a bit further into the Build Solution process but now it fails with the following error in Output:

    Restoring NuGet packages...
    To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
    1>------ Build started: Project: nVerloreVerstand, Configuration: Master x64 ------
    1> nVerloreVerstand -> F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\bin\x64\Master\nVerloreVerstand.exe
    1> UnityWSAPlayerDir "C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport\".
    1> UnityProjectDir "F:\VerloreBackup\UWP\Mind\".
    1> Copying unprocessed assemblies...
    1> Running AssemblyConverter...
    1> Failed to fix references for attribute System.Runtime.CompilerServices.SuppressIldasmAttribute
    1> System.NullReferenceException: Object reference not set to an instance of an object.
    1> at Unity.FixReferencesStep.Visit(ICustomAttributeProvider provider, GenericContext context)
    1> at Unity.FixReferencesStep.ProcessModule()
    1> at Unity.ModuleStep.Execute()
    1> at Unity.FixReferencesStep.Execute()
    1> at Unity.Step.Execute(OperationContext operationContext, IStepContext previousStepContext)
    1> at Unity.Operation.Execute()
    1> at Unity.Program.Main(String[] args)
    1>F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\nVerloreVerstand.csproj(298,9): error MSB3073: The command ""F:\VerloreBackup\UWP\Mind\Build_Store\Unity\Tools\AssemblyConverter.exe" -platform=uap -lock="F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\project.lock.json" -bits=64 -configuration=Master -removeDebuggableAttribute=True -uwpsdk=10.0.14393.0 -path="." -path="C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\dotnet\x64\Master" "F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\Assembly-CSharp.dll" "F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\Assembly-CSharp-firstpass.dll" "F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\Assembly-UnityScript.dll" "F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\UnityEngine.dll" "F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\nunit.framework.dll" "F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\UnityEngine.UI.dll" "F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\DecalSystem.Runtime.dll" "F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\UnityEngine.Networking.dll" "F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\Rewired_Core.dll" "F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\PlayMaker.dll" "F:\VerloreBackup\UWP\Mind\Build_Store\nVerloreVerstand\ConditionalExpression.dll"" exited with code 1.
    ========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
     
  9. SkobbejakGames

    SkobbejakGames

    Joined:
    Jun 3, 2016
    Posts:
    396
    When switching to .NET 4.6 I get the same Output and error except for the very end:

    ========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
     
  10. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,675
    Do you get any errors in the console when building from Unity? Can you show your editor log?
     
  11. SkobbejakGames

    SkobbejakGames

    Joined:
    Jun 3, 2016
    Posts:
    396
    All of the errors seem to be related to Rewired a Third Party input plugin available on the Unity Asset Store, I will try to contact the author and see if I can get some advice.
     
  12. SkobbejakGames

    SkobbejakGames

    Joined:
    Jun 3, 2016
    Posts:
    396
    It seems like I am missing a Windows 10 SDK related package something in line of .nuget as I am getting the following error when trying to build from Unity:

    System.Exception: Package directory not found: "C:\Users\Tiaan Gerber\.nuget\packages\Microsoft.CSharp\4.0.1".
    at UnityEditor.Scripting.Compilers.NuGetPackageResolver.Resolve () [0x000e7] in <1df528c4ff9a4140955a16cd6dc04d46>:0
    at AssemblyUpdater.Core.AssemblyUpdaterContext.AddFrameworkFolderToSearchPath (Mono.Cecil.AssemblyDefinition assemblyDefinition, Mono.Cecil.DefaultAssemblyResolver resolver, APIUpdater.Framework.Log.IAPIUpdaterListener listener) [0x000eb] in <1df528c4ff9a4140955a16cd6dc04d46>:0
    at AssemblyUpdater.Core.AssemblyUpdaterContext.ReadAssembly (System.String assemblyPath, APIUpdater.Framework.Log.IAPIUpdaterListener listener, System.IO.FileAccess mode, System.String[] searchPaths) [0x00086] in <1df528c4ff9a4140955a16cd6dc04d46>:0
    at AssemblyUpdater.Core.AssemblyUpdaterContext.From (System.String assemblyPath, APIUpdater.Framework.Configuration.IConfigurationProvider configuration, System.String[] assemblySearchPaths, AssemblyUpdater.Core.UpdaterMode mode, APIUpdater.Framework.Log.IAPIUpdaterListener listener) [0x0002b] in <1df528c4ff9a4140955a16cd6dc04d46>:0
    at AssemblyUpdater.Core.AssemblyUpdaterContext.From (System.String assemblyPath, System.String[] assemblySearchPaths, AssemblyUpdater.Core.UpdaterMode mode, APIUpdater.Framework.Log.IAPIUpdaterListener listener) [0x00001] in <1df528c4ff9a4140955a16cd6dc04d46>:0
    at AssemblyUpdater.Application.Program.CheckForObsoleteAPIUsage (AssemblyUpdater.Application.CommandLineSpec config) [0x00013] in <1df528c4ff9a4140955a16cd6dc04d46>:0
    at AssemblyUpdater.Application.Program.Main (System.String[] args) [0x00057] in <1df528c4ff9a4140955a16cd6dc04d46>:0

    I just dont know where to obtain this package and how to set it up.
     
  13. SkobbejakGames

    SkobbejakGames

    Joined:
    Jun 3, 2016
    Posts:
    396
    Ok, I managed to solve it now by reimporting the plugin completely.