views:

50

answers:

1

I have a project in Visual Studio 2008 using the .NET 2.0 framework. When I build the project I get two build errors showing as red crosses, but the project still builds successfully. Even more strangely, the errors are in System.Double.cs. The error is "Floating-point constant is outside the range of type 'double'" and they point to the lines of code where the MinValue and MaxValue constants are initialised.

Any ideas? It's not a show-stopper since the project still builds, but odd nonetheless.

Thanks, Jon

+1  A: 

Because you have SP1 installed, the IDE will report compilation errors for all open files, even files that are not in your project.

Close the Double.cs file, and the errors will disappear.

SLaks
Perfect! Somehow Double.cs had been opened (probably by browse->go to definition), and for whatever reason that was showing compile errors. Closing the file made the compile errors disapper. Thanks.
Jon