Skip to content

Commit

Permalink
Let Paket manage FSharp.Core
Browse files Browse the repository at this point in the history
* Remove FSharp.Core direct references from fsproj files
* Add FSharp.Core nuget reference and force redirects
* Add App.config so paket can add redirects
  • Loading branch information
simendsjo committed Apr 24, 2016
1 parent 6920417 commit 9a7976c
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 38 deletions.
2 changes: 2 additions & 0 deletions paket.dependencies
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
source https://nuget.org/api/v2

nuget FSharp.Core redirects: force

group Build
source https://nuget.org/api/v2

Expand Down
19 changes: 11 additions & 8 deletions paket.lock
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@

NUGET
remote: https://www.nuget.org/api/v2
specs:
FSharp.Core (4.0.0.1) - redirects: force

GROUP Build
NUGET
remote: https://www.nuget.org/api/v2
specs:
FAKE (4.21.0)
FAKE (4.21)
FSharp.Compiler.Service (2.0.0.6)
FSharp.Formatting (2.14.0)
FSharp.Compiler.Service (>= 2.0.0.3 < 2.1.0)
FSharpVSPowerTools.Core (>= 2.3.0 < 2.4.0)
FSharpVSPowerTools.Core (2.3.0)
FSharp.Formatting (2.14)
FSharp.Compiler.Service (>= 2.0.0.3 < 2.1)
FSharpVSPowerTools.Core (>= 2.3 < 2.4)
FSharpVSPowerTools.Core (2.3)
FSharp.Compiler.Service (>= 2.0.0.3)
Microsoft.Bcl (1.1.10)
Microsoft.Bcl.Build (>= 1.0.14)
Microsoft.Bcl.Build (1.0.21) - import_targets: false
Microsoft.Net.Http (2.2.29)
Microsoft.Bcl (>= 1.1.10)
Microsoft.Bcl.Build (>= 1.0.14)
Octokit (0.18.0)
Octokit (0.18)
Microsoft.Net.Http
SourceLink.Fake (1.1.0)
SourceLink.Fake (1.1)
GITHUB
remote: fsharp/FAKE
specs:
Expand Down
12 changes: 12 additions & 0 deletions src/FSharp.ProjectTemplate/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<Paket>True</Paket>
<assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-999.999.999.999" newVersion="4.4.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
30 changes: 14 additions & 16 deletions src/FSharp.ProjectTemplate/FSharp.ProjectTemplate.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,6 @@
<DocumentationFile>.\bin\Release\FSharp.ProjectTemplate.xml</DocumentationFile>
<OtherFlags>--warnon:1182</OtherFlags>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="FSharp.Core, Version=$(TargetFSharpCoreVersion), Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Numerics" />
</ItemGroup>
<ItemGroup>
<Compile Include="Library.fs" />
<None Include="Script.fsx" />
<None Include="paket.references" />
<None Include="paket.template" />
</ItemGroup>
<PropertyGroup>
<MinimumVisualStudioVersion Condition="'$(MinimumVisualStudioVersion)' == ''">11</MinimumVisualStudioVersion>
</PropertyGroup>
Expand All @@ -73,4 +58,17 @@
</Target>
-->
<Import Project="..\..\.paket\paket.targets" />
</Project>
<ItemGroup>
<Compile Include="Library.fs" />
<None Include="Script.fsx" />
<None Include="paket.references" />
<None Include="paket.template" />
<Content Include="App.config" />
</ItemGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Numerics" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions src/FSharp.ProjectTemplate/paket.references
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FSharp.Core
12 changes: 12 additions & 0 deletions tests/FSharp.ProjectTemplate.Tests/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<Paket>True</Paket>
<assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-999.999.999.999" newVersion="4.4.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -54,39 +54,35 @@
</Choose>
<Import Project="$(FSharpTargetsPath)" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<Import Project="..\..\.paket\paket.targets" />
<ItemGroup>
<Compile Include="Tests.fs" />
<None Include="paket.references" />
<Content Include="App.config" />
</ItemGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="FSharp.Core, Version=$(TargetFSharpCoreVersion), Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Numerics" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\FSharp.ProjectTemplate\FSharp.ProjectTemplate.fsproj">
<Name>FSharp.ProjectTemplate</Name>
<Project>{7e90d6ce-a10b-4858-a5bc-41df7250cbca}</Project>
<Private>True</Private>
</ProjectReference>
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<Import Project="..\..\.paket\paket.targets" />
<ItemGroup>
<Reference Include="nunit.framework">
<HintPath>..\..\packages\test\NUnit\lib\nunit.framework.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
</ItemGroup>
</Project>
</Project>
1 change: 1 addition & 0 deletions tests/FSharp.ProjectTemplate.Tests/paket.references
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
FSharp.Core
group Test
NUnit
NUnit.Runners

0 comments on commit 9a7976c

Please sign in to comment.