locked
F# compiler bug in standalone deployments RRS feed

  • General discussion

  • Hello,

    I have identified an issue with the standalone distribution of the F# compiler (VWD_FSharp.exe). In particular, fsc.exe fails to resolve the basic .NET assemblies whenever no version of Visual Studio 12 is installed. Compiling the simplest possible F# program yields the following error messages:

    error FS0082: Could not resolve this reference. Could not locate the assembly "mscorlib.dll". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. (Code=MSB3245)
    error FS0082: Could not resolve this reference. Could not locate the assembly "System.dll". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. (Code=MSB3245)
    error FS0082: Could not resolve this reference. Could not locate the assembly "System.Xml.dll". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. (Code=MSB3245)
    error FS0082: Could not resolve this reference. Could not locate the assembly "System.Runtime.Remoting.dll". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. (Code=MSB3245)
    error FS0082: Could not resolve this reference. Could not locate the assembly "System.Runtime.Serialization.Formatters.Soap.dll". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. (Code=MSB3245)
    error FS0082: Could not resolve this reference. Could not locate the assembly "System.Data.dll". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. (Code=MSB3245)
    error FS0082: Could not resolve this reference. Could not locate the assembly "System.Drawing.dll". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. (Code=MSB3245)
    error FS0082: Could not resolve this reference. Could not locate the assembly "System.Web.dll". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. (Code=MSB3245)
    error FS0082: Could not resolve this reference. Could not locate the assembly "System.Web.Services.dll". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. (Code=MSB3245)
    error FS0082: Could not resolve this reference. Could not locate the assembly "System.Windows.Forms.dll". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. (Code=MSB3245)
    error FS0082: Could not resolve this reference. Could not locate the assembly "System.Numerics.dll". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. (Code=MSB3245)
    unknown(1,1): error FS0078: Unable to find the file 'mscorlib.dll' in any of
     C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5
     C:\Users\testvm
     C:\Program Files (x86)\Microsoft SDKs\F#\3.0\Framework\v4.0
    F# interactive seems to be unaffected by this issue. It seems that the compiler fails to take into account the case where core assemblies are installed under the windows folder. I have been able to reproduce this in my custom build of the F# compiler.


    Monday, April 22, 2013 10:13 AM

All replies