Skip to content

Commit

Permalink
Add Pre-build Event for Copying the Bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
kruplm committed Jun 30, 2023
1 parent dcb9760 commit 4b2bc8c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/shell/dotnet/Shell/Shell.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,9 @@

<ItemGroup>
<None Remove="MainWindow.xaml" />
<None Remove="Preload\fdc3-iife-bundle.js" />
<None Remove="WebWindow.xaml" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Preload\fdc3-iife-bundle.js">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.1462.37" />
Expand All @@ -45,6 +38,7 @@
</ItemGroup>

<ItemGroup>
<Folder Include="Preload\" />
<Folder Include="Utilities\" />
</ItemGroup>

Expand All @@ -53,4 +47,8 @@
<ProjectReference Include="..\..\..\messaging\dotnet\src\Host\MorganStanley.ComposeUI.Messaging.Host.csproj" />
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="PowerShell cd ..\..\..\..\ ; .\src\shell\dotnet\copy-fdc3-iife-bundle.ps1" />
</Target>

</Project>

0 comments on commit 4b2bc8c

Please sign in to comment.