-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorkleap.OpenApi.MSBuild.csproj
More file actions
52 lines (42 loc) · 2.92 KB
/
Copy pathWorkleap.OpenApi.MSBuild.csproj
File metadata and controls
52 lines (42 loc) · 2.92 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<IsPackable>true</IsPackable>
<PackageReadmeFile>README.md</PackageReadmeFile>
<IncludeBuildOutput>false</IncludeBuildOutput>
<DevelopmentDependency>true</DevelopmentDependency>
<!-- Copied all dependencies in the output folder, so we can add them to the "tools\task" folder -->
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<!--
MSBuild task packages must include all dependencies in their package structure.
Using PrivateAssets="all" prevents these dependencies from appearing in the .nuspec file (implicitly generated when using `dotnet pack`),
which ensures they won't be automatically restored by NuGet when the package is installed.
Instead, we manually copy all dependency DLLs into the "tools\task" folder (see PackagePath below),
so the MSBuild task can load them directly at build time without requiring separate NuGet restoration.
This is different from regular .NET libraries where NuGet automatically restores dependencies.
-->
<PackageReference Include="CliWrap" Version="3.9.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="18.0.2" PrivateAssets="all" />
<PackageReference Include="YamlDotNet" Version="16.3.0" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\README.md" Link="README.md" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<!-- https://docs.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu5128#solution-1 -->
<None Include="_._" Pack="true" PackagePath="lib\$(TargetFramework)" />
<None Include="msbuild\tools\*.*" Pack="true" PackagePath="tools" />
<None Include="msbuild\build\*.*" Pack="true" PackagePath="build" />
<None Include="msbuild\buildMultiTargeting\*.*" Pack="true" PackagePath="buildMultiTargeting" />
<!-- Copy our task build output including its dependencies to our custom task directory -->
<!-- Contrary to usual .NET NuGet packages which restores its dependencies at installation, a MSBuild task package must include its dependencies -->
<None Include="bin\$(Configuration)\$(TargetFramework)\**\*" Pack="true" PackagePath="tools\task" Visible="false" />
</ItemGroup>
<ItemGroup>
<!-- Exposes internal symbols to test projects and mocking libraries -->
<InternalsVisibleTo Include="Workleap.OpenApi.MSBuild.Tests" />
<InternalsVisibleTo Include="DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7" />
</ItemGroup>
</Project>