Skip to content

Commit

Permalink
IGNITE-16958 .NET: Fix net461 release build (apache#10022)
Browse files Browse the repository at this point in the history
Fix "IgniteConfigurationSection does not inherit from IConfigurationSectionHandler" exception due to a wrong `System.Configuration.ConfigurationManager.dll` binary being copied to release directory.
  • Loading branch information
ptupitsyn authored May 13, 2022
1 parent 1d1046c commit 6d021ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions modules/platforms/dotnet/Apache.Ignite/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
<section name="igniteConfiguration" type="Apache.Ignite.Core.IgniteConfigurationSection, Apache.Ignite.Core" />
</configSections>

<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>

<runtime>
<gcServer enabled="true" />
</runtime>
Expand Down
3 changes: 3 additions & 0 deletions modules/platforms/dotnet/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ cd $PSScriptRoot
# 2) Build .NET
if (!$skipDotNet) {
Build-Solution ".\Apache.Ignite.sln" "bin\net461"

# Overwrite dlls to ensure that net461 versions are used instead of netstandard2.
Copy-Item -Force -Recurse ".\Apache.Ignite\bin\$configuration\net461\*" "bin\net461"
}

if(!$skipDotNetCore) {
Expand Down

0 comments on commit 6d021ee

Please sign in to comment.