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

MonoDevelop.AfterCommon.targets « msbuild « main - github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 35d38812ce452f4c10482a42c5f2c8d99684facd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	<PropertyGroup>
		<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
	</PropertyGroup>

	<Import Project="$(MSBuildThisFileDirectory)\GenerateInternalsVisibleTo.targets" />
	<Import Project="$(MSBuildThisFileDirectory)\MDBuildTasks.targets" />


	<!--
	Disable transitive project references in SDK style projects.

	Right now, if project B has a private (i.e. the default) project reference to project A
	and project project C has a *non-private* ref to project B, project C will transitively
	get a *private ref* to project A.

	This seems very wrong, and is very much NOT what we want.

	Extensions reference each other with non-private refs so we only get one copy of
	each dll in the app. This breaks that.

	Setting PrivateAssets="runtime,contentFiles" on the private reference does NOT
	fix it, hence this horrible hack.

	https://github.com/dotnet/sdk/issues/1366

	-->
	<Target Name="_MakeTransitiveProjectRefsNonPrivate" AfterTargets="IncludeTransitiveProjectReferences">
		<ItemGroup>
			<!-- remove the transitive project references and re-add them as non-private project references -->
			<ProjectReference Remove="@(_TransitiveProjectReferences)" />
			<ProjectReference Include="@(_TransitiveProjectReferences)" Private="False" />
		</ItemGroup>
	</Target>
</Project>