Hi all,
My development group is porting a bunch of .NET v1.1 solutions over to .NET v2.0. We’ve been using FinalBuilder 4 to compile our code on a Windows 2003 server, and we don’t want to install Visual Studio 2005 on the server. I understand that you change the “VS.NET Version” setting to VS.NET 2005 and check the “use MSBuild” checkbox in the “Build VS.Net Solution” - “Solution” tab for each solution in your FinalBuilder script, but once I do this and run finalbuilder on the new .NET 2.0 projects I’m getting the following error: "C:[directory][testproject].csproj(7599,11):
error MSB4019: The imported project “C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets”
was not found. Confirm that the path in the declaration is correct, and that the file exists on disk."
I’ve found that when I installed the .NET 2.0 framework on the
server, it installed MSBuild.exe in a different directory.
Obviously I need to set FinalBuilder to point to the different
directory when using MSBuild.exe. My question is, how do I do this?
Thanks,
Shan
Hi Shannon,
The reason your seeing this error is because MSBuild cannot find the WebApplication target file (C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets). The problem though is that to install the Web Application addon, Visual Studio 2005 must be installed. We’ve run into the same issue here, and were able to get around it simply by copying the ‘Microsoft.WebApplication.targets’ file from a development machine, to the build machine.
Here is a link to the ‘Visual Studio 2005 Web Application Projects’ page if you need to download the addon, http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx.
Regards,
Paul.
Thanks a bunch, Paul, that fixed the error we were getting :). Only now we are getting reference errors, but they are being fixed be re-adding the references in VS.NET 2005. Slowly but surely!
Kind Regards,
Shannon