Skip to content

Commit 9b4f91a

Browse files
committed
Added type provider runtime project dependency to design time
Also fixed design time provider build path And pined FSharp.Core version to 4.7.2 for type provider
1 parent b55a2b0 commit 9b4f91a

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

FSharp.Data.GraphQL.sln

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ EndProject
105105
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "FSharp.Data.GraphQL.Client.DesignTime", "src\FSharp.Data.GraphQL.Client.DesignTime\FSharp.Data.GraphQL.Client.DesignTime.fsproj", "{B075CD55-CEA4-4C30-A088-48319AADF070}"
106106
EndProject
107107
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "FSharp.Data.GraphQL.Client", "src\FSharp.Data.GraphQL.Client\FSharp.Data.GraphQL.Client.fsproj", "{F7858DA7-E067-486B-9E9C-697F0A56C620}"
108+
ProjectSection(ProjectDependencies) = postProject
109+
{B075CD55-CEA4-4C30-A088-48319AADF070} = {B075CD55-CEA4-4C30-A088-48319AADF070}
110+
EndProjectSection
108111
EndProject
109112
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "star-wars-api", "star-wars-api", "{F66BEE6C-0CB7-4F39-97E4-243F797E8723}"
110113
EndProject

src/FSharp.Data.GraphQL.Client.DesignTime/FSharp.Data.GraphQL.Client.DesignTime.fsproj

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,18 @@
33
<PropertyGroup>
44
<OutputType>Library</OutputType>
55
<TargetFramework>netstandard2.0</TargetFramework>
6-
<DefineConstants>IS_DESIGNTIME; NO_GENERATIVE;$(DefineConstants)</DefineConstants>
6+
<DefineConstants>IS_DESIGNTIME;NO_GENERATIVE;$(DefineConstants)</DefineConstants>
77
<Optimize>true</Optimize>
88
<Tailcalls>true</Tailcalls>
9-
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
109
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
11-
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1210
<GenerateDocumentationFile>false</GenerateDocumentationFile>
13-
<OutputPath>..\FSharp.Data.GraphQL.Client\bin\$(Configuration)\typeproviders\fsharp41\</OutputPath>
11+
<BaseOutputPath>..\FSharp.Data.GraphQL.Client\bin</BaseOutputPath>
1412

1513
<Description>FSharp implementation of Facebook GraphQL query language (Client)</Description>
1614
</PropertyGroup>
1715

1816
<ItemGroup>
19-
<PackageReference Update="FSharp.Core">
17+
<PackageReference Update="FSharp.Core" VersionOverride="4.7.2">
2018
<ExcludeAssets>all</ExcludeAssets>
2119
</PackageReference>
2220
<PackageReference Include="FSharp.TypeProviders.SDK" VersionOverride="8.0.2">

src/FSharp.Data.GraphQL.Client/FSharp.Data.GraphQL.Client.fsproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
<OutputType>Library</OutputType>
55
<TargetFramework>netstandard2.0</TargetFramework>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
7-
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
87
<FSharpToolsDirectory>typeproviders</FSharpToolsDirectory>
98
<PackagePath>typeproviders</PackagePath>
109

1110
<Description>FSharp implementation of Facebook GraphQL query language (Client)</Description>
1211
</PropertyGroup>
1312

1413
<ItemGroup>
14+
<PackageReference Update="FSharp.Core" VersionOverride="4.7.2"/>
1515
<PackageReference Include="FParsec" />
1616
<PackageReference Include="Microsoft.Extensions.Http" />
1717
</ItemGroup>
@@ -36,4 +36,4 @@
3636
<ItemGroup>
3737
<ProjectReference Include="..\FSharp.Data.GraphQL.Shared\FSharp.Data.GraphQL.Shared.fsproj" />
3838
</ItemGroup>
39-
</Project>
39+
</Project>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// The MIT License (MIT)
22
// Copyright (c) 2016 Bazinga Technologies Inc
33

4+
#if !IS_DESIGNTIME
45
namespace FSharp.Data.GraphQL.Client
56

67
open FSharp.Core.CompilerServices
78

89
[<assembly:TypeProviderAssembly("FSharp.Data.GraphQL.Client.DesignTime.dll")>]
910
do ()
11+
#endif

tests/FSharp.Data.GraphQL.Benchmarks/FSharp.Data.GraphQL.Benchmarks.fsproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net6.0</TargetFramework>
6-
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
76
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
87
<Deterministic>false</Deterministic>
98
</PropertyGroup>

0 commit comments

Comments
 (0)