Skip to content

Commit

Permalink
Updated post-build events
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMpn committed Jul 3, 2024
1 parent 97ee289 commit 34d81ae
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@

<ItemGroup>
<ProjectReference Include="..\MarkMpn.Sql4Cds.Controls\MarkMpn.Sql4Cds.Controls.csproj" />
<ProjectReference Include="..\MarkMpn.Sql4Cds.Engine\MarkMpn.Sql4Cds.Engine.csproj" />
</ItemGroup>
</Project>
9 changes: 9 additions & 0 deletions MarkMpn.Sql4Cds.Engine/MarkMpn.Sql4Cds.Engine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,13 @@
<Reference Include="Microsoft.VisualBasic" Condition=" '$(TargetFramework)' == 'net462' " />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' And '$(TargetFramework)' == 'net462' ">
<MakeDir Directories="$(AppData)\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds" />
<Exec Command="copy $(TargetDir)MarkMpn.Sql4Cds.Engine.dll $(AppData)\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds" />
<Exec Command="copy $(TargetDir)Microsoft.SqlServer.TransactSql.ScriptDom.dll $(AppData)\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds" />
<Exec Command="copy $(TargetDir)Microsoft.ApplicationInsights.dll $(AppData)\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds" />
<Exec Command="copy $(TargetDir)XPath2.dll $(AppData)\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds" />
<Exec Command="copy $(TargetDir)XPath2.Extensions.dll $(AppData)\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds" />
</Target>

</Project>
5 changes: 5 additions & 0 deletions MarkMpn.Sql4Cds.Export/MarkMpn.Sql4Cds.Export.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@
<ProjectReference Include="..\MarkMpn.Sql4Cds.Engine\MarkMpn.Sql4Cds.Engine.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<MakeDir Directories="$(AppData)\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds" />
<Exec Command="copy $(TargetDir)MarkMpn.Sql4Cds.Export.dll $(AppData)\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds" />
</Target>

</Project>
12 changes: 4 additions & 8 deletions MarkMpn.Sql4Cds.XTB/MarkMpn.Sql4Cds.XTB.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,9 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PostBuildEvent>copy $(TargetDir)MarkMpn.Sql4Cds.XTB.dll %25appdata%25\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>copy $(TargetDir)MarkMpn.Sql4Cds.Engine.dll %25appdata%25\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds
copy $(TargetDir)MarkMpn.Sql4Cds.XTB.dll %25appdata%25\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds
copy $(TargetDir)MarkMpn.Sql4Cds.Export.dll %25appdata%25\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds
copy $(TargetDir)SkiaSharp.dll %25appdata%25\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds
copy $(TargetDir)System.Text.Encoding.CodePages.dll %25appdata%25\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds</PostBuildEvent>
<PostBuildEvent>mkdir $(AppData)\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds
copy $(TargetDir)MarkMpn.Sql4Cds.XTB.dll $(AppData)\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds
copy $(TargetDir)SkiaSharp.dll $(AppData)\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds
copy $(TargetDir)System.Text.Encoding.CodePages.dll $(AppData)\MscrmTools\XrmToolBox\Plugins\MarkMpn.Sql4Cds</PostBuildEvent>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion MarkMpn.Sql4Cds/MarkMpn.Sql4Cds.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PostBuildEvent>copy $(TargetDir)MarkMpn.Sql4Cds.dll %25appdata%25\MscrmTools\XrmToolBox\Plugins
<PostBuildEvent>copy $(TargetDir)MarkMpn.Sql4Cds.dll $(AppData)\MscrmTools\XrmToolBox\Plugins
</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down

0 comments on commit 34d81ae

Please sign in to comment.