82 lines
3.8 KiB
XML
82 lines
3.8 KiB
XML
<Project>
|
|
|
|
<PropertyGroup>
|
|
<RuntimeIdentifiers>win7-x64;win7-x86</RuntimeIdentifiers>
|
|
<Platforms>x64;x86</Platforms>
|
|
<IISExpressAppHostConfig>$(MSBuildThisFileDirectory)applicationhost.config</IISExpressAppHostConfig>
|
|
<IISAppHostConfig>$(MSBuildThisFileDirectory)applicationhost.iis.config</IISAppHostConfig>
|
|
<PreserveCompilationContext>false</PreserveCompilationContext>
|
|
<DisableFastUpToDateCheck>True</DisableFastUpToDateCheck>
|
|
</PropertyGroup>
|
|
|
|
<Import Project="assets.props" />
|
|
|
|
<PropertyGroup Condition="'$(NativePlatform)' == 'x86'">
|
|
<IISExpressPath>$(MSBuildProgramFiles32)\IIS Express\iisexpress.exe</IISExpressPath>
|
|
<IISPath>$(SystemRoot)\SysWOW64\inetsrv\w3wp.exe</IISPath>
|
|
<NativeFolder>Win32</NativeFolder>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(NativePlatform)' == 'x64'">
|
|
<IISExpressPath>$(ProgramW6432)\IIS Express\iisexpress.exe</IISExpressPath>
|
|
<IISPath>$(SystemRoot)\System32\inetsrv\w3wp.exe</IISPath>
|
|
<NativeFolder>x64</NativeFolder>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<!-- For standalone publish, all dlls are flattened to the same folder.
|
|
Set the base path to the request handler
|
|
-->
|
|
<BasePathForRequestHandler Condition="'$(RuntimeIdentifier)' == ''">$(NativePlatform)\</BasePathForRequestHandler>
|
|
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<IISExpressArguments>/config:"$(IISExpressAppHostConfig)" /systray:false</IISExpressArguments>
|
|
<IISArguments>-h "$(IISAppHostConfig)"</IISArguments>
|
|
|
|
<AncmInProcessRHPath>aspnetcorev2_inprocess.dll</AncmInProcessRHPath>
|
|
<DotNetPath>$(userprofile)\.dotnet\$(NativePlatform)\dotnet.exe</DotNetPath>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="CopyLaunchSettings" AfterTargets="CoreBuild">
|
|
<!-- This would always override launch settings files in test projects by the default one -->
|
|
<Copy SourceFiles="$(MSBuildThisFileDirectory)launchSettings.json" DestinationFolder="$(MSBuildProjectDirectory)\Properties" SkipUnchangedFiles="true" />
|
|
</Target>
|
|
|
|
<!-- Deps file injection-->
|
|
<ItemGroup Condition="('$(InProcessTestSite)' == 'true') AND ('$(ReferenceTestTasks)' != 'false')">
|
|
<ProjectReference Include="$(MSBuildThisFileDirectory)..\test\TestTasks\TestTasks.csproj">
|
|
<ReferenceOutputAssembly>False</ReferenceOutputAssembly>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
|
|
<Target Name="PrepareInjectionApp" Condition="'$(InProcessTestSite)' == 'true'">
|
|
<PropertyGroup>
|
|
<InjectDepsAssembly>$(MSBuildThisFileDirectory)..\test\TestTasks\bin\$(Configuration)\$(TargetFramework)\TestTasks</InjectDepsAssembly>
|
|
<InjectDepsApp Condition="'$(TargetFramework)' == 'net461'">$(InjectDepsAssembly)</InjectDepsApp>
|
|
<InjectDepsArguments>"win7-$(NativePlatform)" "$(AncmInProcessRHPath)"</InjectDepsArguments>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(TargetFramework)' == 'net461'">
|
|
<InjectDepsAssembly>$(InjectDepsAssembly).exe</InjectDepsAssembly>
|
|
<InjectDepsApp>$(InjectDepsAssembly)</InjectDepsApp>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(TargetFramework)' != 'net461'">
|
|
<InjectDepsAssembly>$(InjectDepsAssembly).dll</InjectDepsAssembly>
|
|
<InjectDepsApp>dotnet</InjectDepsApp>
|
|
<InjectDepsArguments>$(InjectDepsAssembly) $(InjectDepsArguments)</InjectDepsArguments>
|
|
</PropertyGroup>
|
|
</Target>
|
|
|
|
<Target Name="InjectRequestHandler" AfterTargets="GenerateBuildDependencyFile" DependsOnTargets="PrepareInjectionApp" Condition="'$(InProcessTestSite)' == 'true'">
|
|
<Exec Command="$(InjectDepsApp) $(InjectDepsArguments) "$(ProjectDepsFilePath)"" />
|
|
</Target>
|
|
|
|
<Target Name="InjectRequestHandlerOnPublish" AfterTargets="GeneratePublishDependencyFile" DependsOnTargets="PrepareInjectionApp" Condition="'$(InProcessTestSite)' == 'true'">
|
|
<Exec Command="$(InjectDepsApp) $(InjectDepsArguments) "$(PublishDepsFilePath)"" />
|
|
</Target>
|
|
|
|
</Project>
|