Skip to content

Commit

Permalink
[GameStudio] About page: added markdown files to package
Browse files Browse the repository at this point in the history
  • Loading branch information
xen2 committed Dec 9, 2018
1 parent 23bd861 commit a47f7f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sources/editor/Xenko.GameStudio/View/AboutPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ private async static Task<string> LoadMarkdown(string file)
return await Task.Run(() =>
{
var filePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), file);
if (!File.Exists(filePath))
filePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"..\..\content", file);
string fileMarkdown;
using (var fileStream = new FileStream(filePath, FileMode.Open))
{
Expand Down
9 changes: 9 additions & 0 deletions sources/editor/Xenko.GameStudio/Xenko.GameStudio.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,15 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Content Include="..\..\..\BACKERS.md" Link="BACKERS.md">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\..\..\LICENSE.md" Link="LICENSE.md">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\..\..\THIRD PARTY.md" Link="THIRD PARTY.md">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="app.config">
<SubType>Designer</SubType>
</None>
Expand Down

0 comments on commit a47f7f2

Please sign in to comment.