error MSB4025: .metaproj file not found if .sln contains project dependencies
- Dominant language
- C#
- Stars
- 4.2k
- Forks
- 778
- Avg merge
- 3h 37m
- Merged PRs (30d)
- 21
Description
### What You Are Seeing?
Building a .net C# Solution with .net 4.5.2
Error MSB4025 when building a solution if .sln file contains project dependencies.
Error message:
Building with tools version "15.0".
C:\abc\Test.wixproj.metaproj : error MSB4025: The project file could not be loaded. Could not find file 'C:\abc\test.wixproj.metaproj'.
Done Building Project "C:\abc\test.wixproj.metaproj" (default targets) -- FAILED.
It happens with a WiX Installer project, not sure if it happens also with .net library projects.
### What is Expected?
Build should be successful like it was with version 0.22.2
### What version of Cake are you using?
0.23.0
### Are you running on a 32 or 64 bit system?
64bit
### What environment are you running on? Windows? Linux? Mac?
Windows
### Are you running on a CI Server? If so, which one?
Local and TFS build agent same behavior
### How Did You Get This To Happen? (Steps to Reproduce)
Building a solution with Project dependencies in it like:
.sln content:
...
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "Test", "Test.wixproj", "{9E566332-56DA-4429-BAC3-82F2E974CBF6}"
ProjectSection(**ProjectDependencies**) = postProject
{2F835003-583A-44E6-9CBE-5BD44B250EFB} = {2F835003-583A-44E6-9CBE-5BD44B250EFB}
{80E6A906-B522-49EB-B088-555EB32D8010} = {80E6A906-B522-49EB-B088-555EB32D8010}
{1A3B250B-DF77-4792-A29B-7688110E9F81} = {1A3B250B-DF77-4792-A29B-7688110E9F81}
{32394818-FA81-4F1F-A75F-A97AB85AAA54} = {32394818-FA81-4F1F-A75F-A97AB85AAA54}
{7351B41E-83B1-42BA-975F-23558D36A47D} = {7351B41E-83B1-42BA-975F-23558D36A47D}
{B5E0C226-0BA4-4597-8E5C-AE7BDAACABA0} = {B5E0C226-0BA4-4597-8E5C-AE7BDAACABA0}
{4FF5E12E-B47E-4F45-B5DB-33CA095BC5BE} = {4FF5E12E-B47E-4F45-B5DB-33CA095BC5BE}
{EABFC232-D57E-4A79-9CA7-86B1DBB42E65} = {EABFC232-D57E-4A79-9CA7-86B1DBB42E65}
{76EACB53-51AB-42E1-A472-58CA67475345} = {76EACB53-51AB-42E1-A472-58CA67475345}
{2CA6005C-9C39-470F-9299-187B4FC949E5} = {2CA6005C-9C39-470F-9299-187B4FC949E5}
{3F242E65-9E82-4D6D-B179-DDC49E30E727} = {3F242E65-9E82-4D6D-B179-DDC49E30E727}
{6DC78577-883D-44D5-BD5F-AC0E877AD552} = {6DC78577-883D-44D5-BD5F-AC0E877AD552}
{AA61F382-0E70-4507-873F-AE02687AE608} = {AA61F382-0E70-4507-873F-AE02687AE608}
{4CD72B83-4BB7-4DC3-9E9F-2294BC029BE2} = {4CD72B83-4BB7-4DC3-9E9F-2294BC029BE2}
{199FAD85-41F2-403A-B1AF-7E1A83B0D8AA} = {199FAD85-41F2-403A-B1AF-7E1A83B0D8AA}
{5D5C528A-54E0-4A58-9564-6032AA4BC432} = {5D5C528A-54E0-4A58-9564-6032AA4BC432}
{DC215CA0-2FDC-4BBB-807C-EADE1F42E999} = {DC215CA0-2FDC-4BBB-807C-EADE1F42E999}
{89F8DBA3-6460-4D23-8CB3-7A60FF145E48} = {89F8DBA3-6460-4D23-8CB3-7A60FF145E48}
{2830F3A9-80D0-44D8-9329-DF3AD1913948} = {2830F3A9-80D0-44D8-9329-DF3AD1913948}
{44C1BBD0-5731-4958-9BEB-29DA610778E6} = {44C1BBD0-5731-4958-9BEB-29DA610778E6}
{067073DA-A7B6-4EF1-9AB9-68626F8EEC38} = {067073DA-A7B6-4EF1-9AB9-68626F8EEC38}
{DED29DE8-386F-47D4-BF89-49062FF9C232} = {DED29DE8-386F-47D4-BF89-49062FF9C232}
{97C61FF9-4073-4555-B5A7-ECEF154974AD} = {97C61FF9-4073-4555-B5A7-ECEF154974AD}
EndProjectSection
EndProject
...
### Output Log
Contributor guide
Research direction
Start by reproducing the failure on Windows with Cake 0.23.0 using the reported .sln containing ProjectDependencies and the Test.wixproj project, then compare it with Cake 0.22.2. Trace the solution-building entry point that creates or loads the .metaproj file; done means the dependency-containing solution builds successfully without MSB4025.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100