I am getting the following error during the build process when executing build.ps1 in PowerShell. Do you have any ideas on how to resolve this?
psake version 4.4.1
Copyright (c) 2010-2014 James Kovacs & Contributors
Executing Clean
Executing UpdateVersion
Executing Compile
Executing ILMerge
Directory: E:\git\playground\IdentityServer3.WindowsAuthentication\distribution\lib
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 10/9/2015 10:55 AM net45
An exception occurred during merging:
Unresolved assembly reference not allowed: System.Net.Http.Formatting.
at System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly)
at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type)
at System.Compiler.Ir2md.WriteTypeDefOrRefEncoded(BinaryWriter target, TypeNode type)
at System.Compiler.Ir2md.WriteTypeSignature(BinaryWriter target, TypeNode type, Boolean instantiateGenericTypes)
at System.Compiler.Ir2md.WriteTypeSignature(BinaryWriter target, TypeNode type, Boolean instantiateGenericTypes)
at System.Compiler.Ir2md.GetBlobIndex(TypeNode type)
at System.Compiler.Ir2md.GetTypeSpecIndex(TypeNode type)
at System.Compiler.Ir2md.VisitClass(Class Class)
at System.Compiler.Ir2md.VisitModule(Module module)
at System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation)
at System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer)
at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, Strin
g keyFileName, String keyName)
at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Module module)
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String[] args)
Executing CreateNuGetPackage
Attempting to build package from 'IdentityServer.WindowsAuthentication.nuspec'.
Successfully created package 'E:\git\playground\IdentityServer3.WindowsAuthentication\distribution\IdentityServer.Window
sAuthentication.1.0.0.nupkg'.
Build Succeeded!
----------------------------------------------------------------------
Build Time Report
----------------------------------------------------------------------
Name Duration
---- --------
Clean 00:00:00.2539040
UpdateVersion 00:00:00.0684963
Compile 00:00:22.1707601
ILMerge 00:00:28.7964576
CreateNuGetPackage 00:00:02.8306707
Total: 00:00:54.9885970