kuiperzone / AvantGarde

Avalonia XAML Preview for Linux and Windows
GNU General Public License v3.0
228 stars 10 forks source link

Fix post-build when building on Windows #3

Closed odalet closed 2 years ago

odalet commented 2 years ago

This should fix the post-build not working when building on Windows. And sorry, it seems I've messed up the formatting... Tabs vs spaces?

kuiperzone commented 2 years ago

This is fine. But may remove this function from project file in future.

odalet commented 2 years ago

Alternatively, you could have the file copied over to the bin folder without the need for a post-build event with something like this in the csproj:

  <ItemGroup>
    <None Include="..\LICENSE" Link="LICENSE">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
  </ItemGroup>
kuiperzone commented 2 years ago

Cheers. I added the copy license as a last minute thing. The above looks like a good suggestion. Thanks.