error on build

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brian Henry

    error on build

    When i build my project i get this error

    warning CS1668: Invalid search path 'C:\Program Files\Microsoft Visual
    Studio .NET 2003\SDK\v1.1\L ib\' specified in 'LIB environment variable' --
    'The system cannot find the path specified. '

    this is in .NET 2.0, so im not sure why there are still references to 1.1,
    where do i fix this reference at? thanks!


  • Jon Skeet [C# MVP]

    #2
    Re: error on build

    Brian Henry <nospam@nospam. com> wrote:[color=blue]
    > When i build my project i get this error
    >
    > warning CS1668: Invalid search path 'C:\Program Files\Microsoft Visual
    > Studio .NET 2003\SDK\v1.1\L ib\' specified in 'LIB environment variable' --
    > 'The system cannot find the path specified. '
    >
    > this is in .NET 2.0, so im not sure why there are still references to 1.1,
    > where do i fix this reference at? thanks![/color]

    Well, what does your LIB environment variable look like? That sounds
    like the kind of error you get if you run the 1.1 environment batch
    file and then try to compile 2.0 code.

    --
    Jon Skeet - <skeet@pobox.co m>
    http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
    If replying to the group, please do not mail me too

    Comment

    • Brian Henry

      #3
      Re: error on build

      I couldn't tell you i dont work with C# normally just VB.NET this is code
      someone else wrote... no idea where to look

      "Jon Skeet [C# MVP]" <skeet@pobox.co m> wrote in message
      news:MPG.1e0286 d7c260deeb98caf a@msnews.micros oft.com...[color=blue]
      > Brian Henry <nospam@nospam. com> wrote:[color=green]
      >> When i build my project i get this error
      >>
      >> warning CS1668: Invalid search path 'C:\Program Files\Microsoft Visual
      >> Studio .NET 2003\SDK\v1.1\L ib\' specified in 'LIB environment
      >> variable' --
      >> 'The system cannot find the path specified. '
      >>
      >> this is in .NET 2.0, so im not sure why there are still references to
      >> 1.1,
      >> where do i fix this reference at? thanks![/color]
      >
      > Well, what does your LIB environment variable look like? That sounds
      > like the kind of error you get if you run the 1.1 environment batch
      > file and then try to compile 2.0 code.
      >
      > --
      > Jon Skeet - <skeet@pobox.co m>
      > http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
      > If replying to the group, please do not mail me too[/color]


      Comment

      • Jon Skeet [C# MVP]

        #4
        Re: error on build

        Brian Henry <nospam@nospam. com> wrote:[color=blue]
        > I couldn't tell you i dont work with C# normally just VB.NET this is code
        > someone else wrote... no idea where to look[/color]

        Well, that wasn't a particularly C#-dependent question. Just type "set
        LIB" at the command prompt and cut and paste the results...
        --
        Jon Skeet - <skeet@pobox.co m>
        http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
        If replying to the group, please do not mail me too

        Comment

        • Brian Henry

          #5
          Re: error on build

          C:\Program Files\Microsoft Visual Studio 8\VC>set lib
          LIB=C:\Program Files\Microsoft Visual Studio 8\VC\LIB;C:\Pro gram
          Files\Microsoft
          Visual Studio 8\SDK\v2.0\lib; C:\Program Files\Microsoft Visual Studio .NET
          2003
          \SDK\v1.1\Lib\
          LIBPATH=C:\WIND OWS\Microsoft.N ET\Framework\v2 .0.50727


          now i see it.. it's in the path...

          "Jon Skeet [C# MVP]" <skeet@pobox.co m> wrote in message
          news:MPG.1e02c3 3d16efa24498cb0 4@msnews.micros oft.com...[color=blue]
          > Brian Henry <nospam@nospam. com> wrote:[color=green]
          >> I couldn't tell you i dont work with C# normally just VB.NET this is code
          >> someone else wrote... no idea where to look[/color]
          >
          > Well, that wasn't a particularly C#-dependent question. Just type "set
          > LIB" at the command prompt and cut and paste the results...
          > --
          > Jon Skeet - <skeet@pobox.co m>
          > http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
          > If replying to the group, please do not mail me too[/color]


          Comment

          Working...