I converted one of the .net 2.0 (VS2005) solution to work with VS2010 (didn't change the framework). Now when I try to build I keep getting this error message:
'Warning as Error 2008 is not a valid warning number'.
Does anyone know how I can fix this?
Are there any #pragma warnings in the project? Do you get a line number with your error?
EDIT:
Try unchecking treat warnings as errors in your project config. That should allow you to compile.
Related
Please I was busy for the past 4 days trying to fix the issues resulting from the below error. Please how do I go about fixing this error below?
*Severity Code Description Project File Line Suppression State
Error: Failed to add reference to 'comerr64'.
Please make sure that the file is accessible, and that it is a valid assembly or COM component.
*
So I tried reinstalling the Microsoft visual studio 2019 to see if things would go well but all trials were to avail. Then I've also tried several times to reinstall the Nuget package "MySql.Data (8.0.32) by oracle, 54.1M downloads" after all trials to fix this but all I got was same error.
There is bug with MySqlData 8.0.32. The workaround is installing MySqlConnector. This link explains it:
https://mysqlconnector.net/troubleshooting/failed-add-reference-comerr/
The error message went away once it was installed and the site is working.
I left MySqlData in the manifest (installed) for now because there are some dependencies to the other MySQL assemblies that require MySqlData installed that will make if difficult to remove at this point.
I have project which builds with no error but when I run code analysis on solution I get this Duplicate Identifier 'Promise' and Duplicate Identifier 'require' errors
My visual studio version is 2017 rc
I googled solution for this, found below link
https://github.com/Microsoft/TypeScript/issues/14565
Not getting any solution for this problem
I solved this issue by updating VS 2017 to version 15.2, I think it was bug in previous versions.
I have to get Google Protobuf running on Visual Studio 2003, but it was built for Visual Studio 2008. Does anyone know wether that is possible and if so, how?
I did some research and found, that sometimes just renaming the projects version number in the .sln should help, but for me it didn't. I am clueless on how to continue from here. Some kind of converters would help maybe?
Thank you in advance for you help!
Apparently it is not possible to run Google Protobuf with the MSVS03 Compiler. The following error occures when trying to do so:
...\include\google\protobuf\stubs\atomicops_internals_x86_msvc.h(46) : fatal error C1189: #error : "We require at least vs2005 for MemoryBarrier
Therefore we need at least MSVS05.
I have a visual studio project (VS2012) that just contains some configuration files. When I build I get the following warning:
CSC : warning CS2008: No source files specified [C:\Project\Config\Config.csproj]
Is there any way to disable this warning?
I experienced the same problem with VS2017 (<nowarn> attribute didn't work). Adding an empty VersionInfo.cs prevented the build warning.
Go to the project's property page in your Solution Explorer. On the build tab, you can disable the warning using its warning number.
This describes the options available there: http://msdn.microsoft.com/en-us/library/vstudio/kb4wyys2(v=vs.100).aspx
If you ever have actual code that triggers warnings, it can be disabled like so: http://msdn.microsoft.com/en-us/library/vstudio/441722ys(v=vs.120).aspx
In Xamarin Studio, is it possible to have the compiler treat certain warnings as errors? I would like to elevate the severity of some warning so I am forced to see and deal with them. I am using the Mac version.
If your project is a normal C# project then you can select which warnings you want to be treated as errors in the Build/Compiler page in the project's properties. In the "Additional arguments" field enter:
-warnaserror:CS0123,CS3210
To make the warnings CS0123 and CS3210 be treated as errors.