xamarin-macios/msbuild/Xamarin.iOS.Tasks/Xamarin.iOS.Common.props

70 строки
3.9 KiB
Plaintext
Исходник Обычный вид История

2016-04-21 16:40:25 +03:00
<!--
***********************************************************************************************
Xamarin.iOS.Common.props
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
This file defines default properties for iOS projects.
Copyright (C) 2013-2016 Xamarin. All rights reserved.
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.props"
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.props')"/>
<Import Project="$(MSBuildThisFileDirectory)Xamarin.Shared.props" />
2016-04-21 16:40:25 +03:00
<PropertyGroup>
<MtouchFastDev Condition="'$(MtouchFastDev)' == ''">False</MtouchFastDev>
<MtouchHttpClientHandler Condition="'$(MtouchHttpClientHandler)' == ''">NSUrlSessionHandler</MtouchHttpClientHandler>
2016-04-21 16:40:25 +03:00
<MtouchProfiling Condition="'$(MtouchProfiling)' == ''">False</MtouchProfiling>
<MtouchLinkerDumpDependencies Condition="'$(MtouchLinkerDumpDependencies)' == ''">False</MtouchLinkerDumpDependencies>
<MtouchUseLlvm Condition="'$(MtouchUseLlvm)' == ''">False</MtouchUseLlvm>
<MtouchFloat32 Condition="'$(MtouchFloat32)' == '' And '$(UsingAppleNETSdk)' != 'true'">False</MtouchFloat32>
2016-04-21 16:40:25 +03:00
<MtouchEnableBitcode Condition="'$(MtouchEnableBitcode)' == ''">False</MtouchEnableBitcode>
<MtouchUseThumb Condition="'$(MtouchUseThumb)' == ''">False</MtouchUseThumb>
<MtouchProjectDirectory>$(MSBuildProjectDirectory)</MtouchProjectDirectory>
<MtouchVerbosity Condition="$(MtouchVerbosity) == ''">2</MtouchVerbosity>
2016-04-21 16:40:25 +03:00
<IpaIncludeArtwork Condition="'$(IpaIncludeArtwork)' == ''">False</IpaIncludeArtwork>
<BuildIpa Condition="'$(BuildIpa)' == '' And '$(UsingAppleNETSdk)' != 'true'">False</BuildIpa>
2016-04-21 16:40:25 +03:00
<BuildSessionId></BuildSessionId>
<!-- Backward Compatability -->
<IOSDebuggerConnectOverUsb Condition="'$(IOSDebuggerConnectOverUsb)' == ''">True</IOSDebuggerConnectOverUsb>
<IOSDebugOverWiFi Condition="'$(IOSDebugOverWiFi)' == '' And '$(IOSDebuggerConnectOverUsb)' == 'True'">False</IOSDebugOverWiFi>
<IOSDebugOverWiFi Condition="'$(IOSDebugOverWiFi)' == '' And '$(IOSDebuggerConnectOverUsb)' == 'False'">True</IOSDebugOverWiFi>
<!--<IOSDebuggerHosts Condition="'$(IOSDebuggerHosts)' == ''">127.0.0.1</IOSDebuggerHosts>-->
<IOSDebuggerPort Condition="'$(IOSDebuggerPort)' == ''">10000</IOSDebuggerPort>
<!-- On-Demand Resources -->
<OnDemandResourcesInitialInstallTags Condition="'$(OnDemandResourcesInitialInstallTags)' == '' Or '$(EnableOnDemandResources)' != 'true'"></OnDemandResourcesInitialInstallTags>
<OnDemandResourcesPrefetchOrder Condition="'$(OnDemandResourcesPrefetchOrder)' == '' Or '$(EnableOnDemandResources)' != 'true'"></OnDemandResourcesPrefetchOrder>
2016-04-21 16:40:25 +03:00
<EmbedOnDemandResources Condition="'$(EmbedOnDemandResources)' == ''">true</EmbedOnDemandResources>
<!-- Device-Specific Builds -->
<DeviceSpecificBuild Condition="'$(DeviceSpecificBuild)' == ''">$(_BundlerDebug)</DeviceSpecificBuild>
<DeviceSpecificBuild Condition="'$(_BundlerDebug)' != 'true'">False</DeviceSpecificBuild>
2016-04-21 16:40:25 +03:00
</PropertyGroup>
<ItemGroup>
<AvailableItemName Include="BundleResource" />
</ItemGroup>
[msbuild] remove {GAC} from $(AssemblySearchPaths) (#7815) Fixes: https://developercommunity.visualstudio.com/content/problem/788505/xamarin-found-conflicts-between-different-versions.html Fixes: http://work.azdo.io/1008385 Context: https://github.com/xamarin/xamarin-android/blob/73b93c2dc94d4af166415634b40695fa2be8c371/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets#L337-L341 On Windows only, Xamarin.Forms projects hit the build warning: Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Found conflicts between different versions of "System.Numerics" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. The difference appears to be the `{GAC}` search path is used on Windows, but not Mac. In fact, the output of `<ResolveAssemblyReference/>` on Mac reports: Unused locations {CandidateAssemblyFiles} {HintPathFromItem} {Registry:Software/Microsoft/Xamarin.iOS,v1.0,AssemblyFoldersEx} {AssemblyFolders} {GAC} bin/iPhoneSimulator/Debug/ Used locations {TargetFrameworkDirectory} {RawFileName} Compared to Windows: Used locations {TargetFrameworkDirectory} {GAC} {RawFileName} For now, we should just remove `{GAC}` from the list as the safest fix. Xamarin.Mac is already doing this: https://github.com/xamarin/xamarin-macios/blob/f85556c1e5bee7a0faf3bf7ade709c3f5f260f11/msbuild/Xamarin.Mac.Tasks/Xamarin.Mac.Common.props#L121-L125 Down the road, we could specify only the paths needed for performance reasons. We have done this recently in Xamarin.Android: https://github.com/xamarin/xamarin-android/blob/5945e9a77988a01ceb062dcc82bda6c6bf407e14/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets#L382-L386 * Added a test assertion for this as well.
2020-02-07 17:54:29 +03:00
<!-- Do not resolve from the GAC under any circumstances in Mobile -->
<PropertyGroup Condition="'$(UsingAppleNETSdk)' != 'true'">
[msbuild] remove {GAC} from $(AssemblySearchPaths) (#7815) Fixes: https://developercommunity.visualstudio.com/content/problem/788505/xamarin-found-conflicts-between-different-versions.html Fixes: http://work.azdo.io/1008385 Context: https://github.com/xamarin/xamarin-android/blob/73b93c2dc94d4af166415634b40695fa2be8c371/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets#L337-L341 On Windows only, Xamarin.Forms projects hit the build warning: Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Found conflicts between different versions of "System.Numerics" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. The difference appears to be the `{GAC}` search path is used on Windows, but not Mac. In fact, the output of `<ResolveAssemblyReference/>` on Mac reports: Unused locations {CandidateAssemblyFiles} {HintPathFromItem} {Registry:Software/Microsoft/Xamarin.iOS,v1.0,AssemblyFoldersEx} {AssemblyFolders} {GAC} bin/iPhoneSimulator/Debug/ Used locations {TargetFrameworkDirectory} {RawFileName} Compared to Windows: Used locations {TargetFrameworkDirectory} {GAC} {RawFileName} For now, we should just remove `{GAC}` from the list as the safest fix. Xamarin.Mac is already doing this: https://github.com/xamarin/xamarin-macios/blob/f85556c1e5bee7a0faf3bf7ade709c3f5f260f11/msbuild/Xamarin.Mac.Tasks/Xamarin.Mac.Common.props#L121-L125 Down the road, we could specify only the paths needed for performance reasons. We have done this recently in Xamarin.Android: https://github.com/xamarin/xamarin-android/blob/5945e9a77988a01ceb062dcc82bda6c6bf407e14/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets#L382-L386 * Added a test assertion for this as well.
2020-02-07 17:54:29 +03:00
<AssemblySearchPaths>$([System.String]::Copy('$(AssemblySearchPaths)').Replace('{GAC}',''))</AssemblySearchPaths>
<AssemblySearchPaths Condition="'$(MSBuildRuntimeVersion)' != ''">$(AssemblySearchPaths.Split(';'))</AssemblySearchPaths>
</PropertyGroup>
2016-04-21 16:40:25 +03:00
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.props"
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.props')"/>
</Project>