Merge pull request #8934 from ivandrofly/build

SubtitleEdit.csproj: Build
This commit is contained in:
Nikolaj Olsson 2024-10-24 18:02:02 +02:00 committed by GitHub
commit 0913c8d72a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 18 deletions

View File

@ -38,12 +38,7 @@
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<Target Name="InvokeBuildHelpers" BeforeTargets="BeforeCompile;CoreCompile">
<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>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

View File

@ -284,18 +284,8 @@
<Compile Remove="Logic\VideoPlayers\DirectShowLib2005.cs" />
<EmbeddedResource Remove="Forms\GetDictionaries.resx" />
</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" />
<Target Name="InvokeBuildHelpers" BeforeTargets="BeforeCompile;CoreCompile">
<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">
<Delete Files="@(HunspellAssemblies -> '$(OutputPath)%(Identity)')" />
</Target>
</Project>