Visual Studio 2017 Community - unable to build project

311 views
Skip to first unread message

Steve Edwards

unread,
Sep 19, 2018, 9:04:27 AM9/19/18
to Migrated By Firefly
Hi guys,

But i cannot build the solution. My solution has many projects and the Base and ENV projects both build individually but the other projects do not.


I get the following build errors: -

The command "call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\..\tools\vsvars32.bat"
  rem editbin.exe /NXCOMPAT:NO "C:\Development\VisionOne\dlls\VisionOne.exe"" exited with code -1.

Cannot determine the location of the VS Common Tools folder.


I've checked the references against each project and they are all fine; there are no exclamation marks. 

Can anyone assist with this please?

Thanks,


Steve

Harry Kleinsmit

unread,
Sep 19, 2018, 9:20:52 AM9/19/18
to Steve Edwards, Migrated By Firefly

Hi Steve,

 

This is a known problem with VS 2015 & VS 2017.

See http://doc.fireflymigration.com/build-error-vsvars32.bat-editbin.html on how to solve it.

 

Best regards,

Harry Kleinsmit.

--
You received this message because you are subscribed to the Google Groups "Migrated By Firefly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to migrated-by-fir...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steve Edwards

unread,
Sep 19, 2018, 9:53:10 AM9/19/18
to Migrated By Firefly
Hi Harry,
Thanks for posting that but even after following the steps i'm still getting the same build errors.

Steve

To unsubscribe from this group and stop receiving emails from it, send an email to migrated-by-firefly+unsub...@googlegroups.com.

Steve Edwards

unread,
Sep 19, 2018, 10:04:38 AM9/19/18
to Migrated By Firefly
Further update... 

The individual projects now all build as does Base and ENV; it's just the Default Project that won't build now.

It looks like the vsvars32.bat file could be at fault?

Anyone?


Steve


On Wednesday, September 19, 2018 at 2:20:52 PM UTC+1, Harry Kleinsmit wrote:

To unsubscribe from this group and stop receiving emails from it, send an email to migrated-by-firefly+unsub...@googlegroups.com.

Harry Kleinsmit

unread,
Sep 20, 2018, 4:49:27 AM9/20/18
to Steve Edwards, Migrated By Firefly

Hi Steve,

 

Did you check the 'post-build event command line' at the projects properties - Build Events? Perhaps something wrong there.

I assume you are doing a build from VS? Does it work when you use the Friefly batch files to build the whole application?

Else check the buildDebug.bat or buildRelease.bat and the msbuild.xml for any inconsistencies. It might be easier to debug those.

To unsubscribe from this group and stop receiving emails from it, send an email to migrated-by-fir...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--

You received this message because you are subscribed to the Google Groups "Migrated By Firefly" group.

To unsubscribe from this group and stop receiving emails from it, send an email to migrated-by-fir...@googlegroups.com.

Steve Edwards

unread,
Sep 20, 2018, 5:40:54 AM9/20/18
to Migrated By Firefly
Hi Harry,
I have looked into this and it's definitely around the area within the project build events where the problem is. I believe there is an issue with the path to the DevEnvDir to locate the file vsvars32.bat. I ended up putting the full path i.e. call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\vsdevcmd\ext\vcvars.bat" (NOTE: VS 2017 community edition paths have changed and it's no longer called vcvars32.bat just vcvars.bat). I then enabled Normal logging within Tools \ Options \ Projects and Solutions \ Build and Run \ MSBuild project build output verbosity and built again which in turn gave me the error "[ERROR:vcvars.bat] Unknown host architecture '' via the output log.

Finally i removed everything within the Post-build event command line and i guess unsurprisingly the solution now builds.

I can't understand why all the other projects including Base and ENV all have the same command line within Post-build event and build but yet the default project won't.

Anyway, right now the solution builds and bar anyone advising i shouldn't remove the Post-build event i will be continuing with some devs!!

Thanks for your help :)

Regards,


Steve

To unsubscribe from this group and stop receiving emails from it, send an email to migrated-by-firefly+unsub...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Migrated By Firefly" group.

To unsubscribe from this group and stop receiving emails from it, send an email to migrated-by-firefly+unsub...@googlegroups.com.

Noam Honig

unread,
Sep 20, 2018, 8:20:34 AM9/20/18
to Steve Edwards, Migrated By Firefly
Hi Steven,

I've updated the article to also articulate what that post build event is good for and how to fix it in your case.

It's there to solve weird external dll problems - I don't think you need it - so I think you can safely remove it.

Here's a link to that article:



To unsubscribe from this group and stop receiving emails from it, send an email to migrated-by-fir...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Migrated By Firefly" group.

To unsubscribe from this group and stop receiving emails from it, send an email to migrated-by-fir...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Migrated By Firefly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to migrated-by-fir...@googlegroups.com.

Steve Edwards

unread,
Sep 20, 2018, 8:24:39 AM9/20/18
to Noam Honig, Migrated By Firefly
Hi Noam,
Thank you for clearing that up. I’m sure this will help other users going forward as they move to newer versions of VS. 

Cheers 😊


Steve 
--
----------------------------------------------
Steve Edwards

Steve Edwards

unread,
Sep 20, 2018, 8:30:59 AM9/20/18
to Noam Honig, Migrated By Firefly
Hi Noam,
Thank you for clearing that up. I’m sure this will help other users going forward as they move to newer versions of VS. 

Cheers 😊


Steve 
On Thu, 20 Sep 2018 at 13:20, Noam Honig <no...@fireflymigration.com> wrote:
Reply all
Reply to author
Forward
0 new messages