|
33 | 33 |
|
34 | 34 | <PropertyGroup>
|
35 | 35 | <ResolveAssemblyReferencesDependsOn>
|
36 |
| - ResolveMicrosoftNetCoreAppReferences; |
37 |
| - ResolveMicrosoftWindowsDesktopAppReferences; |
38 | 36 | ResolveMicrosoftDotNetWpfGitHubReferences;
|
39 | 37 | ResolveWinFormsReferences;
|
40 | 38 | $(ResolveAssemblyReferencesDependsOn)
|
41 | 39 | </ResolveAssemblyReferencesDependsOn>
|
42 | 40 | </PropertyGroup>
|
43 | 41 |
|
44 |
| - <Target |
45 |
| - Name="ResolveMicrosoftNetCoreAppReferences" |
46 |
| - Returns="@(Reference)" |
47 |
| - Condition="'$(PkgMicrosoft_NETCore_App)'!='' And '@(NetCoreReference)'!='' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp' And ('$(TargetFrameworkVersion)' == 'v3.0' Or '$(TargetFrameworkVersion)' == 'v3.1') and '$(DoNotLimitMicrosoftNetCoreReferences)'!='true'"> |
48 |
| - <!-- |
49 |
| - In your project, Add a references to assemblies from Microsoft.NETCore.App like this |
50 |
| - <ItemGroup> |
51 |
| - <NetCoreReference Include="netstandard" /> |
52 |
| - <NetCoreReference Include="System.IO" /> |
53 |
| - </ItemGroup> |
54 |
| - |
55 |
| - It will get translated into something like this: |
56 |
| - <ItemGroup> |
57 |
| - <Reference Include="C:\Users\username\.nuget\packages\microsoft.netcore.app\3.0.0-preview5-27609-17\ref\netcoreapp3.0\netstandard.dll" /> |
58 |
| - <Reference Include="C:\Users\username\.nuget\packages\microsoft.netcore.app\3.0.0-preview5-27609-17\ref\netcoreapp3.0\System.IO.dll" /> |
59 |
| - </ItemGroup> |
60 |
| - --> |
61 |
| - <ItemGroup> |
62 |
| - <Reference Include="$(PkgMicrosoft_NETCore_App)\ref\$(TargetFramework)\%(NetCoreReference.Identity).dll" |
63 |
| - Condition="Exists('$(PkgMicrosoft_NETCore_App)\ref\$(TargetFramework)\%(NetCoreReference.Identity).dll')" > |
64 |
| - <NuGetPackageId>Microsoft.NetCore.App</NuGetPackageId> |
65 |
| - </Reference> |
66 |
| - </ItemGroup> |
67 |
| - </Target> |
68 |
| - |
69 | 42 |
|
70 | 43 | <Target
|
71 | 44 | Name="LimitNetCoreAppReferences"
|
72 |
| - AfterTargets="ResolveTargetingPacks" |
| 45 | + AfterTargets="ResolveTargetingPackAssets;ResolveTargetingPacks" |
73 | 46 | Returns="@(Reference)"
|
74 |
| - Condition="'$(PkgMicrosoft_NETCore_App)'!='' And '@(NetCoreReference)' != '' And '@(Reference)' != ''"> |
| 47 | + Condition="'@(NetCoreReference)' != '' And '@(Reference)' != ''"> |
75 | 48 | <!--
|
76 | 49 | Example
|
77 | 50 | <NetCoreReference Include="Microsoft.CSharp" />
|
|
105 | 78 | </ItemGroup>
|
106 | 79 | </Target>
|
107 | 80 |
|
108 |
| - <Target Name="ResolveMicrosoftWindowsDesktopAppReferences" |
109 |
| - Returns="@(Reference)" |
110 |
| - Condition="'$(PkgMicrosoft_WindowsDesktop_App)'!='' And '@(WindowsDesktopAppReference)'!='' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp' And ('$(TargetFrameworkVersion)' == 'v3.0' Or '$(TargetFrameworkVersion)' == 'v3.1') and '$(DoNotLimitWindowsDesktopAppReferences)'!='true'"> |
111 |
| - <!-- |
112 |
| - In your project, Add a references to assemblies from Microsoft.NETCore.App like this |
113 |
| - <ItemGroup> |
114 |
| - <WindowsDesktopAppeference Include="PresentationCore" /> |
115 |
| - <WindowsDesktopAppeference Include="System.Xaml" /> |
116 |
| - </ItemGroup> |
117 |
| - --> |
118 |
| - <ItemGroup> |
119 |
| - <Reference Include="$(PkgMicrosoft_WindowsDesktop_App)\ref\$(TargetFramework)\%(NetCoreReference.Identity).dll" |
120 |
| - Condition="Exists('$(PkgMicrosoft_WindowsDesktop_App)\ref\$(TargetFramework)\%(NetCoreReference.Identity).dll')"> |
121 |
| - <NuGetPackageId>Microsoft.WindowsDesktop.App</NuGetPackageId> |
122 |
| - </Reference> |
123 |
| - </ItemGroup> |
124 |
| - </Target> |
125 |
| - |
126 | 81 | <Target Name="LimitWindowsDesktopAppReferences"
|
127 |
| - AfterTargets="ResolveTargetingPacks" |
| 82 | + AfterTargets="ResolveTargetingPacks;ResolveTargetingPackAsssets" |
128 | 83 | Returns="@(Reference)"
|
129 |
| - Condition="'$(PkgMicrosoft_WindowsDesktop_App)'!='' And '@(WindowsDesktopReference)'!='' and '@(Reference)' != ''"> |
| 84 | + Condition="'@(WindowsDesktopReference)'!='' and '@(Reference)' != ''"> |
130 | 85 | <!--
|
131 | 86 | Example
|
132 | 87 | <WindowsDesktopReference Include="PresentationCore" />
|
|
0 commit comments