Skip to content

Commit 26eab28

Browse files
committed
Merge pull request #519 from rneatherway/reorganise-nuget
Change nuget layout for ProjectCracker package
2 parents fff7e57 + 4bbf6fd commit 26eab28

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

docs/content/project.fsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,11 @@ FSharp.Compiler.Service.ProjectCracker. This NuGet package contains a
315315
library FSharp.Compiler.Service.ProjectCracker.dll, which should be
316316
referenced by your application directly, and an executable
317317
FSharp.Compiler.Service.ProjectCrackerTool.exe, which should be copied
318-
into the output folder of your application by the build process. This
319-
can be accomplished by adding lines to your `.fsproj` file similar to:
320-
321-
<Target Name="AfterBuild">
322-
<Copy SourceFiles="..\packages\FSharp.Compiler.Service.ProjectCracker\lib\net45\FSharp.Compiler.Service.ProjectCrackerTool.exe" DestinationFolder="$(OutputPath)" />
323-
<Copy SourceFiles="..\packages\FSharp.Compiler.Service.ProjectCracker\lib\net45\FSharp.Compiler.Service.ProjectCrackerTool.exe.config" DestinationFolder="$(OutputPath)" />
324-
</Target>
318+
into the output folder of your application by the build process. If
319+
you install using Paket or NuGet, then this will be configured for you
320+
automatically. If not, you should reference the provided `.targets`
321+
file manually in your application. This can be found in the NuGet
322+
package at `build/net45/FSharp.Compiler.Service.ProjectCrackerTool.targets`.
325323
326324
The reason for this split is so that the analysis of an F# project
327325
file is performed out of process, in order that the necessary assembly

nuget/projectcracker.template

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ iconurl https://raw.github.com/fsharp/FSharp.Compiler.Service/master/misc/logo.p
1212
tags
1313
F#, fsharp, msbuild, editor
1414
files
15-
../bin/v4.5/FSharp.Compiler.Service.ProjectCrackerTool.exe ==> lib/net45
16-
../bin/v4.5/FSharp.Compiler.Service.ProjectCrackerTool.exe.config ==> lib/net45
17-
../bin/v4.5/FSharp.Compiler.Service.ProjectCrackerTool.?db ==> lib/net45
18-
../bin/v4.5/FSharp.Compiler.Service.ProjectCrackerTool.exe.?db ==> lib/net45
15+
../src/fsharp/FSharp.Compiler.Service.ProjectCrackerTool/FSharp.Compiler.Service.ProjectCrackerTool.targets ==> build/net45
16+
../bin/v4.5/FSharp.Compiler.Service.ProjectCrackerTool.exe ==> utilities/net45
17+
../bin/v4.5/FSharp.Compiler.Service.ProjectCrackerTool.exe.config ==> utilities/net45
18+
../bin/v4.5/FSharp.Compiler.Service.ProjectCrackerTool.?db ==> utilities/net45
19+
../bin/v4.5/FSharp.Compiler.Service.ProjectCrackerTool.exe.?db ==> utilities/net45
1920
../bin/v4.5/FSharp.Compiler.Service.ProjectCracker.dll ==> lib/net45
2021
../bin/v4.5/FSharp.Compiler.Service.ProjectCracker.xml ==> lib/net45
2122
../bin/v4.5/FSharp.Compiler.Service.ProjectCracker.?db ==> lib/net45

src/fsharp/FSharp.Compiler.Service.ProjectCrackerTool/FSharp.Compiler.Service.ProjectCrackerTool.fsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
<Compile Include="ProjectCrackerOptions.fs" />
6060
<Compile Include="Program.fs" />
6161
<None Include="App.config" />
62+
<None Include="FSharp.Compiler.Service.ProjectCrackerTool.targets" />
6263
</ItemGroup>
6364
<ItemGroup>
6465
<Reference Include="Microsoft.Build.Framework" Condition=" '$(TargetFrameworkVersion)' == 'v4.0'" />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Target Name="FSharp.Compiler.Service.ProjectCrackerToolCopy" AfterTargets="Build">
4+
<Copy SourceFiles="$(MSBuildThisFileDirectory)\..\..\utilities\net45\FSharp.Compiler.Service.ProjectCrackerTool.exe" DestinationFolder="$(OutputPath)" />
5+
<Copy SourceFiles="$(MSBuildThisFileDirectory)\..\..\utilities\net45\FSharp.Compiler.Service.ProjectCrackerTool.exe.config" DestinationFolder="$(OutputPath)" />
6+
</Target>
7+
</Project>

0 commit comments

Comments
 (0)