File tree Expand file tree Collapse file tree 8 files changed +32
-17
lines changed
Mvc.Razor.RuntimeCompilation/src Expand file tree Collapse file tree 8 files changed +32
-17
lines changed Original file line number Diff line number Diff line change 11{
22 "sdk" : {
3- "version" : " 5.0.100-preview.2.20120.3 "
3+ "version" : " 5.0.100-preview.5.20251.2 "
44 },
55 "tools" : {
6- "dotnet" : " 5.0.100-preview.2.20120.3 " ,
6+ "dotnet" : " 5.0.100-preview.5.20251.2 " ,
77 "runtimes" : {
88 "dotnet/x64" : [
99 " $(MicrosoftNETCoreAppInternalPackageVersion)"
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
2-
32 <PropertyGroup >
43 <Description >Runtime compilation support for Razor views and Razor Pages in ASP.NET Core MVC.</Description >
54 <TargetFramework >$(DefaultNetCoreTargetFramework)</TargetFramework >
65 <NoWarn >$(NoWarn);CS1591</NoWarn >
6+
7+ <!-- !!! Temporary workaround while we switch TFMs. -->
8+ <NoWarn >$(NoWarn);NU5129</NoWarn >
9+
710 <GenerateDocumentationFile >true</GenerateDocumentationFile >
811 <PackageTags >aspnetcore;aspnetcoremvc;razor</PackageTags >
912 <IsPackable >true</IsPackable >
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
2-
32 <PropertyGroup >
43 <Description >Support for writing functional tests for MVC applications.</Description >
54 <TargetFramework >$(DefaultNetCoreTargetFramework)</TargetFramework >
65 <NoWarn >$(NoWarn);CS1591</NoWarn >
6+
7+ <!-- !!! Temporary workaround while we switch TFMs. -->
8+ <NoWarn >$(NoWarn);NU5129</NoWarn >
9+
710 <GenerateDocumentationFile >true</GenerateDocumentationFile >
811 <PackageTags >aspnetcore;aspnetcoremvc;aspnetcoremvctesting</PackageTags >
912 <IsPackable >true</IsPackable >
2124 <ItemGroup >
2225 <Content Include =" Microsoft.AspNetCore.Mvc.Testing.targets" Pack =" true" PackagePath =" build/$(TargetFramework)/" />
2326 </ItemGroup >
24-
2527</Project >
Original file line number Diff line number Diff line change 2323 </ItemGroup >
2424 </Target >
2525
26- <Target Name =" _AddContentRootForProjectReferences" BeforeTargets =" BeforeCompile " DependsOnTargets =" _ResolveMvcTestProjectReferences" >
26+ <Target Name =" _AddContentRootForProjectReferences" BeforeTargets =" GetAssemblyAttributes " DependsOnTargets =" _ResolveMvcTestProjectReferences" >
2727 <ItemGroup >
2828 <WebApplicationFactoryContentRootAttribute
2929 Condition =" '%(_ContentRootProjectReferences.Identity)' != ''"
3535 </ItemGroup >
3636
3737 <ItemGroup >
38- <AssemblyAttribute
38+ <AssemblyAttribute
3939 Condition =" '%(WebApplicationFactoryContentRootAttribute.Identity)' != '' "
4040 Include =" Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactoryContentRootAttribute" >
4141 <_Parameter1 >%(WebApplicationFactoryContentRootAttribute.AssemblyName)</_Parameter1 >
5555
5656 <Copy SourceFiles =" %(DepsFilePaths.FullPath)" DestinationFolder =" $(OutDir)" Condition =" Exists('%(DepsFilePaths.FullPath)')" />
5757 </Target >
58-
58+
5959</Project >
Original file line number Diff line number Diff line change 7070 </AssemblyAttribute >
7171 </ItemGroup >
7272
73- <Target Name =" PrepareForTest" BeforeTargets =" CoreCompile " Condition =" $(DesignTimeBuild) != true" >
73+ <Target Name =" PrepareForTest" BeforeTargets =" GetAssemblyAttributes " Condition =" $(DesignTimeBuild) != true" >
7474 <PropertyGroup >
7575 <TestTemplateCreationFolder >$([MSBuild]::NormalizePath('$(OutputPath)$(TestTemplateCreationFolder)'))</TestTemplateCreationFolder >
7676 <TestTemplateTestsProps >$(TestTemplateCreationFolder)$(TestTemplateTestsProps)</TestTemplateTestsProps >
Original file line number Diff line number Diff line change 7373 </AssemblyAttribute >
7474 </ItemGroup >
7575
76- <Target Name =" PrepareForTest" BeforeTargets =" CoreCompile " Condition =" $(DesignTimeBuild) != true" >
76+ <Target Name =" PrepareForTest" BeforeTargets =" GetAssemblyAttributes " Condition =" $(DesignTimeBuild) != true" >
7777 <PropertyGroup >
7878 <TestTemplateCreationFolder >$([MSBuild]::NormalizePath('$(OutputPath)$(TestTemplateCreationFolder)'))</TestTemplateCreationFolder >
7979 <TestTemplateTestsProps >$(TestTemplateCreationFolder)$(TestTemplateTestsProps)</TestTemplateTestsProps >
Original file line number Diff line number Diff line change 5959 </PropertyGroup >
6060 </Target >
6161
62+ <!--
63+ GenerateBuildDependencyFile creates the .deps file used here. BuildDepsJson and CoreBuild are empty targets marking
64+ the end of processes using the GenerateBuildDependencyFile target.
65+ -->
6266 <Target Name =" InjectRequestHandler"
6367 Condition =" '$(InProcessTestSite)' == 'true' AND '$(BuildIisNativeProjects)' == 'true' AND '$(TargetFrameworkIdentifier)' != '.NETFramework'"
64- AfterTargets = " GenerateBuildDependencyFile "
65- DependsOnTargets =" PrepareInjectionApp" >
68+ BeforeTargets = " BuildDepsJson;CoreBuild "
69+ DependsOnTargets =" GenerateBuildDependencyFile; PrepareInjectionApp" >
6670 <Exec Command =" $(InjectDepsApp) " $(ProjectDepsFilePath)" $(RuntimeIdentifier) " />
6771 </Target >
6872
73+ <!--
74+ GeneratePublishDependencyFile creates an intermediate .deps file copied soon after into the publish folder.
75+ CopyFilesToPublishDirectory is an empty target marking the end of all copies into the publish folder, including the
76+ .deps file and native assets. Publish is an empty target marking the end of the entire process.
77+ (GenerateSingleFileBundle also uses the intermediate .desp file but only in single-file publish cases ignored here.)
78+ -->
6979 <Target Name =" InjectRequestHandlerOnPublish"
7080 Condition =" '$(InProcessTestSite)' == 'true' AND '$(BuildIisNativeProjects)' == 'true' AND '$(TargetFrameworkIdentifier)' != '.NETFramework'"
71- AfterTargets = " GeneratePublishDependencyFile "
72- DependsOnTargets =" PrepareInjectionApp" >
81+ BeforeTargets = " Publish "
82+ DependsOnTargets =" GeneratePublishDependencyFile;CopyFilesToPublishDirectory; PrepareInjectionApp" >
7383 <Exec Command =" $(InjectDepsApp) " $(PublishDepsFilePath)" $(RuntimeIdentifier) " />
7484 </Target >
7585
Original file line number Diff line number Diff line change 7777 </ItemGroup >
7878 </Target >
7979
80- <Target Name =" _AddTestProjectMetadataAttributes" BeforeTargets =" BeforeCompile " DependsOnTargets =" _ResolveTestProjectReferences" >
80+ <Target Name =" _AddTestProjectMetadataAttributes" BeforeTargets =" GetAssemblyAttributes " DependsOnTargets =" _ResolveTestProjectReferences" >
8181 <ItemGroup >
8282 <_ContentRootMetadata
8383 Condition =" '%(_ContentRootProjectReferences.Identity)' != ''"
9898 </ItemGroup >
9999 </Target >
100100
101- <Target Name =" _AddSeleniumSupportedMetadataAttribute" BeforeTargets =" BeforeCompile " >
101+ <Target Name =" _AddSeleniumSupportedMetadataAttribute" BeforeTargets =" GetAssemblyAttributes " >
102102 <PropertyGroup >
103103 <_SeleniumE2ETestsSupportedAttributeValue >false</_SeleniumE2ETestsSupportedAttributeValue >
104104 <_SeleniumE2ETestsSupportedAttributeValue Condition =" '$(SeleniumE2ETestsSupported)' == 'true'" >true</_SeleniumE2ETestsSupportedAttributeValue >
118118 </ItemGroup >
119119 </Target >
120120
121- <Target Name =" _AddProcessTrackingMetadataAttribute" BeforeTargets =" BeforeCompile " >
121+ <Target Name =" _AddProcessTrackingMetadataAttribute" BeforeTargets =" GetAssemblyAttributes " >
122122 <MakeDir Directories =" $(SeleniumProcessTrackingFolder)" />
123123 <ItemGroup >
124124 <AssemblyAttribute
You can’t perform that action at this time.
0 commit comments