Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Commit

Permalink
#50 new build of SourceLink.MSBuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Taggart committed May 6, 2015
1 parent db36545 commit 4cfb751
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ AssemblyInfo.cs
/docs/files/img/SourceLink128.jpg
/docs/SourceLink128.jpg
*.sln.ide
/gh-pages
/gh-pages
*.sdf
5 changes: 5 additions & 0 deletions ConsoleTest/ConsoleTest.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ xcopy /s /y /d "$(SolutionDir)packages\LibGit2Sharp\lib\net40\NativeBinaries\x86
<Private>True</Private>
<Paket>True</Paket>
</Reference>
<Reference Include="SourceLink.Build.Utilities.Core">
<HintPath>..\packages\SourceLink.MSBuild\lib\net45\SourceLink.Build.Utilities.Core.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
<Reference Include="SourceLink.Build">
<HintPath>..\packages\SourceLink.MSBuild\lib\net45\SourceLink.Build.dll</HintPath>
<Private>True</Private>
Expand Down
13 changes: 13 additions & 0 deletions Exe/Exe.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
<DocumentationFile>
</DocumentationFile>
<Prefer32Bit>false</Prefer32Bit>
<StartArguments>
</StartArguments>
<StartWorkingDirectory>
</StartWorkingDirectory>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -34,6 +38,10 @@
<PlatformTarget>x86</PlatformTarget>
<DocumentationFile>bin\Release\SourceLink.xml</DocumentationFile>
<Prefer32Bit>false</Prefer32Bit>
<StartArguments>
</StartArguments>
<StartWorkingDirectory>
</StartWorkingDirectory>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
Expand Down Expand Up @@ -186,6 +194,11 @@
<Private>True</Private>
<Paket>True</Paket>
</Reference>
<Reference Include="SourceLink.Build.Utilities.Core">
<HintPath>..\packages\SourceLink.MSBuild\lib\net45\SourceLink.Build.Utilities.Core.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
<Reference Include="SourceLink.Build">
<HintPath>..\packages\SourceLink.MSBuild\lib\net45\SourceLink.Build.dll</HintPath>
<Private>True</Private>
Expand Down
5 changes: 5 additions & 0 deletions SourceLink/SourceLink.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@
<Private>True</Private>
<Paket>True</Paket>
</Reference>
<Reference Include="SourceLink.Build.Utilities.Core">
<HintPath>..\packages\SourceLink.MSBuild\lib\net45\SourceLink.Build.Utilities.Core.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
<Reference Include="SourceLink.Build">
<HintPath>..\packages\SourceLink.MSBuild\lib\net45\SourceLink.Build.dll</HintPath>
<Private>True</Private>
Expand Down
6 changes: 0 additions & 6 deletions build.config

This file was deleted.

8 changes: 4 additions & 4 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ let buildDate =
let pst = TimeZoneInfo.FindSystemTimeZoneById "Pacific Standard Time"
DateTimeOffset(TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, pst), pst.BaseUtcOffset)

let cfg = getBuildConfig __SOURCE_DIRECTORY__
let revision =
use repo = new GitRepo(__SOURCE_DIRECTORY__)
repo.Commit
Expand All @@ -31,7 +30,8 @@ let versionAssembly =

let buildVersion =
if hasRepoVersionTag then versionAssembly
else sprintf "%s-ci%s" versionAssembly (buildDate.ToString "yyMMddHHmm") // 20 char limit
else if isAppVeyorBuild then sprintf "%s-b%s" versionAssembly AppVeyorEnvironment.BuildNumber
else sprintf "%s-a%s" versionAssembly (buildDate.ToString "yyMMddHHmm") // 20 char limit

MSBuildDefaults <- { MSBuildDefaults with Verbosity = Some MSBuildVerbosity.Minimal }

Expand Down Expand Up @@ -67,8 +67,8 @@ Target "SourceLink" <| fun _ ->
printfn "starting SourceLink"
let sourceIndex proj pdb =
use repo = new GitRepo(__SOURCE_DIRECTORY__)
//let p = VsProj.LoadRelease proj
let p = VsProj.Load proj ["Configuration","Release"; "VisualStudioVersion","12.0"] // on AppVeyor
let p = VsProj.LoadRelease proj
//let p = VsProj.Load proj ["Configuration","Release"; "VisualStudioVersion","12.0"] // on AppVeyor
let pdbToIndex = if Option.isSome pdb then pdb.Value else p.OutputFilePdb
logfn "source indexing %s" pdbToIndex
let files = p.Compiles -- "**/AssemblyInfo.fs"
Expand Down
2 changes: 1 addition & 1 deletion paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ nuget FSharp.Core
nuget LibGit2Sharp
nuget Mono.Cecil
nuget UnionArgParser
nuget SourceLink.MSBuild
nuget SourceLink.MSBuild 14.1.0-b043
6 changes: 3 additions & 3 deletions paket.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NUGET
remote: http://nuget.org/api/v2
specs:
FAKE (3.30.3)
FAKE (3.31.0)
FSharp.Compiler.Service (0.0.89)
FSharp.Core (3.1.2.1)
FSharp.Formatting (2.9.4)
Expand All @@ -19,7 +19,7 @@ NUGET
UnionArgParser (0.8.7)
remote: https://ci.appveyor.com/nuget/sourcelink-helmesfwai2a
specs:
SourceLink.Fake (0.5.1-ci1504051942)
SourceLink.Fake (0.5.1-ci1505042129)
remote: https://ci.appveyor.com/nuget/msbuild-kn0ejscjf29k
specs:
SourceLink.MSBuild (14.1.0)
SourceLink.MSBuild (14.1.0-b043)

0 comments on commit 4cfb751

Please sign in to comment.