[Xamarin.Android.Bcl-Tests] Allow Xamarin.Android.NUnitLite.dll path to be overridden (#1030)
This is required for "system" execution on Windows, as there is no `xbuild-frameworks` folder installed by the Xamarin.Android `.vsix`. The framework installation location in VS2017 is outlined at: C:\Program Files (x86)\Microsoft Visual Studio\Preview\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0' Instead of hardcoding the path to `Xamarin.Android.NUnitLite.dll`, let MSBuild sort it out by using the the `<ResolveAssemblyReference/>` task.
This commit is contained in:
Родитель
42a4b9be0b
Коммит
4b01a39013
|
@ -20,9 +20,11 @@
|
|||
<ItemGroup>
|
||||
<_Source Include="@(MonoTestAssembly->'..\..\bin\$(Configuration)\bcl-tests\%(Identity)')" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<_NUnit>$(XAInstallPrefix)xbuild-frameworks\MonoAndroid\v1.0\Xamarin.Android.NUnitLite.dll</_NUnit>
|
||||
</PropertyGroup>
|
||||
<ResolveAssemblyReference
|
||||
Assemblies="Xamarin.Android.NUnitLite"
|
||||
SearchPaths="$(XAInstallPrefix)xbuild-frameworks\MonoAndroid\v1.0;$(FrameworkPathOverride)">
|
||||
<Output TaskParameter="ResolvedFiles" PropertyName="_NUnit" />
|
||||
</ResolveAssemblyReference>
|
||||
<Exec
|
||||
Command="$(RemapAssemblyRefTool) "%(_Source.Identity)" "$(IntermediateOutputPath)%(_Source.Filename)%(_Source.Extension)" nunitlite "$(_NUnit)""
|
||||
/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче