Allegro.cc - Online Community
Post Reply

Allegro.cc Forums » Installation, Setup & Configuration » Visual Studio 2019

rss feed Print
Visual Studio 2019
DanielH
Member #934
January 2001
avatar

Had a hard drive reset and recently installed the latest visual studio community edition.

I added Allegro via Nuget. It compiled fine until I added component pieces.

Is the Nuget package not compatible with the new 2019 VS? Or is there something I'm doing wrong.

Please no flame wars on using VS. I like it.

1>------ Build started: Project: Sophia's Game, Configuration: Debug Win32 ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100: Expected "$([System.String]::new('%(Link.AdditionalDependencies)').Contains('atls.lib'))" to evaluate to a boolean instead of "$([System.String]::new('
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:       C:\Users\dlhar\source\repos\Sophia's Game\packages\Allegro.5.2.5.2\build\native\v142\Win32\lib\allegro-debug.lib;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:       C:\Users\dlhar\source\repos\Sophia's Game\packages\Allegro.5.2.5.2\build\native\v142\Win32\lib\allegro_main-debug.lib
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:     ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:       C:\Users\dlhar\source\repos\Sophia's Game\packages\Allegro.5.2.5.2\build\native\v142\Win32\lib\allegro_image-debug.lib;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:     ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:       C:\Users\dlhar\source\repos\Sophia's Game\packages\Allegro.5.2.5.2\build\native\v142\Win32\lib\allegro_color-debug.lib
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:     ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:       C:\Users\dlhar\source\repos\Sophia's Game\packages\Allegro.5.2.5.2\build\native\v142\Win32\lib\allegro_font-debug.lib
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:     ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         ;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:         kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:       
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:       ').Contains('atls.lib'))", in condition "'$(ATL_KeyFile)' != '' and ('$(ConfigurationType)' == 'Application' or '$(ConfigurationType)' == 'DynamicLibrary')
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(407,26): error MSB4100:                          and %(Link.AdditionalDependencies) != '' and  $([System.String]::new('%(Link.AdditionalDependencies)').Contains('atls.lib'))".
1>Done building project "Sophia's Game.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Edgar Reynaldo
Member #8,592
May 2007
avatar

SiegeLord is in charge of the Nuget packages. Try and catch him on IRC

SiegeLord
Member #7,827
October 2006
avatar

That's really odd. I just tried creating a new project, updating MSVC 2019 to the newer version and everything seemed to work fine.

Is there anything special about your project? The error points at this line:

"'$(ATL_KeyFile)' != '' and ('$(ConfigurationType)' == 'Application' or '$(ConfigurationType)' == 'DynamicLibrary')
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft and %(Link.AdditionalDependencies) != '' and $([System.String]::new('%(Link.AdditionalDependencies)').Contains('atls.lib'))"

Is that something you control? One guess I have is that it doesn't like the "'" in "Sophia's Game", perhaps try renaming that directory your project?

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

DanielH
Member #934
January 2001
avatar

Sorry, haven't had a chance until today to test your theory.

Yes, it was the name. I changed the name and it compiled fine.

Thanks

Post Reply
Go to: