Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<Import Project="$(MSBuildExtensionsPath)\ExtensionPack\4.0\MSBuild.ExtensionPack.tasks"/>
<Target Name="BeforeBuild">
<MSBuild.ExtensionPack.FileSystem.Folder TaskAction="RemoveContent" Path="$(ProjectDir)files" />
<MSBuild.ExtensionPack.FileSystem.RoboCopy Source="$(ProjectDir)..\AdminConsole\bin\$(ConfigurationName)" Destination="$(ProjectDir)files\adminconsole" Files="*.*" Options="/s /XF *.pdb *avshost* *.xml">
<Output TaskParameter="ExitCode" PropertyName="Exit" />
<Output TaskParameter="ReturnCode" PropertyName="Return" />
</MSBuild.ExtensionPack.FileSystem.RoboCopy>
<MSBuild.ExtensionPack.FileSystem.RoboCopy Source="$(ProjectDir)..\webapi" Destination="$(ProjectDir)\files" Files="*.*" Options="/s /XF *.pdb *avshost* *.xml %2a.cs *.user *.vspscc web.debug.config web.release.config *.layout *.csproj /XD obj properties">
<Output TaskParameter="ExitCode" PropertyName="Exit" />
<Output TaskParameter="ReturnCode" PropertyName="Return" />
</MSBuild.ExtensionPack.FileSystem.RoboCopy>
<Exec Command="$(SolutionDir)ctt.exe s:$(ProjectDir)..\webapi\web.config t:$(ProjectDir)..\webapi\web.release.config d:$(ProjectDir)files\web.config pw v"/>
<HeatDirectory
Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "
ToolPath="$(WixToolPath)"
Directory="$(ProjectDir)files"
DirectoryRefId="INSTALLLOCATION"
OutputFile="$(ProjectDir)adminfiles.wxs"
ComponentGroupName="AdminFilesGroup"
GenerateGuidsNow="true"
SuppressCom="true"
SuppressFragments="true"
SuppressRootDirectory="true"
RunAsSeparateProcess="true"
PreprocessorVariable="var.AdminSource" />
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.