2015-12-01 21 views
0

这是一个我试图在VS2013和VS2012之间“共享”的F#测试项目。我没有在我的代码中引用Lazy,所以我不确定发生了什么。F#项目不会用'Lazy`2'构建,并且不可用

我相信这是关于具有最新版本的xunit(2.0)引用。

The type 'Lazy`2' is required here and is unavailable. You must add a reference 
to assembly 'System.ComponentModel.Composition, Version=4.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089'. FSC 1 1 MyProj 

A reference to the type 'System.Exception' in assembly 'System.Runtime' was found, 
but the type could not be found in that assembly 
C:\MyProj\startup 1 1 MyProj 

回答

0

没有找到一个解决方案,我只是放弃了VS2012并重新创建仅VS2013项目。

请注意,该项目是x64,这可能没有帮助。

+0

现在在构建服务器时出现同样的问题。我已经使用'Microsoft SDKs \ F#\ 3.1'而不是'Microsoft SDKs \ F#\ 3.0'解决了这个问题。现在开始研究如何让构建服务器来完成它! – Benjol

相关问题