Skip to content

Commit

Permalink
Replace msbuild scripts with nuget package
Browse files Browse the repository at this point in the history
  • Loading branch information
Cathal Noonan committed Aug 9, 2023
1 parent 2a554a2 commit a7e3300
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 82 deletions.
28 changes: 1 addition & 27 deletions d365-pcf-processsessions.proj
Original file line number Diff line number Diff line change
@@ -1,27 +1 @@
<Project DefaultTargets="Build">
<Target Name="Restore">
<ItemGroup>
<ProjectFiles Include="**/*.*proj" Exclude="*.proj" />
</ItemGroup>
<Exec Command="npm install --no-audit --ignore-scripts --no-fund"
WorkingDirectory="$(MSBuildThisFileDirectory)/control" />
<Exec Command="npm audit --omit=dev"
WorkingDirectory="$(MSBuildThisFileDirectory)/control" />
<MSBuild Targets="Restore"
Projects="@(ProjectFiles)" />
</Target>

<Target Name="Build">
<ItemGroup>
<PacSolutionFiles Include="**/*.cdsproj" />
</ItemGroup>
<MSBuild Targets="Build"
Properties="Configuration=Release"
Projects="@(PacSolutionFiles)" />
</Target>

<Target Name="Clean">
<Exec Command="git clean -ffdX"
WorkingDirectory="$(MSBuildThisFileDirectory)" />
</Target>
</Project>
<Project Sdk="Cathal.PcfTools.Proj/1.0.0" DefaultTargets="Build" />
54 changes: 0 additions & 54 deletions solution/Directory.Build.targets

This file was deleted.

3 changes: 2 additions & 1 deletion solution/solution.cdsproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
Sdk="Cathal.PcfTools.Solution/1.0.0">
<PropertyGroup>
<PowerAppsTargetsPath>$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\PowerApps</PowerAppsTargetsPath>
</PropertyGroup>
Expand Down

0 comments on commit a7e3300

Please sign in to comment.