Visual Studio 2012 "LINK : fatal error RC1106: invalid option: -ologo" - visual-studio

I have a problem when I try to build console application in Vusual Studio 2012.
The problem is that I get the following Error: "LINK : fatal error RC1106: invalid option: -ologo".
When I change "Platform Toolset" from project properties to v90 (is is by default v110) it works.
It works only for v90 and for the rest I have the same error.
I appritiate for help.
Thanks.

The latest SDK i have is v8.0A. So I set to Microsoft SDKs\Windows\v8.0A.
Don't forget to backup your file prior doing it.

In Visual Studio 2015 I simply retargeted from SDK Windows 10 to 8.1 and it worked. I was working in c++

Related

CS1617: Invalid option '10' for /langversion

While building this open source C# project in AppVeyor, I get the error:
CSC : error CS1617: Invalid option '10' for /langversion. Use '/langversion:?' to list supported values.
See the build log.
In build settings, Visual Studio 2022 is selected as the build worker image and the Preinstalled Software page lists both .NET 5 and 6 SDKs for that image.
What am I missing? Why is it using MSBuild 16 and not 17?
The problem was that appveyor.yml in the repo had Visual Studio 2019 in it as the worker image. The way AppVeyor works, the yml file takes precedence over UI settings.
According to your description, the error: CSC : error CS1617: Invalid option '10' for /langversion. Use '/langversion:?' to list supported values. is caused by not using C#10 in vs2022 and .NET6.0 environment.
We can see from the build log you provided that the build is using MSBuild16 in VS2019.
We can find the MSBuild.exe installed with Visual Studio 2022 Community from C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe.
We have not used AppVeyor. Maybe you can try specifying the path for MSBuild(17) in command line(not sure whether AppVeyor uses command line to build?) to compile it or just select VS2022 and .NET6.0 when you choose build settings.
lanch the solution with VS2022 and that resolve the problem

DEP0001: Unexpected Error: SmartDeviceException - Class not registered [0x80131500]

When attempting to deploy ARM to windows phone device via USB in
Visual Studio 2017 15.5.2 (Xamarin UWP/Android App) I am getting this error:
DEP0001: Unexpected Error: SmartDeviceException - Class not registered [0x80131500]
After a clean install of Windows 16299 I continue to get the error, even with a blank app. Please Advise.
I had this issue with Visual Studio 2017 15.5.6. Solved with:
regsvr32 "C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86\SirepClient.dll"
from admin command prompt.
This problem does not happen on Visual Studio 2017 Version 15.4.5
(File Version 15.4.27004.2010).
This version was tested on a clean install of Windows 16299 with a
blank app and also a working project.
Direct deploy of ARM to Device via USB was successful without issues.
I will continue to use 15.4.5 until the problem with 15.5.2 is resolved.
12/20/2017 EDIT:
as of this date, in an update from 15.4.5 to 15.5.2 the problem has been fixed.

Error while build boost release

I have error while building the release:
1>d:\work\boost\boost/asio/detail/socket_types.hpp(38): fatal error
C1083: Cannot open include file: 'winsock2.h': No such file or
directory
But when build the Debug everything is fine.
What is going on here?
First , check that you have the Windows SDK installed
Windows SDK
Then go to Project property page and in configuration properties , General
select "Visual Studio 2013 - Windows XP (v120_xp)" for Platform Toolset
I had the same problem and fixed by this way

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

I am building a c++ project (using point cloud library(PCL)) with CMake GUI & while configuring, I am getting the above error. This problem was posted in this forum before, but the problem arose after installing VS2012 version. But I have only VS2010 version in my machine.
Previously I had run successfully using CMake, but I guess somehow any file has been corrupted (may be after windows update?). Any suggestions?
We encountered this problem also after installing a new version of the .NET Framework - 4.5 if I remember well. We solved it by installing Visual Studio 2010 SP1 which made the problem disappear.
See
LNK1123 error when bulding VC++ 2010 project after installing Visual Studio 2012 or .NET Framework 4.5.
See also Error 'LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt' after installing Visual Studio 2012 Release Preview on stackoverflow.

CL.exe error code

Has any of you got this error?
error MSB6006: "CL.exe" exited with code -1073741515.
I'm not able to find the meaning of the error code anywhere. I get it when building a C++ project in VS2013 Pro.
The project compiled fine in VS2010. I made no additional changes to it after updating VS.
Fixed. I changed the Platform Toolset from Widnows SDK 7.1 to Visual Studio 2013 (v120).

Resources