-
-
Notifications
You must be signed in to change notification settings - Fork 781
Expand file tree
/
Copy pathRefit.csproj
More file actions
52 lines (41 loc) · 2.9 KB
/
Refit.csproj
File metadata and controls
52 lines (41 loc) · 2.9 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>
<Product>Refit ($(TargetFramework))</Product>
<TargetFrameworks>$(RefitTargets)</TargetFrameworks>
<GenerateDocumentationFile Condition=" '$(Configuration)' == 'Release' ">true</GenerateDocumentationFile>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup Condition="$(TargetFramework.StartsWith('net8.0')) or $(TargetFramework.StartsWith('net9.0')) or $(TargetFramework.StartsWith('net10.0'))">
<IsAotCompatible>true</IsAotCompatible>
<PublishAotSupported>true</PublishAotSupported>
<TrimMode>link</TrimMode>
<IsTrimmable>true</IsTrimmable>
<IlcGenerateCompleteTypeMetadata>true</IlcGenerateCompleteTypeMetadata>
</PropertyGroup>
<!-- Ensure DisableRuntimeMarshalling is only emitted for .NET 10, not .NET 8/9 -->
<PropertyGroup Condition="$(TargetFramework.StartsWith('net8.0')) or $(TargetFramework.StartsWith('net9.0'))">
<DisableRuntimeMarshalling>false</DisableRuntimeMarshalling>
</PropertyGroup>
<PropertyGroup Condition="$(TargetFramework.StartsWith('net10.0'))">
<DisableRuntimeMarshalling>true</DisableRuntimeMarshalling>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'net462'">
<PackageReference Include="System.Text.Json" Version="9.0.14" />
<PackageReference Include="System.Net.Http.Json" Version="9.0.14" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
<Reference Include="System.Web" />
<ProjectReference Include="..\InterfaceStubGenerator.Roslyn38\InterfaceStubGenerator.Roslyn38.csproj" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\InterfaceStubGenerator.Roslyn41\InterfaceStubGenerator.Roslyn41.csproj" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\InterfaceStubGenerator.Roslyn50\InterfaceStubGenerator.Roslyn50.csproj" ReferenceOutputAssembly="false" />
</ItemGroup>
<ItemGroup Label="Package">
<None Include="targets\refit.targets" PackagePath="buildTransitive\netstandard2.0" Pack="true" />
<None Include="targets\refit.props" PackagePath="buildTransitive\netstandard2.0" Pack="true" />
<!-- We need this one to catch older clients -->
<None Include="targets\refit.targets" PackagePath="build\netstandard2.0" Pack="true" />
<None Include="..\InterfaceStubGenerator.Roslyn38\bin\$(Configuration)\netstandard2.0\InterfaceStubGeneratorV1.dll" PackagePath="analyzers\dotnet\roslyn3.8\cs" Pack="true" Visible="false" />
<None Include="..\InterfaceStubGenerator.Roslyn41\bin\$(Configuration)\netstandard2.0\InterfaceStubGeneratorV2.dll" PackagePath="analyzers\dotnet\roslyn4.1\cs" Pack="true" Visible="false" />
<None Include="..\InterfaceStubGenerator.Roslyn50\bin\$(Configuration)\netstandard2.0\InterfaceStubGeneratorV3.dll" PackagePath="analyzers\dotnet\roslyn5.0\cs" Pack="true" Visible="false" />
</ItemGroup>
</Project>