Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# VisualStudio project rebuild giving /platform:anycpu32bitpreferred can only be used with /t:exe, /t:winexe and /t:appcontainerexe

I have a windows application and using cheetah for config transformations i.e app.config.debug, app.config.test, etc.,

When the project is built in debug mode , it works fine but when teamcity change the mode to test configuration and try to rebuild getting the following error:

/platform:anycpu32bitpreferred can only be used with /t:exe, /t:winexe and /t:appcontainerexe

Can anyone please help me how to fix this?

Thanks

like image 600
Mukil Deepthi Avatar asked Sep 02 '16 15:09

Mukil Deepthi


1 Answers

Open the project file with the text editor. Find the line <Prefer32Bit>true</Prefer32Bit> and change the value "true" to "false". There might be more than one depending how many different configurations have been set up.

like image 54
Silverion Avatar answered Sep 18 '22 10:09

Silverion