Description

The UnrealVS add-on appears to install correctly in Visual Studio 2017 (resolved in [Link Removed]), but it does not appear to be working correctly in that version of Visual Studio once it is installed. Clicking on one of the toolbar buttons results in a popup message that states that the add-on may not have loaded correctly. Removing/re-adding buttons to the toolbar appears to make the popup message stop appearing, but the buttons still do not function correctly.

Opening a non-UE solution and then clicking the Batch Builder button does open the Batch Builder window.

Steps to Reproduce

SETUP:
Ensure that a release version of Visual Studio 2017 is installed (Community or Professional should both work).

  1. Navigate to `Engine/Extras/UnrealVS/VS2017` and run UnrealVS.vsix to install UnrealVS in Visual Studio 2017.
  2. Open a command prompt in in the root engine folder and run GenerateProjectFiles.bat -2017.
  3. Open the resulting UE4.sln solution in Visual Studio 2017.
  4. Click the Batch Builder button in the UnrealVS toolbar.

RESULT:
A message appears stating that UnrealVS did not load correctly, and restarting Visual Studio may help. A path to the Visual Studio Activity Monitor log is also provided, and this shows the following error: LegacySitePackage failed for package [UnrealVSPackage]Source: 'UnrealVS' Description: Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at UnrealVS.Utils.GetProjectConfigProperty(Project Project, Configuration Configuration, String PropertyName) at UnrealVS.CommandLineEditor.GetProjectCommandLineProperty(Project InProject) at UnrealVS.CommandLineEditor.MakeCommandLineComboText() at UnrealVS.CommandLineEditor.UpdateCommandLineCombo() at UnrealVS.CommandLineEditor..ctor() at UnrealVS.UnrealVSPackage.Initialize() at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)

EXPECTED:
The batch builder opens.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-43028 in the post.

3
Login to Vote

Fixed
ComponentUE - Foundation - Core
Affects Versions4.15.1
Target Fix4.15.2
Fix Commit3389590
CreatedMar 17, 2017
ResolvedApr 12, 2017
UpdatedSep 23, 2019