a7becbe6d8
When passing a property using the commandline, it is not flown through to "dotnet publish" calls. So instead of using "dotnet publish", just use the MSBuild task to invoke the Publish target on the reidst project. This way properties flow correctly. I also did a little cleaning of unused build logic.
16 lines
591 B
XML
16 lines
591 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<Target Name="Compile" DependsOnTargets="Prepare;
|
|
CompileCLI;
|
|
BuildProjectsForNuGetPackages;" />
|
|
|
|
<Target Name="CompileCLI">
|
|
<RemoveDir Directories="$(OutputDirectory)" />
|
|
<MakeDir Directories="$(OutputDirectory)"/>
|
|
|
|
<!-- Publish DotNet -->
|
|
<MSBuild Projects="$(SrcDirectory)/redist/redist.csproj"
|
|
Targets="Publish" />
|
|
</Target>
|
|
</Project>
|