diff --git a/vsSolutionBuildEvent/EnvAbstract.cs b/vsSolutionBuildEvent/EnvAbstract.cs index b2923a4..a978c89 100644 --- a/vsSolutionBuildEvent/EnvAbstract.cs +++ b/vsSolutionBuildEvent/EnvAbstract.cs @@ -107,8 +107,8 @@ public virtual EProject getProject(string name = null) } IConfPlatformPrj cfg = Sln.ProjectItemsConfigs - .FirstOrDefault(p => ActiveSlnConf?.Equals(p.solutionConfig) == true) - .projectConfig; + .FirstOrDefault(p => p.project.name == name && ActiveSlnConf?.Equals(p.solutionConfig) == true) + .projectConfig; return (cfg == null) ? SlnEnv?.GetOrLoadProject(project) : SlnEnv?.GetOrLoadProject(project, cfg);