Skip to content

Commit

Permalink
Avoid compilation of classes shall be prepared (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers authored May 31, 2024
1 parent 81708e2 commit f45c140
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/generateclasses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:

- name: Pre compile
run: dotnet build --no-incremental --configuration Release /p:Platform="Any CPU" /p:NoWarn="0108%3B1030%3B0618" src\net\Netdroid\Netdroid.csproj
env:
GITHUB_CLASS_GENERATION: true

- name: Set up Apache Maven Central
uses: actions/setup-java@v4
Expand Down
13 changes: 10 additions & 3 deletions src/net/Netdroid/Netdroid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,16 @@
<None Include="..\..\..\jars\*.jar" Pack="true" PackagePath="build\jars" />
<None Include="..\..\documentation\articles\usage.md" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<Compile Remove="Generated\Java\Util\Function\**" />
<None Remove="Generated\Java\Util\Function\**" />
<ItemGroup Condition="'$(GITHUB_CLASS_GENERATION)' == 'true'">
<Compile Remove="Developed\**" />
<Compile Remove="Generated\**" />
<Compile Remove="Specific\**" />
<EmbeddedResource Remove="Developed\**" />
<EmbeddedResource Remove="Generated\**" />
<EmbeddedResource Remove="Specific\**" />
<None Remove="Developed\**" />
<None Remove="Generated\**" />
<None Remove="Specific\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MASES.CLIParser" Version="3.2.1" />
Expand Down

0 comments on commit f45c140

Please sign in to comment.