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 1
1
{
2
2
"sdk" : {
3
- "version" : " 5.0.100-preview.2.20120.3 "
3
+ "version" : " 5.0.100-preview.5.20251.2 "
4
4
},
5
5
"tools" : {
6
- "dotnet" : " 5.0.100-preview.2.20120.3 " ,
6
+ "dotnet" : " 5.0.100-preview.5.20251.2 " ,
7
7
"runtimes" : {
8
8
"dotnet/x64" : [
9
9
" $(MicrosoftNETCoreAppInternalPackageVersion)"
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
-
3
2
<PropertyGroup >
4
3
<Description >Runtime compilation support for Razor views and Razor Pages in ASP.NET Core MVC.</Description >
5
4
<TargetFramework >$(DefaultNetCoreTargetFramework)</TargetFramework >
6
5
<NoWarn >$(NoWarn);CS1591</NoWarn >
6
+
7
+ <!-- !!! Temporary workaround while we switch TFMs. -->
8
+ <NoWarn >$(NoWarn);NU5129</NoWarn >
9
+
7
10
<GenerateDocumentationFile >true</GenerateDocumentationFile >
8
11
<PackageTags >aspnetcore;aspnetcoremvc;razor</PackageTags >
9
12
<IsPackable >true</IsPackable >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
-
3
2
<PropertyGroup >
4
3
<Description >Support for writing functional tests for MVC applications.</Description >
5
4
<TargetFramework >$(DefaultNetCoreTargetFramework)</TargetFramework >
6
5
<NoWarn >$(NoWarn);CS1591</NoWarn >
6
+
7
+ <!-- !!! Temporary workaround while we switch TFMs. -->
8
+ <NoWarn >$(NoWarn);NU5129</NoWarn >
9
+
7
10
<GenerateDocumentationFile >true</GenerateDocumentationFile >
8
11
<PackageTags >aspnetcore;aspnetcoremvc;aspnetcoremvctesting</PackageTags >
9
12
<IsPackable >true</IsPackable >
21
24
<ItemGroup >
22
25
<Content Include =" Microsoft.AspNetCore.Mvc.Testing.targets" Pack =" true" PackagePath =" build/$(TargetFramework)/" />
23
26
</ItemGroup >
24
-
25
27
</Project >
Original file line number Diff line number Diff line change 23
23
</ItemGroup >
24
24
</Target >
25
25
26
- <Target Name =" _AddContentRootForProjectReferences" BeforeTargets =" BeforeCompile " DependsOnTargets =" _ResolveMvcTestProjectReferences" >
26
+ <Target Name =" _AddContentRootForProjectReferences" BeforeTargets =" GetAssemblyAttributes " DependsOnTargets =" _ResolveMvcTestProjectReferences" >
27
27
<ItemGroup >
28
28
<WebApplicationFactoryContentRootAttribute
29
29
Condition =" '%(_ContentRootProjectReferences.Identity)' != ''"
35
35
</ItemGroup >
36
36
37
37
<ItemGroup >
38
- <AssemblyAttribute
38
+ <AssemblyAttribute
39
39
Condition =" '%(WebApplicationFactoryContentRootAttribute.Identity)' != '' "
40
40
Include =" Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactoryContentRootAttribute" >
41
41
<_Parameter1 >%(WebApplicationFactoryContentRootAttribute.AssemblyName)</_Parameter1 >
55
55
56
56
<Copy SourceFiles =" %(DepsFilePaths.FullPath)" DestinationFolder =" $(OutDir)" Condition =" Exists('%(DepsFilePaths.FullPath)')" />
57
57
</Target >
58
-
58
+
59
59
</Project >
Original file line number Diff line number Diff line change 70
70
</AssemblyAttribute >
71
71
</ItemGroup >
72
72
73
- <Target Name =" PrepareForTest" BeforeTargets =" CoreCompile " Condition =" $(DesignTimeBuild) != true" >
73
+ <Target Name =" PrepareForTest" BeforeTargets =" GetAssemblyAttributes " Condition =" $(DesignTimeBuild) != true" >
74
74
<PropertyGroup >
75
75
<TestTemplateCreationFolder >$([MSBuild]::NormalizePath('$(OutputPath)$(TestTemplateCreationFolder)'))</TestTemplateCreationFolder >
76
76
<TestTemplateTestsProps >$(TestTemplateCreationFolder)$(TestTemplateTestsProps)</TestTemplateTestsProps >
Original file line number Diff line number Diff line change 73
73
</AssemblyAttribute >
74
74
</ItemGroup >
75
75
76
- <Target Name =" PrepareForTest" BeforeTargets =" CoreCompile " Condition =" $(DesignTimeBuild) != true" >
76
+ <Target Name =" PrepareForTest" BeforeTargets =" GetAssemblyAttributes " Condition =" $(DesignTimeBuild) != true" >
77
77
<PropertyGroup >
78
78
<TestTemplateCreationFolder >$([MSBuild]::NormalizePath('$(OutputPath)$(TestTemplateCreationFolder)'))</TestTemplateCreationFolder >
79
79
<TestTemplateTestsProps >$(TestTemplateCreationFolder)$(TestTemplateTestsProps)</TestTemplateTestsProps >
Original file line number Diff line number Diff line change 59
59
</PropertyGroup >
60
60
</Target >
61
61
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
+ -->
62
66
<Target Name =" InjectRequestHandler"
63
67
Condition =" '$(InProcessTestSite)' == 'true' AND '$(BuildIisNativeProjects)' == 'true' AND '$(TargetFrameworkIdentifier)' != '.NETFramework'"
64
- AfterTargets = " GenerateBuildDependencyFile "
65
- DependsOnTargets =" PrepareInjectionApp" >
68
+ BeforeTargets = " BuildDepsJson;CoreBuild "
69
+ DependsOnTargets =" GenerateBuildDependencyFile; PrepareInjectionApp" >
66
70
<Exec Command =" $(InjectDepsApp) " $(ProjectDepsFilePath)" $(RuntimeIdentifier) " />
67
71
</Target >
68
72
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
+ -->
69
79
<Target Name =" InjectRequestHandlerOnPublish"
70
80
Condition =" '$(InProcessTestSite)' == 'true' AND '$(BuildIisNativeProjects)' == 'true' AND '$(TargetFrameworkIdentifier)' != '.NETFramework'"
71
- AfterTargets = " GeneratePublishDependencyFile "
72
- DependsOnTargets =" PrepareInjectionApp" >
81
+ BeforeTargets = " Publish "
82
+ DependsOnTargets =" GeneratePublishDependencyFile;CopyFilesToPublishDirectory; PrepareInjectionApp" >
73
83
<Exec Command =" $(InjectDepsApp) " $(PublishDepsFilePath)" $(RuntimeIdentifier) " />
74
84
</Target >
75
85
Original file line number Diff line number Diff line change 77
77
</ItemGroup >
78
78
</Target >
79
79
80
- <Target Name =" _AddTestProjectMetadataAttributes" BeforeTargets =" BeforeCompile " DependsOnTargets =" _ResolveTestProjectReferences" >
80
+ <Target Name =" _AddTestProjectMetadataAttributes" BeforeTargets =" GetAssemblyAttributes " DependsOnTargets =" _ResolveTestProjectReferences" >
81
81
<ItemGroup >
82
82
<_ContentRootMetadata
83
83
Condition =" '%(_ContentRootProjectReferences.Identity)' != ''"
98
98
</ItemGroup >
99
99
</Target >
100
100
101
- <Target Name =" _AddSeleniumSupportedMetadataAttribute" BeforeTargets =" BeforeCompile " >
101
+ <Target Name =" _AddSeleniumSupportedMetadataAttribute" BeforeTargets =" GetAssemblyAttributes " >
102
102
<PropertyGroup >
103
103
<_SeleniumE2ETestsSupportedAttributeValue >false</_SeleniumE2ETestsSupportedAttributeValue >
104
104
<_SeleniumE2ETestsSupportedAttributeValue Condition =" '$(SeleniumE2ETestsSupported)' == 'true'" >true</_SeleniumE2ETestsSupportedAttributeValue >
118
118
</ItemGroup >
119
119
</Target >
120
120
121
- <Target Name =" _AddProcessTrackingMetadataAttribute" BeforeTargets =" BeforeCompile " >
121
+ <Target Name =" _AddProcessTrackingMetadataAttribute" BeforeTargets =" GetAssemblyAttributes " >
122
122
<MakeDir Directories =" $(SeleniumProcessTrackingFolder)" />
123
123
<ItemGroup >
124
124
<AssemblyAttribute
You can’t perform that action at this time.
0 commit comments