I\'m trying to set the OutputPath value to an absolute path:
c:\\Projects\\xxx\\Deployment
But I get t
Try using OutDir
instead of OutputPath
:
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Deployment|AnyCPU'">
<OutDir>C:\Projects\xxx\$(Configuration)</OutDir>
<EnableUpdateable>true</EnableUpdateable>
<UseMerge>true</UseMerge>
<SingleAssemblyName>xxx.Web.Deployment</SingleAssemblyName>
</PropertyGroup>
I'm not sure whether you can do what you're talking about, but you can add something similar to the following:
<PropertyGroup>
<CentralisedBinariesFolderLocation>c:\wherever</CentralisedBinariesFolderLocation>
</PropertyGroup>
<Target Name="AfterBuild">
<Exec Command="xcopy /Y /S /F /R "$(TargetPath)" "$(CentralisedBinariesFolderLocation)"" />
</Target>
Which will copy it to the relevant location after the build.
Instead of all the steps in the October answer, is it not possible just to define WebPublishPipelineProjectDirectory
with the same path as OutputPath
?
I tried it in my CI solution (using CruiseControl
) and it seemed to work.
Does anyone know of any side effects that are not apparent to me from doing this?