I have been stumped for about 3 days now trying to solve a MSBuild problem I have been having. In my solution I have 10 projects. 9 Projects are C# Class projects and 1 project which is the main EXE is a C# WPF Application project.
I created a gated MSBuild that gets triggered on a check in into the TFS server. Up to now only the 9 C# Class Projects have been included in the MSBuild because the C# WPF Application project was still being built. The C# WPF Application project is now done and fully working (run time and compile time) on multiple computers without issue.
I changed the build to include the new C# WPF Application project so that it could be checked in. The problem is with this C# WPF Application project now included, MSBuild fails with the following two errors:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.WinFX.targets (269): File 'Properties\DesignTimeResources.xaml' cannot be found.
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.WinFX.targets (269): The project file contains a property value that is not valid.
Considering the entire solution builds and works on multiple computers it seems strange that the MSBuild is failing because of that. If I remove the C# WPF Application project from the MSBuild, everything is fine again so there is something weird with the C# WPF Application project that causes the MSBuild to fail.
I am getting desperate here, so any help is greatly appreciated. Thank you in advance for any help or insight you can give!