Skip to content

Commit

Permalink
Attempting to fix build/artifact again
Browse files Browse the repository at this point in the history
Did you know? Trying to reference a property that doesn't exist in the target doesn't work.
  • Loading branch information
Smalls1652 committed Jan 12, 2024
1 parent 40b8f07 commit 99f32d3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Tools/CsvImporter/CsvImporter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<EnableArtifactZip>false</EnableArtifactZip>
<ZipArtifactsPath>..\..\..\artifacts</ZipArtifactsPath>
<EnableBuildOutDir>false</EnableBuildOutDir>
<BuildOutDir>..\..\..\build\CsvImporter</BuildOutDir>
<BuildOutDir>..\..\..\build</BuildOutDir>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -34,13 +34,14 @@
<BuildOutDirAbsolutePath>$([System.IO.Path]::GetFullPath('$(BuildOutDir)'))</BuildOutDirAbsolutePath>
</PropertyGroup>

<MakeDir Directories="$(ZipArtifactsPathAbsolutePath)" />
<MakeDir Directories="$(BuildOutDirAbsolutePath)" />
<MakeDir Directories="$(BuildOutDirAbsolutePath)\CsvImporter" />

<Copy SourceFiles="@(PublishedFiles)" DestinationFolder="$(BuildOutDir)\%(RecursiveDir)" />
<Copy SourceFiles="@(PublishedFiles)" DestinationFolder="$(BuildOutDir)\CsvImporter\%(RecursiveDir)" />

<Message
Importance="high"
Text="$(MSBuildProjectName)\native -> $(BuildOutDirAbsolutePath)" />
Text="$(MSBuildProjectName) -> $(BuildOutDirAbsolutePath)" />
</Target>

<Target Name="CreateArtifactsZip" AfterTargets="Publish"
Expand All @@ -52,7 +53,7 @@
<MakeDir Directories="$(ZipArtifactsPathAbsolutePath)" />

<ZipDirectory
SourceDirectory="$(BuildOutDirAbsolutePath)"
SourceDirectory="$(BuildOutDirAbsolutePath)\CsvImporter"
DestinationFile="$(ZipArtifactsPath)\CsvImporter_$(RuntimeIdentifier).zip"
Overwrite="true" />
</Target>
Expand Down

0 comments on commit 99f32d3

Please sign in to comment.