Hi,
If you are building from IDE, and add the dll project as reference, the dll will copy to the target folder after the building.
But if you build in command line, you need to do this manually by writing the script. See this sample script which will copy the dll to the target folder after the building was done.
Quote:
<PropertyGroup>
<SourcePath>"$(MSBuildProjectDirectory)\$(OutputPa th)*.dll"</SourcePath>
<RootFolder>"D:\Visual Studio 2008\Projects\Win1\Win1\bin\Debug"</RootFolder>
</PropertyGroup>
<Target Name="AfterBuild">
<Message Text ="$(SourcePath)" />
<Exec Command ="copy $(SourcePath) $(RootFolder)" />
</Target>
|
You need to put this in the library project in. And note I put the copy task in AfterBuild Target.