Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktor Hofer <viktor.hofer@microsoft.com>2022-02-14 21:18:50 +0300
committerGitHub <noreply@github.com>2022-02-14 21:18:50 +0300
commit956c1250a97d7a237fd811608c591efbbc3ff61f (patch)
treec63376d814ef01312e3e57f0a85d9fbbaf94fefa /eng/slngen.targets
parentce13258b04df862e4a2cd8a36045fa7491414d10 (diff)
Respect single targetframeworks in slngen.targets (#65248)
Now that projects have have single target framework values via the `<TargetFramework>` property, the slngen logic that excludes a reference project from a solution, if it isn't necessary to be included, must be updated.
Diffstat (limited to 'eng/slngen.targets')
-rw-r--r--eng/slngen.targets2
1 files changed, 1 insertions, 1 deletions
diff --git a/eng/slngen.targets b/eng/slngen.targets
index 0747113bd3f..4b68c388938 100644
--- a/eng/slngen.targets
+++ b/eng/slngen.targets
@@ -8,7 +8,7 @@
<!-- Don't include reference projects which compose the microsoft.netcore.app targeting pack (except the current leaf's reference project) as those are referenced by the source project via named references
and hence don't need to be part of the solution file (only P2Ps need to).
Include the reference project in the solution file if it targets more than just NetCoreAppCurrent as other frameworks like .NETFramework, .NETStandard or older .NETCoreApp ones require it. -->
- <IncludeInSolutionFile Condition="'$(IsNETCoreAppRef)' == 'true' and '$(MSBuildProjectName)' != '$(SlnGenMainProject)' and '$(TargetFrameworks)' == '$(NetCoreAppCurrent)'">false</IncludeInSolutionFile>
+ <IncludeInSolutionFile Condition="'$(IsNETCoreAppRef)' == 'true' and '$(MSBuildProjectName)' != '$(SlnGenMainProject)' and '$(TargetFramework)' == '$(NetCoreAppCurrent)' and ('$(TargetFrameworks)' == '' or '$(TargetFrameworks)' == '$(NetCoreAppCurrent)')">false</IncludeInSolutionFile>
</PropertyGroup>
<ItemGroup>
<SlnGenCustomProjectTypeGuid Include=".ilproj" ProjectTypeGuid="{9A19103F-16F7-4668-BE54-9A1E7A4F7556}" />