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

@ -39,11 +39,6 @@
</EmbeddedResource> </EmbeddedResource>
</ItemGroup> </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' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup> </PropertyGroup>

View File

@ -284,18 +284,8 @@
<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"> <Target Name="InvokeBuildHelpers" BeforeTargets="BeforeCompile;CoreCompile">
<XmlPeek XmlInputPath="$(ProjectDir)packages.config" Query="//package[@id='NHunspell']/@version"> <Exec Condition="'$(OS)' == 'Windows_NT'" Command="%22$(SolutionDir)build_helpers.bat%22 rev %22$(ConfigurationName)%22" />
<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)" /> <Exec Condition="'$(OS)' == 'Unix'" Command="bash $(ProjectDir)../../build_helpers.sh rev $(ConfigurationName)" />
</Target> </Target>
<Target Name="BeforeClean">
<Delete Files="@(HunspellAssemblies -> '$(OutputPath)%(Identity)')" />
</Target>
</Project> </Project>