Browse Source

Fix null reference exception when creating new WiX project.

pull/61/merge
Matt Ward 12 years ago
parent
commit
dc1d4f2765
  1. 2
      src/Main/Base/Project/Src/Project/Behaviors/DotNetStartBehavior.cs

2
src/Main/Base/Project/Src/Project/Behaviors/DotNetStartBehavior.cs

@ -114,7 +114,7 @@ namespace ICSharpCode.SharpDevelop.Project @@ -114,7 +114,7 @@ namespace ICSharpCode.SharpDevelop.Project
if (fx != null)
UpdateAppConfig(fx);
if (Project.OutputType != OutputType.Library) {
if (DotnetDetection.IsDotnet45Installed() && fx.IsBasedOn(TargetFramework.Net45)) {
if (fx != null && DotnetDetection.IsDotnet45Installed() && fx.IsBasedOn(TargetFramework.Net45)) {
Project.SetProperty(null, Project.ActivePlatform, "Prefer32Bit", "True", PropertyStorageLocations.PlatformSpecific, true);
} else {
Project.SetProperty(null, Project.ActivePlatform, "PlatformTarget", "x86", PropertyStorageLocations.PlatformSpecific, true);

Loading…
Cancel
Save