I am trying to build our UWP game in Visual Studio but I get the following errors:
1>------ Build started: Project: Il2CppOutputProject, Configuration: Master x64 ------
1>Object reference not set to an instance of an object.
2>------ Build started: Project: Tyd wag vir Niemand, Configuration: Master x64 ------
2>Object reference not set to an instance of an object.
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
I never used to have this problem, but a Windows Update bug caused Developer Mode and Developer Tools to get messed up and I needed to format and do a clean Windows installation. I’ve gotten everything installed and set up how I had it but for some reason when I try to build my project I get the error above now and I cant seem to figure out how to get more info on the matter.
I’m using Unity 2017.4.11 and Visual Studio 2017 Pro on Windows 10 Pro 64bit
Where do I access the whole log as this is the only info that the Output in VS2017 gives me?
I did try a new clean UWP project and I still get the same results, I also tried to delete the IL2CPP project and then rebuild from Unity, but I still got the same results.
One thing that I noticed ever since I formatted, did a clean windows install and installed visual studio and all necessary software, when I build out a UWP build the UnityCommon.props doesnt get placed in the right directory as when I open the solution the main game’s solution wont load (with a load failed or unavailable message) while the IL2CPP and UnityData projects load just fine in the solution.
Its only when I copy the UnityCommon.props file into the build sub folder for the game’s project that the project loads successfully in the solution. I am attaching a pic to help illustrate. Im not sure if this might give a clue or might be related.
I appear to be having the exact same problem, my project was building fine, and then suddenly not. I even get the issue with UnityCommon.props too…
Visual Studio did prompt to install some updates (I wish I can remember what - I think some C++ related things) and then the next time I went to build I was getting the same error as the OP.
Unity 2018.2.11f1
Visual Studio info from the Help → About dialog:
Microsoft Visual Studio Community 2017
Version 15.8.7
VisualStudio.15.Release/15.8.7+28010.2046
Microsoft .NET Framework
Version 4.7.03056
Installed Version: Community
Visual C++ 2017 00369-60000-00001-AA707
Microsoft Visual C++ 2017
Application Insights Tools for Visual Studio Package 8.13.10627.1
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2017 15.8.05085.0
ASP.NET and Web Tools 2017
C# Tools 2.9.0-beta8-63208-01
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
JavaScript Language Service 2.0
JavaScript Language Service
JavaScript Project System 2.0
JavaScript Project System
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
MLGen Package Extension 1.0
MLGen Package Visual Studio Extension Detailed Info
NuGet Package Manager 4.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
ResourcePackage Extension 1.0
ResourcePackage Visual Studio Extension Detailed Info
Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.
Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.
TypeScript Tools 15.8.20822.2001
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 2.9.0-beta8-63208-01
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for CMake 1.0
Visual Studio Tools for CMake
Visual Studio Tools for Unity 3.8.0.7
Visual Studio Tools for Unity
Visual Studio Tools for Universal Windows Apps 15.0.28010.2046
This looks like a crash inside MSBuild when building the project. Unfortunately I have no idea what could cause that. Is there any chance you could try reinstalling VS2017?
I checked all those packages listed above, and confirmed that the issue wasn’t there. So I did a full uninstall of VS2017, and then reinstalled it and all the relevant packages. THAT seemed to work.
However, sometimes VS will prompt you to install packages when you’ve done a new build from within Unity - packages that I’m pretty sure are already there… you can skip this prompt, and if you do it seems everything work ok. If you choose to install them, then it looks like it’s screwing something up during the configuring of them.
I managed to solve the issue by completely re-installing Visual Studio 2017 and all the necessary components needed for UWP game development and Im able to build out and deploy a package.
However, I cant seem to sync any of my developer accounts with the cloud and the game doesnt seem to want to save or load any Connected Storage data to the cloud.
I noticed that when the game starts up the TitleID and the SCID both gets read as 0.
However, I do have my xboxservices.config set up with my TitleId and PrimaryServiceConfigId and I have it imported into my UWP solution as well as the Content set to True. I have also Associated the App with the Store and packaged it under the title and publisher’s identity.
One thing that I do notice is that I cant seem to find the TitleId or the PrimaryServiceConfigId in the new Partner Center in either the App Identity section or the Xbox Live Config section.
Are the TitleId and the PrimaryServiceConfigId set up differently under the new system, would it have changed the set up process in any sense?
Please any help on the matter would be greatly appreciated.
Do you have access to id@Xbox forums? I’m afraid I lack the expertise to answer this question, and that would be a better place to ask it as it’s directly related to their systems rather than IL2CPP.
Ok, I managed to fix the issue as it seems that the setup for Windows Store games has changed again and you now need to use the decimal version of the TitleID in the xboxservices.config, not the Hexadecimal version, and there are also 2 new parameters that need to be included in the xboxservices.config
However, it seems that the Stats implementation has also changed as my Stats were working fine previously but now Stats wont update anymore.
@SkobbejakGames Could you let me know what these additional parameters are? I’ve been having an email exchange with ID@Xbox and the rep and I are running low on fresh ideas for my sign in issues.
Also, nothing was wrong with our Stats setup I forgot that in order to test Stats updating in a pre-release debugging environment you have to request a flush in order to confirm if your setup is correct and then remove the request flushes from your code when your ready to build and submit you final release.
However, I have a new problem, when I try to run the Windows App Cert Kit (WACK) the test doesnt run completely and closes halfway without any report or indication what is preventing it from running completely.
I am running Windows 10 Pro 64bit 10.0.17134.0 with Windows SDK 10.0.17134.12 and Im running Unity 2017.4.11 as well as the latest UWP XboxLive Unity plugin.
Ive noticed that there is a new Windows SDK available 10.0.17763.1 however this seems to correspond
with a newer Windows Insider Program beta release and Im not sure if I need to update to the latest version
of the Windows SDK as when I installed the latest SDK I got the WACK to run completely but it gave me a FAILED report with a bunch of test fails that I never previously had with the previous versions of the SDK and WACK, Im not sure if these errors have anything to do with not having the latest beta Windows 10 version (that seems to correspond with the latest SDK) installed?
Please, any help on the matter would be greatly appreciated as we are trying to get our submission in asap in order to get the game finalized and approved in time for a 21/12 Release and Pre-Orders starting on 7/12.
Here is the WACK report that I manage to get from SDK 10.0.17763.1 but Im not sure if I should be following this particular SDK version on my version of Windows 10.
There are 2 or 3 errors that I can figure out and should be able to solve reasonably easily, such as finding out what the new Minimum Supported OS Version should be (is there some kind of documentation that gets updated with this info?) however most of them I cant seem to find a cause or a reason for and I never used to receive them with our previous release our when I was developing the new game on the previous versions of Unity and UWP sdk.
I just wanted to check if I need all the previous versions of the Windows SDK installed along with ver. 10.0.17134.12?
Also Im sitting with a bit of an issue, once I installed the SDK associated with beta Insider Program release (10.0.17763.1) the WACK seems to be stuck on that version even after I uninstalled the SDK. I then deleted the Windows App Cert Kit folder but when I install the SDK that Im supposed to be on it doesnt want to install the WACK even if I install directly from their own Installers.
What would be the best way to solve the issue, can I uninstall all of the SDK versions and only install the latest stable version or should I install all of the older SDK versions before I install the SDK version I should be on? Can I delete th Windows Kits folder if need be?
Please any help on the matter would be greatly appreciated.