Limit Validation Task to Rebuild

Validation project is no longer inlcuded in the solution by default.
Ryujinx.csproj can/will call the validation project in a Rebuild.
Should fix all issues.
Left in a debug message that i will remove if all goes well.
This commit is contained in:
LotP1
2024-12-18 23:37:14 +01:00
parent 1ef2a426bb
commit d5c6e9a29f
3 changed files with 8 additions and 10 deletions

View File

@@ -2,7 +2,6 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RuntimeIdentifiers>win-x64;linux-x64;linux-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
@@ -13,7 +12,8 @@
<UsingTask TaskName="Ryujinx.BuildValidationTasks.LocaleValidationTask" TaskFactory="TaskHostFactory" AssemblyFile="$(OutDir)Ryujinx.BuildValidationTasks.dll" />
<Target Name="LocalesJsonValidation" AfterTargets="AfterBuild">
<Target Name="LocalesJsonValidation" AfterTargets="AfterRebuild">
<Message Text="Validate Json" Importance="high"/>
<LocaleValidationTask />
</Target>

View File

@@ -13,9 +13,8 @@
<DefaultItemExcludes>$(DefaultItemExcludes);._*</DefaultItemExcludes>
</PropertyGroup>
<Target Name="BuildValidationProj" BeforeTargets="BeforeBuild">
<Message Text="TEST" Importance="high"/>
<MSBuild Projects="..\Ryujinx.BuildValidationTasks\Ryujinx.BuildValidationTasks.csproj" Targets="Build">
<Target Name="BuildValidationProj" BeforeTargets="BeforeRebuild">
<MSBuild Projects="..\Ryujinx.BuildValidationTasks\Ryujinx.BuildValidationTasks.csproj" Targets="Rebuild">
</MSBuild>
</Target>
@@ -137,4 +136,4 @@
<ItemGroup>
<AdditionalFiles Include="Assets\locales.json" />
</ItemGroup>
</Project>
</Project>