When compiling with devenv it will overrite the output assembly regardless of its file attributes (ie: ReadOnly). The solution task does not do this.

Here is a patch to synch the two behaviours:

NAnt.VSNet/Project.cs

//THIS LINE MAKES THE OUTPUT FILE WRITTABLE
System.IO.File.SetAttributes (cs.FullOutputFile , System.IO.FileAttributes.Normal );
//


ProcessStartInfo psi = null;
if ( _ps.Type == ProjectType.CSharp ) {
psi = new ProcessStartInfo( Path.Combine( _nanttask.Project.CurrentFramework.FrameworkDirectory.FullName, "csc.exe" ), "@" + strTempFile );
}


if ( _ps.Type == ProjectType.VBNet ) {
psi = new ProcessStartInfo( Path.Combine( _nanttask.Project.CurrentFramework.FrameworkDirectory.FullName, "vbc.exe" ), "@" + strTempFile );
}


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to