Skip to content

Commit 3829543

Browse files
committed
Autogenerate binding redirects for Benchmarking and Profiling
This is to work around C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3276: Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190. [C:\Users\russ\s ource\elasticsearch-net-2.x\src\Profiling\Profiling.csproj] and CS1703: CSC(0,0): Multiple assemblies with equivalent identity have been imported: 'T:\TeamCity\buildAgent\work\3bd1c67a330a3167\packages\System.Xml.ReaderWriter\lib\net46\System.Xml.ReaderWriter.dll' and 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\Facades\System.Xml.ReaderWriter.dll'. Remove one of the duplicate references. on CI Server. Looks to be related to https://github.com/dotnet/corefx/issues/14050, although the recommendation to install Microsoft Build Tools 2015 Update 3 (https://www.visualstudio.com/downloads/#microsoft-build-tools-2015-update-3) did not fix the problem locally.
1 parent 7d715d1 commit 3829543

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Benchmarking/Benchmarking.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<ResolveNuGetPackages>false</ResolveNuGetPackages>
15+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1516
</PropertyGroup>
1617
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1718
<PlatformTarget>AnyCPU</PlatformTarget>

src/Profiling/Profiling.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<ResolveNuGetPackages>false</ResolveNuGetPackages>
15+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1516
</PropertyGroup>
1617
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1718
<PlatformTarget>AnyCPU</PlatformTarget>

0 commit comments

Comments
 (0)