Skip to content

Commit a87b529

Browse files
committed
Current installation can be null for specific tests
1 parent 94e036f commit a87b529

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Packages/com.unity.ide.visualstudio/Editor/ProjectGeneration/ProjectGeneration.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public interface IGenerator
3939

4040
public abstract class ProjectGeneration : IGenerator
4141
{
42-
public static readonly string MSBuildNamespaceUri = "http://schemas.microsoft.com/developer/msbuild/2003";
4342
public IAssemblyNameProvider AssemblyNameProvider => m_AssemblyNameProvider;
4443
public string ProjectDirectory { get; }
4544

@@ -150,7 +149,7 @@ public bool SyncIfNeeded(IEnumerable<string> affectedFiles, IEnumerable<string>
150149

151150
private void CreateExtraFiles(IVisualStudioInstallation installation)
152151
{
153-
installation.CreateExtraFiles(ProjectDirectory);
152+
installation?.CreateExtraFiles(ProjectDirectory);
154153
}
155154

156155
private bool HasFilesBeenModified(IEnumerable<string> affectedFiles, IEnumerable<string> reimportedFiles)

0 commit comments

Comments
 (0)