Repository navigation
[Xamarin.Android.Build.Tasks] Warning when building Forms app: MSB324 7 Found conflicts between different versions of the same dependent assembly - #273
Merged
Conversation
jonpryor
reviewed
Oct 21, 2016
| <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" /> | ||
|
|
||
| <!-- Do not resolve from the GAC under any circumstances in Mobile --> | ||
| <PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid'" > |
Contributor
There was a problem hiding this comment.
Are there any (supported?) circumstances in which Xamarin.Android.Bindings.targets will be used when $(TargetFrameworkIdentifier) isn't MonoAndroid? This Condition seems weird.
Rephrased: shouldn't we always do this?
| </Choose> | ||
|
|
||
| <!-- Do not resolve from the GAC under any circumstances in Mobile --> | ||
| <PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid'" > |
…7 Found conflicts between different versions of the same dependent assembly Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=44193 Recent changes to support .Net Standard resulted in builds producing the following warnings C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2113,3): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: (MSB3247) This is a result of Facade assemblies having different (lower) version numbers to the ones which are used in the final app. It also effects situations where the assemblies are picked out of the GAC rather than the local framework directory (Mandroid/vX.0). This commit adds code similar to what is used in the iOS/Mac projects (xamarin-macios/3fcb2ed8) to remove the GAC search from the search path for assemblies. This will ensure that we never pick out a reference from the GAC for Android based projects. It also adds the AutoUnify property to the ResolveAssemblyReferences task to get rid of the warning when resolving _ResolveSatellitePaths.
Contributor
Author
|
@jonpryor should be good to go |
dellis1972
added a commit
that referenced
this pull request
Nov 1, 2016
…#273) Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=44193 Recent changes to support .Net Standard resulted in builds producing the following warnings C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2113,3): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: (MSB3247) This is a result of Facade assemblies having different (lower) version numbers to the ones which are used in the final app. It also effects situations where the assemblies are picked out of the GAC rather than the local framework directory (Mandroid/vX.0). This commit adds code similar to what is used in the iOS/Mac projects (xamarin-macios/3fcb2ed8) to remove the GAC search from the search path for assemblies. This will ensure that we never pick out a reference from the GAC for Android based projects. It also adds the AutoUnify property to the ResolveAssemblyReferences task to get rid of the warning when resolving _ResolveSatellitePaths.
dellis1972
added a commit
that referenced
this pull request
Nov 1, 2016
…#273) Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=44193 Recent changes to support .Net Standard resulted in builds producing the following warnings C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2113,3): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: (MSB3247) This is a result of Facade assemblies having different (lower) version numbers to the ones which are used in the final app. It also effects situations where the assemblies are picked out of the GAC rather than the local framework directory (Mandroid/vX.0). This commit adds code similar to what is used in the iOS/Mac projects (xamarin-macios/3fcb2ed8) to remove the GAC search from the search path for assemblies. This will ensure that we never pick out a reference from the GAC for Android based projects. It also adds the AutoUnify property to the ResolveAssemblyReferences task to get rid of the warning when resolving _ResolveSatellitePaths.
radical
pushed a commit
that referenced
this pull request
May 8, 2018
Fixes: #1396 If `//constructor/@deprecated` has a value of `deprecated`, then the constructor should be `[Obsolete]`. This is what is already done with methods.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=44193
Recent changes to support .Net Standard resulted in builds
producing the following warnings
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2113,3): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: (MSB3247)
This is a result of Facade assemblies having different (lower)
version numbers to the ones which are used in the final app. It also
effects situations where the assemblies are picked out of the GAC rather
than the local framework directory (Mandroid/vX.0).
This commit adds code similar to what is used in the iOS/Mac
projects (xamarin-macios/3fcb2ed8) to remove the GAC search from the
search path for assemblies. This will ensure that we never pick out
a reference from the GAC for Android based projects.
It also adds the AutoUnify property to the ResolveAssemblyReferences
task to get rid of the warning when resolving _ResolveSatellitePaths.