Home
Options

"You must add a reference to assembly" on v6

> CS0012 The type 'Nullable<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

I receive the error above related to the Nullable SQL columns. Not sure how to fix it since we don't have "Add Framework Assemblies" anymore.

Comments

  • Options
    Can you provide a repro?
  • Options
    Right after I post here, I went back to v5 and ran the query.
    Once I see your response, I reopened the v6 and query was running perfectly fine. No errors at all.

    No repo needed, it was as simple as the line below, where it marked `Processing` with red squiggles.

    ```
    Vendors.Count(v => v.Processing == null).ToString("n0").Dump();
    ```

    Processing is `[Processing] [bit] NULL` on MSSQL


    _**side note:** not sure if it makes any difference, but I formatted my machine last weekend, and this is the first time I ran both LinqPads, and I started with v6. It feels like it couldn't find those until LinqPad5 fixes the issue for v6_
Sign In or Register to comment.