|
6 | 6 | <TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">netcoreapp1.1</TargetFrameworks>
|
7 | 7 | <PackageTargetFallback Condition=" '$(TargetFramework)' == 'netcoreapp1.1' ">$(PackageTargetFallback);portable-net451+win8</PackageTargetFallback>
|
8 | 8 |
|
9 |
| - <!-- |
10 |
| - Generate an EXE to take advantage of Microsoft.NET.RuntimeIdentifierInference.targets special cases. This works |
11 |
| - around #5873. Also avoids dotnet/sdk#926 when building with msbuild.exe e.g. in Visual Studio. |
12 |
| - --> |
13 |
| - <OutputType Condition=" '$(TargetFramework)' != 'netcoreapp1.1' ">EXE</OutputType> |
14 |
| - |
15 | 9 | <DefineConstants Condition="'$(GenerateBaselines)'=='true'">$(DefineConstants);GENERATE_BASELINES</DefineConstants>
|
16 | 10 | <DefineConstants>$(DefineConstants);__RemoveThisBitTo__GENERATE_BASELINES</DefineConstants>
|
17 | 11 | <DefineConstants>$(DefineConstants);FUNCTIONAL_TESTS</DefineConstants>
|
18 | 12 | </PropertyGroup>
|
19 | 13 |
|
| 14 | + <PropertyGroup Condition=" '$(TargetFramework)' != 'netcoreapp1.1' "> |
| 15 | + <!-- Work around https://github.com/dotnet/sdk/issues/926. Align with bitness of the web site projects. --> |
| 16 | + <PlatformTarget>x86</PlatformTarget> |
| 17 | + |
| 18 | + <!-- |
| 19 | + Work around https://github.com/Microsoft/vstest/issues/428 aka https://github.com/aspnet/Mvc/issues/5873. |
| 20 | + Create the appropriate binding redirects. |
| 21 | + --> |
| 22 | + <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> |
| 23 | + <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> |
| 24 | + </PropertyGroup> |
| 25 | + |
20 | 26 | <ItemGroup>
|
21 | 27 | <Compile Include="..\Microsoft.AspNetCore.Mvc.Formatters.Xml.Test\XmlAssert.cs" />
|
22 | 28 | <EmbeddedResource Include="compiler\resources\**\*" />
|
| 29 | + |
| 30 | + <!-- |
| 31 | + Work around https://github.com/Microsoft/vstest/issues/196. Execute tests with assemblies in the bin folder, not |
| 32 | + a temporary location. Unable to find the web site project folders otherwise. |
| 33 | + --> |
23 | 34 | <None Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
|
24 | 35 | </ItemGroup>
|
25 | 36 |
|
|
62 | 73 | </ItemGroup>
|
63 | 74 |
|
64 | 75 | <!--
|
65 |
| - Our functional tests utilize DependencyContext.Load which looks next to a dll for a deps.json. For each of our test |
66 |
| - applications they need to have their corresponding deps.json placed next to their .dll in order to work. |
| 76 | + Work around https://github.com/NuGet/Home/issues/4412. MVC uses DependencyContext.Load() which looks next to a .dll |
| 77 | + for a .deps.json. Information isn't available elsewhere. Need the .deps.json file for all web site applications. |
67 | 78 | -->
|
68 | 79 | <Target Name="CopyDepsFiles" AfterTargets="Build" Condition="'$(TargetFramework)'!=''">
|
69 | 80 | <ItemGroup>
|
|
0 commit comments