Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSBuild: Building asp.net 4.0 web sites: .metaproj -files

I have a solution-file with ASP.NET Web Sites.

When I build the solution with .NET 4.0 Beta 2 using

"c:\WINDOWS\Microsoft.NET\Framework\v4.0.21006\MSBuild.exe" d:\MyPath\MySolution.sln

Everything works fine, no errors. Then I try to build the same solution with CruiseControl .NET task (msbuild-script ran by a service), the same solution fails with:

D:\MyPath\MyWebSite.metaproj (,): errorMSB4025: The project file could not be loaded. Could not find file 'D:\MyPath\MyWebSite.metaproj'.

Of course, there is no file like that. I guess *.metaproj is a .csproj-like msbuild-file generated dynamically for web sites...

But I don't know how to fix the error... I tried to google metaproj-files with no luck. I did try to make the file manually, I inserted a <Project> with <Task Name="Rebuild"> and the compilation didn't raise any errors, but I guess the site didn't compile.

The same machine has .NET 3.5 and .NET 4.0 projects and environment variables for both frameworks.

like image 887
Tuomas Hietanen Avatar asked Oct 26 '09 13:10

Tuomas Hietanen


1 Answers

There is a way around this if you can get rid of project dependencies in the solution file. You can keep project dependencies in the project file but remove them from the solution file. See this link for the this
Answer.

like image 126
Russ Kahler Avatar answered Sep 23 '22 02:09

Russ Kahler