|
1 |
| -<Project Sdk="Microsoft.NET.Sdk"> |
| 1 | +<Project> |
| 2 | + <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" /> |
2 | 3 | <Import Project="..\..\build\assets.props" />
|
3 | 4 |
|
4 | 5 | <PropertyGroup>
|
5 | 6 | <TargetFramework>netcoreapp3.0</TargetFramework>
|
| 7 | + <PackageId>$(MSBuildProjectName).$(TargetRuntimeIdentifier)</PackageId> |
6 | 8 | <IncludeBuildOutput>true</IncludeBuildOutput>
|
7 | 9 | <IsPackable>$(PackNativeAssets)</IsPackable>
|
8 | 10 | <IsShippingPackage>false</IsShippingPackage>
|
9 | 11 | <BuildOutputTargetFolder>runtimes/$(TargetRuntimeIdentifier)/native/</BuildOutputTargetFolder>
|
| 12 | + <RuntimeIdentifier>$(TargetRuntimeIdentifier)</RuntimeIdentifier> |
| 13 | + <DebugType>none</DebugType> |
| 14 | + <CopyBuildOutputToOutputDirectory>false</CopyBuildOutputToOutputDirectory> |
| 15 | + <GenerateDocumentationFile>false</GenerateDocumentationFile> |
| 16 | + <HasReferenceAssembly>false</HasReferenceAssembly> |
10 | 17 | <TargetsForTfmSpecificBuildOutput>
|
11 | 18 | $(TargetsForTfmSpecificBuildOutput);
|
12 | 19 | AddPackNativeComponents
|
13 | 20 | </TargetsForTfmSpecificBuildOutput>
|
14 |
| - <PackageId>$(MSBuildProjectName).$(TargetRuntimeIdentifier)</PackageId> |
15 | 21 | </PropertyGroup>
|
16 | 22 |
|
17 | 23 | <ItemGroup Condition="'$(BuildIisNativeProjects)' == 'true' AND '$(VCTargetsPath)' != ''">
|
|
22 | 28 | <Target Name="AddPackNativeComponents" AfterTargets="_CalculateInputsOutputsForPack" Condition="'$(BuildIisNativeProjects)' == 'true' AND '$(PackNativeAssets)' == 'true'">
|
23 | 29 | <ItemGroup>
|
24 | 30 | <!-- RunShimComponents is based on the current runtime (NativePlatform) which should be the same as TargetRuntimeIdentifier -->
|
25 |
| - <BuiltProjectOutputGroupOutput Remove="@(BuiltProjectOutputGroupOutput)" /> |
26 |
| - <DebugSymbolsProjectOutputGroupOutput Remove="@(DebugSymbolsProjectOutputGroupOutput)" /> |
27 | 31 | <BuiltProjectOutputGroupOutput Include="%(RunShimComponents.DllLocation)" />
|
28 | 32 | <BuiltProjectOutputGroupOutput Include="%(RunShimComponents.PdbLocation)" />
|
29 |
| - |
| 33 | + |
30 | 34 | <NuGetPackInput Include="@(BuiltProjectOutputGroupOutput)" />
|
31 | 35 | </ItemGroup>
|
32 | 36 | </Target>
|
| 37 | + <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" /> |
33 | 38 |
|
34 | 39 | <!-- This project does not produce a binary. Disable the compiler. -->
|
35 |
| - <Target Name="Compile" /> |
36 |
| - <Target Name="CopyFilesToOutputDirectory" /> |
| 40 | + <Target Name="CoreCompile" /> |
| 41 | + <ItemGroup> |
| 42 | + <BuiltProjectOutputGroupKeyOutput Remove="@(BuiltProjectOutputGroupKeyOutput)" /> |
| 43 | + </ItemGroup> |
37 | 44 | </Project>
|
0 commit comments