Hi,
As background I’ve got a bunch of builds that use Octopack via FAKE. It’s a pretty typical setup with a FAKE target as follows;
Target "BuildSolution" (fun _ ->
let setParams defaults =
{ defaults with
Verbosity = Some(Quiet)
Targets = ["Build"]
Properties =
[
"Optimize", "True"
"DebugSymbols", "True"
"Configuration", buildMode
"RunOctoPack", "true"
"OctoPackPackageVersion", buildVersion
"OctoPackPublishPackageToFileShare", artifactsDir
"OctoPackNuGetExePath", nuGetPath
"OctoPackAppendToPackageId", octoPackAppendToPackageIdValue
]
}
build setParams solutionFile
|> DoNothing
)
One particular build is currently causing issues by excluding System.Net.Http.Formatting.dll from the nupkg file. Running the build script locally doesn’t have this problem however the TeamCity build agents appears to have System.Net.Http.Formatting installed in the GAC. The build agent runs windows server 2008 RC2 I believe at a point in time this was delivered as part of windows.
Firstly is it the fact System.Net.Http.Formatting is found in the GAC that causes it to be excluded from the nupkg file?
Secondly if so whats the workaround?
I tried to use OctoPackEnforceAddingFiles with a nuspec file as defined below but this didn’t seem to resolve the issue;
<files>
<file src="../build/System.Net.Http.Formatting.dll" />
</files>
</package>
Any suggestions or help would be great. Not sure if I’m going in the wrong direction here.