Skip to content

Commit

Permalink
Add prebuild execution on all projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Tr00d committed Aug 25, 2023
1 parent 32d6092 commit 38a2cb9
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 24 deletions.
4 changes: 3 additions & 1 deletion Vonage.Common.Test/Vonage.Common.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,7 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="node ../.scripts/init.js"/>
</Target>
</Project>
11 changes: 7 additions & 4 deletions Vonage.Common/Vonage.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,25 @@
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<Version>6.8.0</Version>
<PackageLicenseExpression />
<PackageLicenseExpression/>
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
<LangVersion>latest</LangVersion>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Enums.NET" Version="4.0.1" />
<PackageReference Include="Handy.DotNETCore-Compatibility.ColorTranslations" Version="0.2.1" />
<PackageReference Include="Enums.NET" Version="4.0.1"/>
<PackageReference Include="Handy.DotNETCore-Compatibility.ColorTranslations" Version="0.2.1"/>
<PackageReference Include="PolySharp" Version="1.13.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Text.Json" Version="7.0.3"/>
<PackageReference Include="Yoh.Text.Json.NamingPolicies" Version="1.0.0" />
<PackageReference Include="Yoh.Text.Json.NamingPolicies" Version="1.0.0"/>
<PackageReference Update="NETStandard.Library" Version="2.0.3"/>
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="node ../.scripts/init.js"/>
</Target>
</Project>
4 changes: 3 additions & 1 deletion Vonage.Server.Test/Vonage.Server.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,7 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="node ../.scripts/init.js"/>
</Target>
</Project>
3 changes: 3 additions & 0 deletions Vonage.Server/Vonage.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,7 @@
<ItemGroup>
<InternalsVisibleTo Include="Vonage.Server.Test"/>
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="node ../.scripts/init.js"/>
</Target>
</Project>
36 changes: 19 additions & 17 deletions Vonage.Test.Unit/Vonage.Test.Unit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoFixture" Version="4.18.0" />
<PackageReference Include="FluentAssertions" Version="6.11.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="System.IO.Abstractions.TestingHelpers" Version="19.2.29" />
<PackageReference Include="System.Security.Cryptography.Cng" Version="5.0.0" />
<PackageReference Include="WireMock.Net" Version="1.5.31" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="AutoFixture" Version="4.18.0"/>
<PackageReference Include="FluentAssertions" Version="6.11.0"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3"/>
<PackageReference Include="Moq" Version="4.18.4"/>
<PackageReference Include="System.IO.Abstractions.TestingHelpers" Version="19.2.29"/>
<PackageReference Include="System.Security.Cryptography.Cng" Version="5.0.0"/>
<PackageReference Include="WireMock.Net" Version="1.5.31"/>
<PackageReference Include="xunit" Version="2.4.2"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; analyzers; buildtransitive</IncludeAssets>
Expand All @@ -33,12 +33,12 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Vonage.Common.Test\Vonage.Common.Test.csproj" />
<ProjectReference Include="..\Vonage\Vonage.csproj" />
<ProjectReference Include="..\Vonage.Common.Test\Vonage.Common.Test.csproj"/>
<ProjectReference Include="..\Vonage\Vonage.csproj"/>
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' != 'netcoreapp3.0' And '$(TargetFramework)' != 'netcoreapp3.1' ">
<Reference Include="System.Web" />
<Reference Include="System.Web"/>
</ItemGroup>

<ItemGroup>
Expand Down Expand Up @@ -408,7 +408,7 @@
<None Include="Messages\Viber\Data\SendViberFileAsyncReturnsOk-request.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Remove="Messages\Viber\Data\SendViberFileAsyncReturnsOk-response.json" />
<None Remove="Messages\Viber\Data\SendViberFileAsyncReturnsOk-response.json"/>
<None Include="Messages\Viber\Data\SendViberFileAsyncReturnsOk-response.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down Expand Up @@ -676,10 +676,10 @@
<None Update="ProactiveConnect\Events\Data\ShouldDeserialize200-response.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<Folder Include="ConfigurationData\" />
<Folder Include="Messages\Messenger\Data" />
<Folder Include="Messages\Mms\Data" />
<Folder Include="Messages\Sms\Data" />
<Folder Include="ConfigurationData\"/>
<Folder Include="Messages\Messenger\Data"/>
<Folder Include="Messages\Mms\Data"/>
<Folder Include="Messages\Sms\Data"/>
<None Update="Data\NccoTests\TestConnectWithAdvancedMachineDetection-request.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down Expand Up @@ -867,5 +867,7 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="node ../.scripts/init.js"/>
</Target>
</Project>
2 changes: 1 addition & 1 deletion Vonage/Vonage.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@
<InternalsVisibleTo Include="Vonage.Server.Test"/>
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="if $(ConfigurationName) == Debug node ../.scripts/init.js" />
<Exec Command="node ../.scripts/init.js"/>
</Target>
</Project>

0 comments on commit 38a2cb9

Please sign in to comment.