Remove outdated pre-compilation tasks from project file

The pre-compilation tasks referencing NHunspell and executing OS-specific scripts were removed from the project file. This cleanup streamlines the build process and removes dependencies on external scripts that are no longer necessary.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
This commit is contained in:
Ivandro Jao 2024-10-23 11:29:35 +01:00
parent 6dd17f90ac
commit 88a45822ae

View File

@ -284,17 +284,7 @@
<Compile Remove="Logic\VideoPlayers\DirectShowLib2005.cs" /> <Compile Remove="Logic\VideoPlayers\DirectShowLib2005.cs" />
<EmbeddedResource Remove="Forms\GetDictionaries.resx" /> <EmbeddedResource Remove="Forms\GetDictionaries.resx" />
</ItemGroup> </ItemGroup>
<Target Name="BeforeCompile">
<XmlPeek XmlInputPath="$(ProjectDir)packages.config" Query="//package[@id='NHunspell']/@version">
<Output TaskParameter="Result" PropertyName="HunspellVersion" />
</XmlPeek>
<PropertyGroup>
<HunspellDir>..\..\packages\NHunspell.$(HunspellVersion)\content\</HunspellDir>
</PropertyGroup>
<Copy SourceFiles="@(HunspellAssemblies -> '$(HunspellDir)%(Identity)')" DestinationFolder="$(OutputPath)" SkipUnchangedFiles="True" />
<Exec Condition="'$(OS)' == 'Windows_NT'" Command="%22$(SolutionDir)\build_helpers.bat%22 rev %22$(ConfigurationName)%22" />
<Exec Condition="'$(OS)' == 'Unix'" Command="bash $(ProjectDir)../../build_helpers.sh rev $(ConfigurationName)" />
</Target>
<Target Name="BeforeClean"> <Target Name="BeforeClean">
<Delete Files="@(HunspellAssemblies -> '$(OutputPath)%(Identity)')" /> <Delete Files="@(HunspellAssemblies -> '$(OutputPath)%(Identity)')" />
</Target> </Target>