|
5 | 5 | <Import Project="..\..\netfx.props" />
|
6 | 6 | <PropertyGroup>
|
7 | 7 | <OutputType>Library</OutputType>
|
8 |
| - <TargetFrameworks>netstandard2.0;netstandard2.1;net472;net48</TargetFrameworks> |
| 8 | + <TargetFrameworks>netstandard2.0;netstandard2.1;net472;net6.0</TargetFrameworks> |
9 | 9 | <GenerateDocumentationFile>true</GenerateDocumentationFile>
|
10 | 10 | <DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
|
11 | 11 | <DefineConstants>TP_RUNTIME;NETSTANDARD;NO_GENERATIVE</DefineConstants>
|
|
35 | 35 | <Optimize>true</Optimize>
|
36 | 36 | <Tailcalls>true</Tailcalls>
|
37 | 37 | </PropertyGroup>
|
| 38 | + <PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' Or '$(TargetFramework)' == 'netstandard2.1' "> |
| 39 | + <DefineConstants>$(DefineConstants);MICROSOFTSQL</DefineConstants> |
| 40 | + </PropertyGroup> |
38 | 41 | <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
|
39 | 42 | <ItemGroup>
|
40 | 43 | <Compile Include="..\Common\AssemblyInfo.fs">
|
|
73 | 76 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
74 | 77 | <PrivateAssets>all</PrivateAssets>
|
75 | 78 | </PackageReference>
|
| 79 | + <!-- |
76 | 80 | <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net48" Version="1.0.0">
|
77 | 81 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
78 | 82 | <PrivateAssets>all</PrivateAssets>
|
79 |
| - </PackageReference> |
| 83 | + </PackageReference>--> |
80 | 84 | <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
|
81 | 85 | </ItemGroup>
|
82 |
| - <Target Name="BeforeBuild"> |
83 |
| - <MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Restore" /> |
84 |
| - <MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Build" Properties="Configuration=$(Configuration);TargetFramework=netcoreapp3.1" /> |
| 86 | + <Target Name="BeforeBuild" Condition=" '$(TargetFramework)' != 'net6.0' And '$(TargetFramework)' != 'netstandard2.1' "> |
| 87 | + <!--<MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Restore" />--> |
| 88 | + <MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Build" Properties="Configuration=$(Configuration);TargetFrameworks=netcoreapp3.1" /> |
85 | 89 | <MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Build" Properties="Configuration=$(Configuration);TargetFramework=netstandard2.0" />
|
86 |
| - <MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Build" Properties="Configuration=$(Configuration);TargetFramework=net48" /> |
| 90 | + <!--<MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Build" Properties="Configuration=$(Configuration);TargetFramework=net48" />--> |
87 | 91 | <MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Build" Properties="Configuration=$(Configuration);TargetFramework=net472" />
|
88 | 92 | </Target>
|
| 93 | + <Target Name="BeforeBuild" Condition=" '$(TargetFramework)' == 'net6.0' Or '$(TargetFramework)' == 'netstandard2.1' "> |
| 94 | + <MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Build" Properties="Configuration=$(Configuration);TargetFramework=net6.0" /> |
| 95 | + </Target> |
89 | 96 | <Target Name="AfterBuild">
|
90 | 97 | </Target>
|
91 | 98 | <ItemGroup Condition="'$(TargetFramework)' == 'net472' Or '$(TargetFramework)' == 'net48' ">
|
|
0 commit comments