What's wrong with an ordinary VS2003 post-build step? Some tips: 1) use the $(DevEnvDir) parameter to avoid hardcoding a path to vsvars32.bat;
2) use the 'call' command to reference that batch file -- recognizing that everything you type into that post-build event window is going to get dumped into a batch file, of its own! 3) surround the path to vsvars32 with doublequotes, because you very likely have spaces in that pathname. 4) recognize that the current working directory is the $(OutDir). this affects how/where al.exe will look for its input arguments... call "$(DevEnvDir)..\Tools\VSVars32.bat" al.exe ..... HTH, -S On Thu, 2 Dec 2004 06:52:56 -0500, Bill Bassler <[EMAIL PROTECTED]> wrote: > I'm wondering what the best/simplest way to run the assembly linker utility > to create publisher policy assembly in VS.Net as a part of the build > process. Specifically, I would like to run the commands below (to my > knowledge this is the only way to create the required publisher policy > assembly) each time the solution is built or maybe better only during a > release build. One thing I think I can do is either create a macro > containing the commands or paste the commands into the utility so that they > are run from a VS.Net project "Post-build event Command Line". Is this the > best option? Are there other better options? > > cls > :"C:\Program Files\Microsoft Visual Studio .NET 2003\Common7 > \Tools\vsvars32.bat" > al /linkresource:policy.1.0.TokenManagement.Business.config /out:policy.1.0 > .TokenManagement.Business.dll /keyfile:..\TokenManagement.Business.snk /des > cription:"Backward compatibility > support." /company:"eSylvan" /product:"TokenManagement" /version:1.0.* /prod > uctversion:"1.0" > > =================================== > This list is hosted by DevelopMentorŪ http://www.develop.com > Some .NET courses you may be interested in: > > Essential .NET: building applications and components with C# > November 29 - December 3, in Los Angeles > http://www.develop.com/courses/edotnet > > View archives and manage your subscription(s) at http://discuss.develop.com > =================================== This list is hosted by DevelopMentorŪ http://www.develop.com Some .NET courses you may be interested in: Essential .NET: building applications and components with C# November 29 - December 3, in Los Angeles http://www.develop.com/courses/edotnet View archives and manage your subscription(s) at http://discuss.develop.com