-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed handling of TargetFramework property if it is blank. Fixes #923.
- Loading branch information
1 parent
d65b4f9
commit 2b55945
Showing
2 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
// System : Sandcastle Help File Builder | ||
// File : MainForm.cs | ||
// Author : Eric Woodruff ([email protected]) | ||
// Updated : 04/25/2021 | ||
// Note : Copyright 2006-2021, Eric Woodruff, All rights reserved | ||
// Updated : 11/04/2022 | ||
// Note : Copyright 2006-2022, Eric Woodruff, All rights reserved | ||
// | ||
// This file contains the main form for the application. | ||
// | ||
|
@@ -252,8 +252,6 @@ private IDockContent DeserializeState(string persistString) | |
/// <param name="mustExist">True if it must exist or false if it is a new, unnamed project</param> | ||
private void CreateProject(string projectName, bool mustExist) | ||
{ | ||
List<string> values; | ||
|
||
project = new SandcastleProject(projectName, mustExist, false); | ||
|
||
projectExplorer.CurrentProject = projectProperties.CurrentProject = project; | ||
|
@@ -264,25 +262,26 @@ private void CreateProject(string projectName, bool mustExist) | |
this.UpdateFilenameInfo(); | ||
|
||
// Get the configuration and platform values | ||
values = project.MSBuildProject.ConditionedProperties["Configuration"]; | ||
|
||
tcbConfig.Items.Clear(); | ||
tcbPlatform.Items.Clear(); | ||
|
||
foreach(string value in values) | ||
tcbConfig.Items.Add(value); | ||
if(project.MSBuildProject.ConditionedProperties.TryGetValue("Configuration", out var values)) | ||
{ | ||
foreach(string value in values) | ||
tcbConfig.Items.Add(value); | ||
} | ||
|
||
if(tcbConfig.Items.Count == 0) | ||
{ | ||
tcbConfig.Items.Add("Debug"); | ||
tcbConfig.Items.Add("Release"); | ||
} | ||
|
||
values = project.MSBuildProject.ConditionedProperties["Platform"]; | ||
|
||
tcbPlatform.Items.Clear(); | ||
|
||
foreach(string value in values) | ||
tcbPlatform.Items.Add(value); | ||
if(project.MSBuildProject.ConditionedProperties.TryGetValue("Platform", out values)) | ||
{ | ||
foreach(string value in values) | ||
tcbPlatform.Items.Add(value); | ||
} | ||
|
||
if(tcbPlatform.Items.Count == 0) | ||
tcbPlatform.Items.Add("AnyCPU"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters