Skip to content

Commit

Permalink
Fix External.cs error during first build
Browse files Browse the repository at this point in the history
  • Loading branch information
Edi61 committed Feb 26, 2023
1 parent fa16b22 commit 745d347
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/AntiDupl.NET.Core/AntiDupl.NET.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>

<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

Expand All @@ -53,8 +52,10 @@
</None>
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Target Name="GenerateSources" BeforeTargets="BeforeBuild">
<Exec Command="$(SolutionDir)\Antidupl.NET.Core\External.cmd $(SolutionDir)\Antidupl.NET.Core" />
<ItemGroup>
<Compile Include="$(SolutionDir)\Antidupl.NET.Core\External.cs" />
</ItemGroup>
</Target>

</Project>
</Project>
2 changes: 1 addition & 1 deletion src/AntiDupl.NET.WinForms/AntiDupl.NET.WinForms.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
Expand Down

0 comments on commit 745d347

Please sign in to comment.