views:

40

answers:

1

I'm making a build using FinalBuilder Pro 7.

I have an asp.net web site and I'm trying to use FinalBuilder's "Precompile Asp.net 2.0 Application" action. Well, It fails.

To build it successfully I need to run Visual Studio, open the web site and either build it manually from within VS or manually update all references. After that it works.

Now the question: How to force FinalBuilder to update those references? Even if I create web deployment project associated with the web site and try to build it with msbuild action it would fail for the same reason. Somehow neither action updates references automatically.

UPD: OK. Maybe I need to force msbuild to update references. How to do that? I found some properties that I can change at msbuild action. On called 'ResolveAssemblyReferencesDependsOn' I tried to put the value = true. Didn't help. Any ideas?

+1  A: 

Have you tried using the 'Build VS.NET Solution' or 'MSBuild Project' actions? Both should resolve your assembly references, provided the reference is set to the right location. This requires that you at least have a project file.

As I understand it, the Precompile action (which uses the MS aspnet_compile.exe - see http://msdn.microsoft.com/en-us/library/ms229863(VS.80).aspx) is designed to re-compile an asp.net application which has previously been built via VS or MSBuild. It does either an in-place compile to improve performance for the first user that hits the site, or creates a deployable application (removing source code etc). It's not meant as an alternative to VS/MSBuild.

Ben Hughes
It doesn't work for me... you have to define solution file for that. But It's just a web site's local copy. So, no solution file whatsoever. Sure I can create one. But then I have to store it in repository... that's the entirely different story...
Ike
Updated my answer - hope that helps
Ben Hughes