-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Improve project reference consistency #37338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3d5202a
6acca56
248d2ab
6c4bdcf
0197a05
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,9 +28,8 @@ | |
<!-- We include this here to ensure that the shared framework is built before we leverage it when running | ||
the dev server. --> | ||
<ItemGroup> | ||
<ProjectReference | ||
Include="$(RepoRoot)src\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.csproj" | ||
PrivateAssets="All" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
<ProjectReference Include="$(RepoRoot)src\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.csproj" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a nit but I'm tempted to make Microsoft.AspNetCore.App.Ref and Microsoft.AspNetCore.App.Runtime project reference providers and add errors when they're |
||
Private="false" | ||
ReferenceOutputAssembly="false" | ||
SkipGetTargetFrameworkProperties="true" /> | ||
</ItemGroup> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,12 @@ | |
<Reference Include="Microsoft.Extensions.Logging" /> | ||
<Reference Include="Microsoft.JSInterop.WebAssembly" /> | ||
|
||
<ProjectReference Include="..\..\..\Web.JS\Microsoft.AspNetCore.Components.Web.JS.npmproj" ReferenceOutputAssemblies="false" SkipGetTargetFrameworkProperties="true" UndefineProperties="TargetFramework" Private="false" Condition="'$(BuildNodeJS)' != 'false' and '$(BuildingInsideVisualStudio)' != 'true'" /> | ||
<ProjectReference Include="..\..\..\Web.JS\Microsoft.AspNetCore.Components.Web.JS.npmproj" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly, could make the |
||
Condition="'$(BuildNodeJS)' != 'false' and '$(BuildingInsideVisualStudio)' != 'true'" | ||
Private="false" | ||
ReferenceOutputAssembly="false" | ||
SkipGetTargetFrameworkProperties="true" | ||
UndefineProperties="TargetFramework" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,11 +19,10 @@ | |
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Reference | ||
Include="Microsoft.AspNetCore.Mvc.Testing.Tasks" | ||
ReferenceOutputAssembly="false" | ||
SkipGetTargetFrameworkProperties="true" | ||
UndefineProperties="TargetFramework;TargetFrameworks;RuntimeIdentifier;PublishDir" /> | ||
<Reference Include="Microsoft.AspNetCore.Mvc.Testing.Tasks" | ||
Private="false" | ||
ReferenceOutputAssembly="false" | ||
SkipGetTargetFrameworkProperties="true" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TFM here is |
||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,15 +25,15 @@ | |
<HostingStartupRuntimeStoreTargets Include="$(DefaultNetCoreTargetFramework)" Runtime="$(TargetRuntimeIdentifier)" /> | ||
|
||
<ProjectReference Include="..\..\Framework\App.Ref\src\Microsoft.AspNetCore.App.Ref.csproj" | ||
Condition=" $(IsTargetingPackBuilding) "> | ||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly> | ||
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties> | ||
</ProjectReference> | ||
Condition=" $(IsTargetingPackBuilding) " | ||
Private="false" | ||
ReferenceOutputAssembly="false" | ||
SkipGetTargetFrameworkProperties="true" /> | ||
<ProjectReference Include="..\..\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.csproj" | ||
Condition=" !$(IsTargetingPackBuilding) "> | ||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly> | ||
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties> | ||
</ProjectReference> | ||
Condition=" !$(IsTargetingPackBuilding) " | ||
Private="false" | ||
ReferenceOutputAssembly="false" | ||
SkipGetTargetFrameworkProperties="true" /> | ||
</ItemGroup> | ||
Comment on lines
27
to
37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TFM here is |
||
|
||
<!-- Cannot assume this project and Microsoft.AspNetCore.AzureAppServices.HostingStartup have the same package version. --> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,13 +28,16 @@ | |
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Microsoft.Web.Xdt.Extensions\src\Microsoft.Web.Xdt.Extensions.csproj" PrivateAssets="All" ReferenceOutputAssembly="False"/> | ||
<ProjectReference Include="..\Microsoft.Web.Xdt.Extensions\src\Microsoft.Web.Xdt.Extensions.csproj" | ||
Private="false" | ||
ReferenceOutputAssembly="false" | ||
SkipGetTargetFrameworkProperties="true" /> | ||
|
||
<!-- Make sure redist folder is built and ready --> | ||
<ProjectReference Include="..\..\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.csproj"> | ||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly> | ||
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties> | ||
</ProjectReference> | ||
<ProjectReference Include="..\..\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.csproj" | ||
Private="false" | ||
ReferenceOutputAssembly="false" | ||
SkipGetTargetFrameworkProperties="true" /> | ||
Comment on lines
-34
to
+40
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TFM here is |
||
|
||
<NativeProjectReference Include="$(RepoRoot)src\Servers\IIS\AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj" Platform="$(TargetArchitecture)" /> | ||
<NativeProjectReference Include="$(RepoRoot)src\Servers\IIS\AspNetCoreModuleV2\OutOfProcessRequestHandler\OutOfProcessRequestHandler.vcxproj" HandlerPath="2.0.0" Platform="$(TargetArchitecture)" /> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,12 +19,16 @@ | |
because publish output matches what was built. | ||
--> | ||
<Reference Include="dotnet-getdocument" | ||
Targets="Publish" | ||
ReferenceOutputAssembly="false" | ||
SkipGetTargetFrameworkProperties="true" | ||
UndefineProperties="TargetFramework;TargetFrameworks;RuntimeIdentifier;PublishDir" /> | ||
<Reference Include="GetDocument.Insider" ReferenceOutputAssembly="false"> | ||
<Targets Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">Publish</Targets> | ||
Condition=" '$(TargetFramework)' == 'netcoreapp2.1' " | ||
Targets="Publish" | ||
Private="false" | ||
ReferenceOutputAssembly="false" | ||
SkipGetTargetFrameworkProperties="true" /> | ||
<Reference Include="GetDocument.Insider" | ||
Private="false" | ||
ReferenceOutputAssembly="false" | ||
SkipGetTargetFrameworkProperties="true"> | ||
<Targets Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">Publish</Targets> | ||
Comment on lines
+27
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This project and GetDocument.Insider both multi-target but their TFM sets are identical. But, this is the only case where this PR adds |
||
</Reference> | ||
</ItemGroup> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least we got the spelling right, even if the metadata was ignored 😁